FCPlayer API

IndexPlaying a sequence of videos.



where is it
It is quite simple to play a sequence of videos with FCPlayer. Just override the FCPlayer.competed function, which is called when playback of a video has finished. With each invocation of FCPlayer.completed, you start the next video in the sequence. Below is an example script for playing 3 videos in sequence.

<script type="text/javascript">

//current position in video sequence
var index=0;

//An array of videos to play
var vidSequence = ['video1.flv','video2.flv','video3.flv'];

//Start playing the first video
FCplayer.play('null','null',vidSequence[index]);

//listen for when a video has completed
FCPlayer.completed = function(){
index++;
//Play the next video
if(index<videSequence.length){
FCplayer.play('null','null',vidSequence[index]);
}
}

</script>




If you have a pre-sales question, submit your inquiry via our sales contact page. For general, non-sales inquiries, contact us at support@fastcatsoftware.com.

Solution Graphics