Jump to content

php flow player playlist problem


carlosx2

Recommended Posts

ok i have the following problem.

 

I try to generate a play list with the variable $flv_video  it stores all the flv movie i have gotten from a folder with glob. But this code i made is not generating a play list at all. How should i do this?  I am also no pro at flowplayer. I need a play list in the player code, i know it is possible in flow player. I need it as not every folder has a set number of movies, it has to be dynamic. I am sure it has to be something like i did but it needs some help .

 

 

<!-- Flowplayer installation and configuration --> 
  <script language="JavaScript"> 

flowplayer("player", "http://fukvidz.com/content/player/flowplayer-3.2.1.swf", {

// this will enable pseudostreaming support 
plugins: { 
	pseudo: { url: 'http://fukvidz.com/content/player/flowplayer.pseudostreaming-3.2.1.swf' } 
},

controls: {
		playlist: true,

		// use tube skin with a different background color
		url: 'http://fukvidz.com/content/player/flowplayer.controls-3.2.0.swf', 
		backgroundColor: '#aedaff'
	},

// clip properties 
playlist: [

	// our clip uses pseudostreaming
	provider: 'pseudo',						


	<?php  foreach ($flv_video as $flv_file){ if { echo "{url: 'http://fukvidz.com/$flv_file', scaling: 'fit'},";  }} ?> 

}

});
    </script>
    
    <!-- END FLV MOVIE CONTAINER FOR THE PLAYER WHEN PEOPLE ARE LOGED IN ENDS HERE -->

Link to comment
https://forums.phpfreaks.com/topic/203574-php-flow-player-playlist-problem/
Share on other sites

You have an "if" statement with no condition

<?php
     foreach ($flv_video as $flv_file){
           if { echo "{url: 'http://fukvidz.com/$flv_file', scaling: 'fit'},";  }}
?>

I don't think you want that, try

<?php
    foreach ($flv_video as $flv_file){
           echo "{url: 'http://fukvidz.com/$flv_file', scaling: 'fit'},";
    }
?>

 

Ken

well that is what I had first just e Ho and no if. it have me the error.

 

it has  to be different. maybe it.is.the fact that. I have pop Iside a javazcript. but how would you write this in javascript. that's really not my thing. plus I load the glob function into a variable its not javascript.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.