A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Contolling (Play,Pause,Stop) A Streaming Video

  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    28

    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

  2. #2
    Senior Member caroach's Avatar
    Join Date
    Nov 2002
    Location
    Chicago, IL
    Posts
    374
    are you using the FLVPlayback component or did you create a NetStream connection?
    moo

  3. #3
    Junior Member
    Join Date
    Aug 2008
    Posts
    28
    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,

  4. #4
    Senior Member caroach's Avatar
    Join Date
    Nov 2002
    Location
    Chicago, IL
    Posts
    374
    (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

  5. #5
    Junior Member
    Join Date
    Aug 2008
    Posts
    28
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center