I have created a simple audio player to play continuously even if the
page is refresh it will play continuously.
This is my code to store audio position in flash Temp memory
MySharedObject.data.audioPos = mySndChannel.position;
MySharedObject.flush();
MyProblem
When the player starts the sndPosition is null, so it was not playing. If I set some value, when I am refreshing it will not continue from the last position. How can I set the initial position to play from the start?
If
mySNDChannel.position == null, this will setaudioPosto 0. If it’s not null, it will assign it toaudioPos.I haven’t done anything like this, but this solution makes sense in my mind. If this isn’t acceptable/correct, let me know and I’ll look into the flash temp memory a bit deeper.