carlosx2 Posted June 1, 2010 Share Posted June 1, 2010 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 More sharing options...
kenrbnsn Posted June 1, 2010 Share Posted June 1, 2010 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 Link to comment https://forums.phpfreaks.com/topic/203574-php-flow-player-playlist-problem/#findComment-1066363 Share on other sites More sharing options...
carlosx2 Posted June 1, 2010 Author Share Posted June 1, 2010 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. Link to comment https://forums.phpfreaks.com/topic/203574-php-flow-player-playlist-problem/#findComment-1066392 Share on other sites More sharing options...
carlosx2 Posted June 2, 2010 Author Share Posted June 2, 2010 any one else who can help me. Link to comment https://forums.phpfreaks.com/topic/203574-php-flow-player-playlist-problem/#findComment-1066554 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.