rtmp or site config?

I have made menus for my plugin to www.memocast.com, and I was very happy to get the video content on that site showing up in Plex, together with summary.

I am feeling I have made good progress with this, with no previous knowledge about plugins and python programming.



Now I would like to see if i can get the plugin to show any video, and using firebug i see that there is RTMP streams with mp4.





True

Огни притона
rtmp://209.234.240.204:1935/memocast_2011_12/mp4:254129.1.2476fa714b884e0b8d34a363a4b9c1ec.mp4
rtmp://209.234.240.204:1935/memocast_2011_12/mp4:254129.3.facee99ff5654488b430ec4ee74c952b.mp4


But I can not find any mention of stream, rtmp or mp4 in the web page source. Do I then need to use Site Config?
The page source provides me with the following information about the flash, so it looks to me that this will be easier to figure out than RTMP streams:

var xiSwfUrlStr = "/flex/player.2011/playerProductInstall.swf";
var swfPlayerUrl = "/flex/player.2011/player.20111215.swf";
swfobject.embedSWF(swfPlayerUrl, "divMemocastFlashPlayer", "720", "405", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes);

It’s generally best to use the RTMP streams whenever possible, as long as you can figure out a way to programmatically find the RTMP url. That avoids a lot of messing around with site configs which shouldn’t be necessary in your case. Those RTMP streams play for me, so I would definitely lean towards using them.



I’m not sure if you’re aware of it already but, Plex uses it’s own web player for RTMP streams. You can access it for testing purposes here: http://www.plexapp.com/player/player.php?



It takes 2 arguments (player “url” and “clip”) just like the RTMPVideoItem in the plugin framework. For example, using your HD RTMP link from above,


http://www.plexapp.com/player/player.php?url=rtmp://209.234.240.204:1935/memocast_2011_12/&clip=mp4:254129.3.facee99ff5654488b430ec4ee74c952b.mp4

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.