neil
neil

Reputation: 21

Synchronize the Playing of Multiple Video Files in Flash AS3

I would like to have one controller to sync and control multiple video objects(start/stop simultaneously). Is this possible?

Upvotes: 2

Views: 1576

Answers (1)

sberry
sberry

Reputation: 132138

I think I understand your question. If I do, the answer is yes.

You can have one class as act as the controller for several videos (FLVPlaybacks, JW Player, FlowPlayer)...

Essentially you would use your 1 controller to proxy any calls you would make so a single video to all of your videos. So you would have something like the following:

function play():void {
    for (var i:Number = 0; i < videos.length; i++) {
        videos[i].play();
    }
}

or even

function play():void {
    var playVideo:Function = function() { this.play() };
    map(playVideo, vides);
}

Upvotes: 1

Related Questions