My goal is to create a list of links that on click will update my player's playlist with a new playlist or clip.
Each link is related to a clip that potentially contains an instream playlist containing a pre and or post roll.
Currently, when I create the player on the page using the following:
The clip and instream playlist play perfectly.
The three clips will play, but out of order and they do not play as an instream playlist. As if they were simple clips.
Each link is related to a clip that potentially contains an instream playlist containing a pre and or post roll.
Currently, when I create the player on the page using the following:
The clip and instream playlist play perfectly.
flowplayer('Player', '/flowplayer/latest_build/flowplayer.commercial-3.1.5.swf', {
clip : {
autoPlay : true
},
playlist : [
{
'url' : 'http://site.com/video/episodes/2008_as_102_censored.flv',
'duration' : 10,
'playlist' : [
{
'url' : 'http://site.com/video/episodes/1257372950.0b9b6f04e5..flv',
'duration' : 2,
'position' : '0'
},
{
'url' : 'http://site.com/video/episodes/1257372987.cdc8456acb..flv',
'duration' : 2,
'position' : '-1'
}
]
}
]
});
However, when I call the following:The three clips will play, but out of order and they do not play as an instream playlist. As if they were simple clips.
flowplayer('Player').setPlaylist(
[
{
'url' : 'http://site.com/video/episodes/2008_as_102_censored.flv',
'duration' : 10,
'playlist' : [
{
'url' : 'http://site.com/video/episodes/1257372950.0b9b6f04e5..flv',
'duration' : 2,
'position' : '0'
},
{
'url' : 'http://site.com/video/episodes/1257372987.cdc8456acb..flv',
'duration' : 2,
'position' : '-1'
}
]
}
]
);
If anyone could shine some light on my issue or possibly point me in a proper direction on how to effectively use setClip() or setPlaylist() to play a clip with an instream playlist I would be most appreciative.