# Dailymotion live stream

**URL:** <https://forums.plex.tv/t/dailymotion-live-stream/45650>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [October 29, 2013, 9:26pm UTC](https://forums.plex.tv/t/dailymotion-live-stream/45650 "2013-10-29T21:26:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Menta2K](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Menta2K](https://forums.plex.tv/u/Menta2K)\
**Post date:** [October 29, 2013, 9:26pm UTC](https://forums.plex.tv/t/dailymotion-live-stream/45650/1 "2013-10-29T21:26:15Z")

</div>

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

```

```

```

```

> &nbsp;
> 
> DM\_TEST\_URL ='[http://www.dailymotion.com/video/xqjkfz\_europe-1-live\_news](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 &nbsp;= rtmp\_chunks[3];
> 
> Log("RTMP GET URL = %s" % rtmp\_url)
> 
> Log("RTMP clip %s " % rtmp\_url[len(rtmp\_server)+1:])
> 
> oc.add(VideoClipObject(
> 
> &nbsp; &nbsp; key = Callback(StartedMenu),
> 
> &nbsp; &nbsp; rating\_key = rtmp\_url,
> 
> &nbsp; &nbsp; title = "aaaaaaaaaaaaaa",
> 
> &nbsp; &nbsp; items = [
> 
> &nbsp; &nbsp; &nbsp; MediaObject(
> 
> &nbsp; &nbsp; &nbsp; &nbsp; parts = [PartObject(key = RTMPVideoURL(rtmp\_server,clip=rtmp\_url[len(rtmp\_server)+1:],live=True))]
> 
> &nbsp; &nbsp; &nbsp; )
> 
> &nbsp; &nbsp; ]
> 
> &nbsp; ))

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"

&nbsp;

Already tried&nbsp;UseRealRTMP but nothing happens.

&nbsp;

Any advises will be appreciated

&nbsp;

---

<div class="post-metadata">

**Author:** ![mikedm139](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mikedm139/32/96909_2.png) [@mikedm139](https://forums.plex.tv/u/mikedm139)\
**Post date:** [October 29, 2013, 10:08pm UTC](https://forums.plex.tv/t/dailymotion-live-stream/45650/2 "2013-10-29T22:08:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Menta2K](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Menta2K](https://forums.plex.tv/u/Menta2K)\
**Post date:** [October 30, 2013, 10:15am UTC](https://forums.plex.tv/t/dailymotion-live-stream/45650/3 "2013-10-30T10:15:00Z")

</div>

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&](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 .

---

<div class="post-metadata">

**Author:** ![mikedm139](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mikedm139/32/96909_2.png) [@mikedm139](https://forums.plex.tv/u/mikedm139)\
**Post date:** [October 30, 2013, 3:52pm UTC](https://forums.plex.tv/t/dailymotion-live-stream/45650/4 "2013-10-30T15:52:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [October 30, 2013, 4:16pm UTC](https://forums.plex.tv/t/dailymotion-live-stream/45650/5 "2013-10-30T16:16:30Z")

</div>

> [...] 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.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 21, 2019, 12:21am UTC](https://forums.plex.tv/t/dailymotion-live-stream/45650/6 "2019-12-21T00:21:00Z")

</div>

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