This example illustrates how to use the loop:false option with the modified Javascript playlist plugin (that excludes ads from the visible playlist). The plugin requires a small modification to exclude items that start with "advertisement" in the title. A modified version of the Flowplayer JS plugin has been provided in this release. If you are using Flowplayer 3.1.5, use "flowplayer.playlist-3.0.7.modified.js" (download here). Flowplayer 3.2.x requires "flowplayer.playlist-3.0.8.modified.js" (download here).
This example uses Flowplayer 3.2.x and the 3.0.8.modified version of the Javascript playlist plugin.
The configuration for this example is:
$(function() {
$f("player", "", {
// clip properties common to all playlist entries
clip: {
baseUrl: "http://blip.tv/file/get",
subTitle: "from blib.tv video sharing site",
time: "5 sec"
},
// our playlist
playlist: [
{
url: "KimAronson-TwentySeconds59483.flv",
title: "Palm trees and the sun",
description: "description 1"
},
{
url: "KimAronson-TwentySeconds58192.flv",
title: "Happy feet in a car",
description: "description 2"
},
{
url: "KimAronson-TwentySeconds63617.flv",
title: "People jogging",
description: "description 3"
}
],
plugins: {
controls: {
autoHide: "always"
},
ova: {
url: "",
"debug": {
"levels": ""
},
"ads": {
"pauseOnClickThrough": true,
"servers": [
{
"type": "OpenX",
"apiAddress": "",
"allowAdRepetition": true
}
],
"schedule": [
{
"zone": "5",
"position": "pre-roll"
}
]
}
}
}
}).playlist(".clips", {loop: false});
// setup scrolling for the playlist elements
$("div.playlist").scrollable({
items:"div.clips",
vertical:true,
next:"a.down",
prev:"a.up"
});
});