Answered
Video Player Error when "scrubbing" ahead of available content
Hi there, hopefully someone can help me work out this problem
I've been having for the past two days!!
I have a built my own AS3 Flash video player and the 'scrubber' bar appears to be causing an error message when dragged too far ahead (I assume because it's dragging ahead to a part of the video which has yet to fully load). This problem doesn't happen when debugging the movie in Flash but does appear when loaded into a HTML page.
The error message I'm getting is....
My VPlayer Class (which creates the video player) code is as follows....
NOTE: to find the scrubbing code look for the comment "// Handle the scrubbing through the video playback" and you'll see that I've attempted to wrap the scrubbing code in a Try/Catch statement (which doesn't seem to work as it doesn't catch any errors so you can remove that Try/Catch statement if you feel it's not needed)
Any help is greatly appreciated as I'm banging my head on the desk trying to work out how to fix it. I'm relatively new to AS3 so this may (hopefully) be an easy fix
Kind regards,
M.
I have a built my own AS3 Flash video player and the 'scrubber' bar appears to be causing an error message when dragged too far ahead (I assume because it's dragging ahead to a part of the video which has yet to fully load). This problem doesn't happen when debugging the movie in Flash but does appear when loaded into a HTML page.
The error message I'm getting is....
quote:
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Seek.InvalidTime
at VPlayer()
My VPlayer Class (which creates the video player) code is as follows....
NOTE: to find the scrubbing code look for the comment "// Handle the scrubbing through the video playback" and you'll see that I've attempted to wrap the scrubbing code in a Try/Catch statement (which doesn't seem to work as it doesn't catch any errors so you can remove that Try/Catch statement if you feel it's not needed)
Any help is greatly appreciated as I'm banging my head on the desk trying to work out how to fix it. I'm relatively new to AS3 so this may (hopefully) be an easy fix
Kind regards,
M.