first make sure rtmpdump is run from php (do a
- Code: Select all
ps | grep rtmp
ps | grep rtmp

rtmp://fml.2010.edgecastcdn.net/202010<playpath>johngoodly_18633%20<swfUrl>http://static.ec.own3d.tv/player/3.2.2.8/flowplayer.rtmp.swf%20<pageUrl>http://www.own3d.tv/live/18633/MoreCowbell.com_HD_LoL//Stream
$myMediaItems[] = array(
'id' => 'umsp://plugins/stream',
'parentID' => '0',
'restricted' => '1',
'dc:creator' => 'myCreator',
'dc:title' => 'Stream',
'dc:date' => '2009-12-30',
'upnp:author' => 'myAuthor',
'upnp:artist' => 'myArtist',
'upnp:album' => 'myAlbum',
'upnp:genre' => 'myGenre',
'upnp:length' => '2:10:20',
'desc' => 'myDesc',
'upnp:class' => 'object.container',
'upnp:album_art'=> '',
'duration' => 'myDur3',
'size' => 'mySize3',
'bitrate' => 'myBitr',
'protocolInfo' => '*:*:*:*',
'resolution' => 'myReso',
'colorDepth' => 'myColor',
);$proxyUrl = 'http://127.0.0.1/umsp/plugins/rtmp-proxy.php?'; //This path might change
$app = rtmp://fml.2010.edgecastcdn.net/202010<playpath>johngoodly_18633; // probably IP.IP.IP.IP:PORT/onDemand/ or something. include the server and port
$path = http://static.ec.own3d.tv/player/3.2.2.8/flowplayer.rtmp.swf; //probably mp4:XXXXXXXXXXXX
$format = 'flv'; // file format to transcode to. Most time.. flv to flv works good to fix framerate issue. Can't use Mp4 or similar (g3p)... mkv also didnt work. Let me know if you get it working!
$title = 'Stream'; //movie title... get it from your plugin... or juste use a default name
$content-type = '"video/x-flv"'; //What content-type should be used in the header.. see $format
$query = array(
'r' => urlencode($app),
'y' => urlencode($path),
'format' => urlencode($format),
'title' => urlencode($title),
'content-type' => urlencode($content-type),
);
$queryStr = http_build_query($query);
$location = $proxyUrl . $queryStr;
$mediaItem = array (
'id' => 'umsp://plugins/rtmp-null',
'dc:title' => $title,
'res' => $location,
'upnp:class' => 'object.item.videoitem',
'protocolInfo' => 'http-get:*:'.$content-type.':*',
);
return $mediaItem;

<?php
$proxyUrl = 'http://127.0.0.1/umsp/plugins/rtmp-proxy.php?'; //This path might change
$app = rtmp://tv3-es.directe-f4v.emissio.tvcatalunya.cat:1935/live/?ovpfv=1.1/ES_TV3_FLV_Thumbnail@14017?auth=yyyy&aifp=zzzz.flv; // probably IP.IP.IP.IP:PORT/onDemand/ or something. include the server and port
$path = http://www.tv3.cat/ria/players/3ac/i360/Main.swf; //probably mp4:XXXXXXXXXXXX
$format = 'flv'; // file format to transcode to. Most time.. flv to flv works good to fix framerate issue. Can't use Mp4 or similar (g3p)... mkv also didnt work. Let me know if you get it working!
$title = 'TV3'; //movie title... get it from your plugin... or juste use a default name
$content-type = '"video/x-flv"'; //What content-type should be used in the header.. see $format
$query = array(
'r' => urlencode($app),
'y' => urlencode($path),
'format' => urlencode($format),
'title' => urlencode($title),
'content-type' => urlencode($content-type),
);
$queryStr = http_build_query($query);
$location = $proxyUrl . $queryStr;
$mediaItem = array (
'id' => 'umsp://plugins/rtmp-null',
'dc:title' => $title,
'res' => $location,
'upnp:class' => 'object.item.videoitem',
'protocolInfo' => 'http-get:*:'.$content-type.':*',
);
return $mediaItem;
?>

Users browsing this forum: No registered users and 3 guests