You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

overlay with playlist question Created Aug 23, 2009

This thread is solved

Views: 1708     Replies: 1     Last reply Feb 25, 2010  
You must login first before you can use this feature

cowboysdude

Posts: 14

Registered:
Mar 9, 2009

overlay with playlist question

Posted: Aug 23, 2009

I'm trying to create a playlist to use with 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...

amphitube

Posts: 12

Registered:
Jan 6, 2010

solution please

Posted: Feb 25, 2010

Reply to: overlay with playlist question, from cowboysdude
we are looking to resolve this problem any help will be greatly appreciated