Hello,
This problem drove me nuts for the last 3 hours.
I have a player set up with a manual playlist and everything works fine until I wanted to have a possibility to jump to the next clip. From the API documentation it sounded quite easy, but for the life of me I'm not able to understand why there's a problem.
This is what I have in my script:
Within the function player_next() I've tried several things.
$f().next();
$f().play(1); - those two don't work, error given is Object undefined
When I am trying to get the playlist's size it's only 1.
Currently I have to select the items using jQuery selector and passing href to play(). Only then it works.
Anybody can help me out with this issue?
This problem drove me nuts for the last 3 hours.
I have a player set up with a manual playlist and everything works fine until I wanted to have a possibility to jump to the next clip. From the API documentation it sounded quite easy, but for the life of me I'm not able to understand why there's a problem.
This is what I have in my script:
<script type="text/javascript">
flowplayer("jukebox", "/flash/flowplayer-3.1.5.swf", {
plugins: {
audio: {
url: '/flash/flowplayer.audio-3.1.2.swf'
},
controls: {
fullscreen: false
}
},
clip: {onFinish: function() {
player_next();
}}
}).playlist("#playlist", {
loop: true,
template: '<div><a href="${url}">${title}</a></div>'
});
function player_next()
{
//$f().next();
//$f().play(1);
//alert($f().getPlaylist().length)
$f().play($("#item_10 a").attr("href"))
}
</script>
Within the function player_next() I've tried several things.
$f().next();
$f().play(1); - those two don't work, error given is Object undefined
When I am trying to get the playlist's size it's only 1.
Currently I have to select the items using jQuery selector and passing href to play(). Only then it works.
Anybody can help me out with this issue?