|
-
Contolling (Play,Pause,Stop) A Streaming Video
Hi,
I have a graphic with 3 buttons on (Play, Pause, Stop). Within this graphic, I have placed a 'Flash Video File' (imported this) which streams when hosted on a webpage.
I want to be able to control this video with the 3 buttons. At first, I embedded the video (not streamed) and controlled the video with movie clip actionscript on the buttons. This does not work with the streaming video.
If anyone can help, this would be much appreciated.
Kindest Regards,
Rob McCarthy
-
Senior Member
are you using the FLVPlayback component or did you create a NetStream connection?
 moo
-
Hi,
Thanks for the reply.
I am using the FLVPlayback component. If there is another way to get a video playing, stopping and pausing (without the initial swf file being too large) then this would help.
Cheers,
-
Senior Member
(Assuming you're using AS2) have you tried giving your FLVPlayback component an instance name and simply add this code to your timeline:
PHP Code:
pause_btn.onRelease = function() { my_flvpb.pause(); } stop_btn.onRelease = function() { my_flvpb.stop(); } play_btn.onRelease = function() { my_flvpb.play(); }
 moo
-
Do I add this to the FLVPlayback component then in the timeline?
Sorry about this, I am quite new to this.
Also, it makes reference to buttons. How do you make sure it corresponds to your buttons?
Cheers,
Rob
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
|