RTMP with clipshare and neuvo

Discuss of clipshare script, custom programming, templates or anything related to this video script

RTMP with clipshare and neuvo

Postby Mike81 » Tue Jun 08, 2010 7:39 pm

According to http://www.clipshare.nuevolab.com/tips

Streaming from flash media servers (RTMP)
Nuevo Player is able to stream through RTMP(Real- Time Messaging Protocol).
This require small modification to PLAYLIST XML file (nuevo/playlist.php, nuevo/eplalist.php).
For main movie in playlist XML you have item <file>full url to movie file</file>

In case of rtmp protocol, you should change it to:
<rtmp>rtmp movies server url</rtmp>
<file>movie filename (without folder path)</file>


Let's take playlist.php: I search for "<file>" - but no such string is found.

What does it mean:
For main movie in playlist XML you have item <file>full url to movie file</file>


There are 257 lines in playlist.php. Where EXACTLY is the main movie <file>?

Please help!
Mike81
 
Posts: 3
Joined: Tue Jun 08, 2010 7:24 pm

Re: RTMP with clipshare and neuvo

Postby dargre » Wed Jun 09, 2010 3:39 pm

Man, when we write tips, we say about basic XML configuration.
And "file" is one of XML items in playlist file, which decides of video URL to play.
As video share website is dynamic php script, also playlist file must be php dynamic file.
Each video details (also video URL) is generated dynamically, taken from script's database.

So first video file to play is stored as some php variable. Usually we use $file, though it can be any other name.
Then such variable is passed to XML '<file>' item value.
Usually such line looks like:
Code: Select all
print "<file>".$file."</file>\n";

When this is rtmp streaming, same XML item should be created for "rtmp" URL.
Code: Select all
print "<rtmp>rtmp server url</rtmp>\n";


That's in short about playlist and XML items.
This are very basic things for semi experienced php programmer, but I know it can be magic for newbies.
It's also all what we can explain/suggest. Each custom code/streaming requires some knowledge from user, not everything can be said what exactly, which line and which word or code is to set.

BTW.
That's really dissapointing you cannot find <file> word inside php playlist.
In each editor there is search function..... :shock:

D.
Thank you,
Nuevolab Team
dargre
 
Posts: 299
Joined: Mon Sep 07, 2009 3:47 am

Re: RTMP with clipshare and neuvo

Postby Mike81 » Wed Jun 09, 2010 11:12 pm

Thank you for the response.

I did search for <file> -- there is no "<file>" but I did find "$file".

This is from playlist.php, beginning line 137:

Code: Select all
 
print "<track>\n";
  if(!(trim($row[rtmp])=="") && !(trim($row[rtmp_source])==""))
  {
  print "<rtmp>".$row[rtmp]."</rtmp>\n";
   
   print "<location>". $row[rtmp_source]."</location>\n";
   
  }
  else
  {
      print "<location>".$file."</location>\n";



You said
print "<file>".$file."</file>\n";


This is close to:

print "<location>".$file."</location>\n";


So now it looks like this:

Code: Select all

print "<track>\n";
  if(!(trim($row[rtmp])=="") && !(trim($row[rtmp_source])==""))
  {
  print "<rtmp>".$row[rtmp]."</rtmp>\n";
   
   print "<location>". $row[rtmp_source]."</location>\n";
   
  }
  else
  {

  print "<rtmp>rtmp server url</rtmp>\n";


Also did the same thing in eplaylist. But the RTMP still does not work.

What line needs to be changed if not this one?

Thanks for your help.

Mike
Mike81
 
Posts: 3
Joined: Tue Jun 08, 2010 7:24 pm

Re: RTMP with clipshare and neuvo

Postby dargre » Fri Jun 11, 2010 4:05 pm

<location> is not used in Nuevoplayer from long time, I don't even remember how long.
I'm afraid you are using newer version of Nuevoplayer, but try to implement old playlist php file.

Further discussion has no sense if I do not know what is your website URL, what is player version, what you set for rtmp URL and $file values what is your rtmp server, what is video file format to play.

EDIT
Just received your site URL and exactly as I suspected you mess up folder with files that Nuevoplayer use (especially playlist files). Your Amazon rtmp example video streams very well if only rtmp details set properly in appropriate playlist PHP file and correct Nuevoplayer folder. There's no need to experiment, what you found on Nuevolab's tips page is enough and it's really simple thing.
Thank you,
Nuevolab Team
dargre
 
Posts: 299
Joined: Mon Sep 07, 2009 3:47 am

Solution: RTMP with clipshare and neuvo

Postby Mike81 » Sat Jun 12, 2010 12:52 am

Thank you, Darge, for your help. It made all the difference.

Here's how I solved it.

In playlist.php, find:

$row=mysql_fetch_array($video);
if($row['rtmp']<>"" && $row['rtmp_source']<>"")
{
$file=$row['rtmp_source'];
$rtmp = "<rtmp>$row[rtmp]</rtmp>";
}
else



Change to:
Code: Select all
$row=mysql_fetch_array($video);
   if($row['rtmp']<>"" &&  $row['rtmp://myrtmpaddress.com/vod']<>"")
   {
      $file=$row['myvideo.flv'];
      $rtmp = $row['rtmp_source'];
   }
   else
   {



Then find:
print "<track>\n";
print "$rtmp\n";
print "<file>".$file."</file>\n";


Change to:
Code: Select all
print "<track>\n";
   if(isset($rtmp)) print "<rtmp>".$rtmp."</rtmp>\n";
  print "<file>".$file."</file>\n";


Also, I added the RTMP address and video file name to the video from the siteadmin.

This worked to stream RTMP from the wowza server.

Thank you again for your help.

Mike
Mike81
 
Posts: 3
Joined: Tue Jun 08, 2010 7:24 pm


Return to Clipshare

Who is online

Users browsing this forum: No registered users and 0 guests

cron