Youtube plugin and lighttpd

Seek help running and customizing Nuevoplayer Please do not post bug reports, or feature requests here.

Youtube plugin and lighttpd

Postby dargre » Mon Feb 22, 2010 1:26 pm

There can be issue when someone uses Nuevolab's youtube plugin and streams local files through lighttpd port.
Embed youtube player has own streaming system, so lighttpd option shouldn't be used for it.
Though we do not support free client's streaming issues, we try to post a fix for that.

Edit file "nuevo/config.php",
Find a line:
Code: Select all
$sql="select VID, thumb from video where vkey='".mysql_real_escape_string($key)."' limit 1";

Change it to:
Code: Select all
$sql="select VID, thumb, embed_code from video where vkey='".mysql_real_escape_string($key)."' limit 1";


FInd code:
Code: Select all
if($set['streamhttp']=='1' && strlen($set['streamscript'])>0) {
   print "<streamscript>".$set['streamscript']."</streamscript>\n"; }

Replace it with:
Code: Select all
if($set['streamhttp']=='1' && strlen($set['streamscript'])>0 && strlen($row['embed_code']==0) ) {
   print "<streamscript>".$set['streamscript']."</streamscript>\n"; }



Repeat same steps in file "econfig.php"
Thank you,
Nuevolab Team
dargre
 
Posts: 299
Joined: Mon Sep 07, 2009 3:47 am

Return to Troubleshooting & 'How Do I' Questions

Who is online

Users browsing this forum: No registered users and 0 guests