|
-
Scrubber code needed
Hi guys, me again!
Ive just created my own custom scrubber using this tutorial, however, the code doesnt work with my flvplayback component.
Can anyone suggest some code to get my seek bar working please?
Cheers
-
i dont use that component, but if using a standard Video object, you can just use the seek method.
PHP Code:
var percent:Number = whatever.x / something; video.seek(videoLength * percent);
-
I used the code you gave me, however, flash came up with this output error:
VideoError: 1003: Invalid seek
at fl.video::VideoPlayer/seek()
at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::showFirstStream()
at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::handleVideoEvent()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::setState()
at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::finishAutoResize()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
Im at a loss as to where to go from here...
-
that was psuedo-code - obviously none of the variables are specified (whatever.x, something, video, videoLength). you'd have to customize it to whatever you're using.
-
Thanx for the advice; I did know this already. As you said, its obvious.
I had entered the variables specific to my own video; Whether I entered the right information in the right places is a different matter...
I have linked three videos to the playback component so what variable should I enter for videoLength?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|