A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Control multiple video files simultaneously

  1. #1
    Senior Member
    Join Date
    Feb 2003
    Posts
    129

    Control multiple video files simultaneously

    Hello,

    I have five videos playing at the same time in a .swf. They are each .flv files of the exact same length, I'm keeping them external rather than embedding the files within the Flash, and it's imperative that they each play at the exact same time so I'm avoiding using streaming.

    They all need to be kept at the same time code as any other of the movies at any given time. Is it possible to make a scrubber or other controls that will allow the viewer to move positions within these videos simultaneously?

    Any help is greatly appreciated.

    Thanks!

    Chris.

  2. #2
    Senior Member
    Join Date
    Feb 2003
    Posts
    129
    Anyone have any links or ideas? Even just a Pause/Play button would be good. But ideally I'd really like a scrubber.

  3. #3
    Senior Member
    Join Date
    Feb 2003
    Posts
    129
    *Bump*

    Please?

  4. #4
    Senior Member
    Join Date
    Jan 2009
    Posts
    208
    what you trying to do?
    have one scrubber control all videos at the same time?

  5. #5
    Senior Member
    Join Date
    Feb 2003
    Posts
    129
    Yeah.

  6. #6
    Senior Member
    Join Date
    Jan 2009
    Posts
    208
    so whats the problem then?
    do you know how to make scrubber for one video?
    if so, just call these actions on all videos.

    i presume the videos are same length

  7. #7
    Senior Member
    Join Date
    Feb 2003
    Posts
    129
    Hi regbolD, thanks for your continued efforts.

    I don't know how to make a scrubber for one video, no. Would I have to make one from scratch or can I use one of the built-in Video Components and adjust its properties in order to do this? Either way is fine with me, but an answer on the best method and a link to a relevant tutorial would be fantastic.

  8. #8
    Senior Member
    Join Date
    Jan 2009
    Posts
    208
    stay away from built in flv component and learn how to create your own video class, you will have much better control over the video.

    i dont have any links now, but google should you find you something.

  9. #9
    Senior Member
    Join Date
    Feb 2003
    Posts
    129
    Great, thanks for your guidance, it now looks a lot more possible. I found this tutorial:
    http://www.thetechlabs.com/tutorials...3-videoplayer/

    Can you advise me at all on how I might go about adjusting the code to control all five videos at once? It seems as though it's all pulled from one variable at the moment, being the one video. Here's the changes I've made so far, to no avail:

    Code:
    **ORIGINAL**
    // url to flv file
    var strSource:String “movies/livingroom.flv”;
    
    **REPLACEMENT**
    // url to flv file
    var strSource:String “movies/livingroom.flv”;
    var strSource2:String “movies/bedroom.flv”;
    var strSource3:String “movies/bathroom.flv”;
    var strSource4:String “movies/kitchen.flv”;
    var strSource5:String “movies/corridor.flv”;
    
    **ORIGINAL**
    // attach net stream to video object on the stage
    vidLivingRoom.attachNetStream(nsStream);
    
    **REPLACEMENT**
    // attach net stream to video object on the stage
    vidLivingRoom.attachNetStream(nsStream);
    vidLivingRoom.attachNetStream(nsStream);
    vidLivingRoom.attachNetStream(nsStream);
    vidLivingRoom.attachNetStream(nsStream);
    vidLivingRoom.attachNetStream(nsStream);

  10. #10
    Senior Member
    Join Date
    Jan 2009
    Posts
    208
    I can do this for you as a custom work. Contact me through my profile if you are interested.

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