Dailymotion live stream

I found that current dailymotion service provider not working with live stream so i tried to create my own plugin for that here is what i done:



 

DM_TEST_URL ='http://www.dailymotion.com/video/xqjkfz_europe-1-live_news'

page = HTTP.Request(DM_TEST_URL).content
page = page.replace("%22",'"')
page = page.replace("%7D","}")
page = page.replace("%2C",",")
page = page.replace("%7B","{")
page = page.replace("%3A",":")
page = page.replace("%5D","]")
page = page.replace("%2F","/")
page = page.replace("%5C","")
page = page.replace("%3F","?")
page = page.replace("%3D","=")
page = page.replace("%2B","+")
page = page.replace("%25","%")
page = page.replace("%3E",">")
page = page.replace("%3C","<")
page = page.replace("%26","&")
for key in ['hd1080URL', 'hd720URL', 'hqURL', 'sdURL', 'ldURL', 'video_url']:
if key in page:
max_quality = key
break
Log("max_quality = %s" % max_quality)
abc = re.search(r'"' + max_quality + r'":"(.+?)"', page)
rtmp_url = HTTP.Request(abc.group(1)).content
rtmp_chunks = rtmp_url.split('/')
rtmp_host = rtmp_chunks[2];
rtmp_app  = rtmp_chunks[3];
Log("RTMP GET URL = %s" % rtmp_url)
Log("RTMP clip %s " % rtmp_url[len(rtmp_server)+1:])
oc.add(VideoClipObject(
    key = Callback(StartedMenu),
    rating_key = rtmp_url,
    title = "aaaaaaaaaaaaaa",
    items = [
      MediaObject(
        parts = [PartObject(key = RTMPVideoURL(rtmp_server,clip=rtmp_url[len(rtmp_server)+1:],live=True))]
      )
    ]
  ))

An here is the problem. Everything works just fine on Plex media center But on my TV and via plex server management i got error "File not found"

 

Already tried UseRealRTMP but nothing happens.

 

Any advises will be appreciated

 

PMS does not transcode live streams so unless the client can handle format natively, it won’t work. Only the desktop client (PMC/PHT) can handle RTMP streams natively.

Thanks for the replay but that confuse me even more.

So far i was thinkging that when you use UseRealRTMPits fors the "client" to use the native rtmp support but if you dont use UseRealRTMP it shud use the flash player to generate the url like

http://www.plexapp.com/player/player.php?url=rtmp://stream-18.vty.dailymotion.com/live-dm&clip=xqjkfz_hd720?auth=1383135040-e6d3cbebac67c64835caf7fa583b3dc0#cell=live&width=640&

and play it via native flash rtmp support .

Transcoding streams from the plexapp-hosted flash player requires that the streams do not use any swf-verification AND that your specific PMS setup is webkit-capable. There are so many variables involved in debugging non-working WebKit channels that it’s practically impossible to determine whether it can work on one system or another. The only scenarios that we know certainly won’t work is if PMS is running on Linux or Windows XP. If I were you, I wouldn’t waste my time on trying to get the WebKit implementation working. It’s liable to break again at any time and you’re likely to have a lot of grief from users who can’t get it working on their setup.

[...] If I were you, I wouldn't waste my time on trying to get the WebKit implementation working. It's liable to break again at any time and you're likely to have a lot of grief from users who can't get it working on their setup.

This ^^ And Webkit support is most likely to be removed sooner than later.

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