I am trying to troubleshoot scrubber for a custom video player and I am coming across an issue , Where the scrubber is being pulled before filling the progress bar before it is not fully loaded.
The player is here:
If you play the video, you will see that until the flavie is still downloading, you will see the white scrub behind the yellow progress bar , The video player will be stable. It is doing this because the user is asking to look for a portion of the video which has not yet been fully downloaded. What I want to do is decide whether the FLV is still downloading and the user can be able to drag Scrabber to the width of the yellow progress bar. Right now I've set up the code to recover the bytesload and bytestel and what I have to do is say something like this (in the action sequence 3):
if (videoplayer.bytes loaded
I am not a functional person, so what I was trying to try to do was that I thought that this is not working because I am wrong for progress bar and scrubber brands Accessing classes in a manner, but I'm just taking the default classes because the search was a flash component. Okay, I may be completely wrong. Any help here will be appreciated.
Where are you keeping this code? It is necessary to be kept anywhere, where it is regularly updated. You can see which type of video player you were using, how the events are transmitted and used by the event listener regularly to check how much buffer has been given. You can also use the login frame event, however you will need to make sure that you stop listening when buffer is complete because it will add additional overhead on each frame.
One side note SeekBar and SeekBarHandle should probably be as Seekbar and seekBarHandle respectively, because it is standard practice to start example names with a lowercase letter in actionscript.
Comments
Post a Comment