I'm trying to create a playlist to use with overlay..
Here is what I have...
Which is the example page setup...
Now I'm trying to add this..
TO give me the playlist with overlay..
Suggestions because up until now I have not been able to get this to work together...
Many Thanks
OH sorry in case this is confusing what I'm trying to do is incorporate the playlist function with the overlay function so I can add the playlist which I have written in php to show a menu of clips which the user can click on and have it open in an overlay...
Here is what I have...
<script>
$(function() {
// setup overlay actions to buttons
$("button[rel]").overlay({
// setup exposing (optional operation);
onBeforeLoad: function() {
this.getBackgroundImage().expose({api: true}).load();
},
onLoad: function(content) {
// find the player contained inside this overlay and load it
this.getContent().find("a.player").flowplayer(0).load();
},
onClose: function(content) {
$f().unload();
// close exposing
this.getBackgroundImage().expose().close();
}
});
// install flowplayers
$("a.player").flowplayer("http://localhost/modules/mod_test/swf/flowplayer-3.1.2.swf");
});
</script>
Which is the example page setup...
Now I'm trying to add this..
<script>
$(function() {
// setup player
$f("player", "/modules/mod_flowplay/swf/flowplayer-3.1.1.swf", {
clip: {baseUrl: '<?php echo $baseurl ?>'}
// playlist plugin
}).playlist("#playlist");
plugins: {
lighttpd: {
url: "/modules/mod_flowplay/swf/flowplayer.pseudostreaming-3.1.1.swf"
}
}
});
</script>
<!-- player container -->
<a id="player" class="player plain">
<img src="modules/mod_flowplay/images/logo.png" />
</a>
<!-- the playlist. simple HTML controlled with CSS -->
<div id="playlist">
<?php
$lines = file('modules/mod_flowplay/edit/file.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach($lines as $line)
{
list($filename, $title, $time) = explode('-', $line);
echo "<a href='$path/$filename'> $title <br />$time";
}
?>
</div>
<!-- let the rest of the page float normally -->
<br clear="all" />
<!-- END DO NOT CHANGE THIS -->
TO give me the playlist with overlay..
Suggestions because up until now I have not been able to get this to work together...
Many Thanks
OH sorry in case this is confusing what I'm trying to do is incorporate the playlist function with the overlay function so I can add the playlist which I have written in php to show a menu of clips which the user can click on and have it open in an overlay...