This bug I think is back again in playlist3.0.6
Forum user: shx
Basic information
| Registered | Jun 11, 2009 |
| Last login | Jul 31, 2009 |
| Forum posts | 4 |
| Direct URL | http://www.flowplayer.org/forum/users/11699 |
Latest forum posts
I found the offending line of code in flowplayer.playlist-3.0.6.js
var manual = self.getPlaylist().length <= 1 || opts.manual;
I had to change this to '< 1'. Now it works with a single item in the playlist.
var manual = self.getPlaylist().length <= 1 || opts.manual;
I had to change this to '< 1'. Now it works with a single item in the playlist.
Sorry. I dont know how to get the player to work in the forum editor. Here is my code. Please let me know if you need more info.
<script type="text/javascript">
//<![CDATA[
var conf = { playlist: [{url: 'http://www.flowplayer.org/img/demos/national.jpg',
title: 'Secure Business Mobility',
html: '',
autoPlay: true}]}
//]]>
</script>
<flowplayer>
play: null,
// clip properties common to all playlist entries
clip: {
baseUrl: 'http://blip.tv/file/get',
subTitle: 'from blib.tv video sharing site',
autoPlay: true,
// our playlist
playlist: conf.playlist,
// show playlist buttons in controlbar
plugins: {
// here is our rtpm plugin configuration
akamai: {
url: '/flash/flowplayer/flowplayer.rtmp-3.1.0.swf'
} ,
controls: {
autoHide: 'always',
hideDelay: 500,
playlist: true
}
}
});
/*
here comes the magic plugin. It uses first div.clips element as the
root for as playlist entries. loop parameter makes clips play
from the beginning to the end.
*/
$f("player").playlist("div.clips:first", {loop:true});
//$f("player").autoPlay = false;
</flowplayer>
The playlist plugin in auto mode works only if I have atleast 2 items in my list. (playlists with just 1 item do not work). Can someone please confirm this? Is there a work around?