Kodi Community Forum
Working on a video plugin. 95% working but... - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Working on a video plugin. 95% working but... (/showthread.php?tid=157537)



Working on a video plugin. 95% working but... - teefer22 - 2013-02-25

Hello,
I'm working on building a plugin for a canadian sports website called video.tsn.ca.
Most of the time (probably 95% of the time) the final video link looks like this:
Video.Load({url:'rtmpe://cp184891.edgefcs.net/ondemand/hdns/TSN/2013_02_22/jetssot_022213_29C451B9AAF7A213/jetssot_022213-Adaptive_04.mp4?auth=dbEaZb3aNbZcFbydecLdxcwcIaWbucOaXdD-brk38G-eS-iYG-pvJ1wmECo&aifp=v001&slist=/hdns/TSN/2013_02_22/jetssot_022213_29C451B9AAF7A213/',err:'',stings:[],bumpers:[]});

That's all fine, I can get that type of video to work just fine

However, sometimes the final video link looks like this:
Video.Load({url:'http://ctvmms.rd.llnwd.net/o41/mobile/TSN/2013/02/22/leafssot_022213.mp4',err:'',stings:[],bumpers:[]});

Is there any way to make that play back in XBMC? Or am i out of luck on those links because it's an http instead of an rtmp?


RE: Working on a video plugin. 95% working but... - sphere - 2013-02-25

Whats wrong with MP4 HTTP?

XBMC can play both


RE: Working on a video plugin. 95% working but... - teefer22 - 2013-02-25

(2013-02-25, 17:24)sphere Wrote: Whats wrong with MP4 HTTP?

XBMC can playback both

Thanks for the reply, I didn't know xbmc would handle mp4 http. When I put:
http://ctvmms.rd.llnwd.net/o41/mobile/TSN/2013/02/22/leafssot_022213.mp4
in an .strm file and try to play it, nothing happens and I get this in the log:

http://pastebin.com/cDSEifJX

I've tried dropping the http:// but it didn't make any difference. So technically, I should be able to play that back as is?

I tried putting that link straight into a browser, it changes it to:
http://ctvmms.vo.llnwd.net/kip0/_pxn=1+_pxI0=Ripod-h264+_pxL0=undefined+_pxM0=+_pxK=19321+_pxE=mp4/o41/mobile/TSN/2013/02/22/leafssot_022213.mp4

I just found that if I put THAT link into an strm file it does work. Maybe I just need to try to figure out how it's changing the link to the above.


RE: Working on a video plugin. 95% working but... - sphere - 2013-02-25

The server responds with a 302 redirect. Not sure why xbmc doesn't follow that.
As a workaround you could do (in python) a head-request to get the redirect-location and deliver that to xbmc.


RE: Working on a video plugin. 95% working but... - teefer22 - 2013-02-25

(2013-02-25, 17:46)sphere Wrote: The server responds with a 302 redirect. Not sure why xbmc doesn't follow that.
As a workaround you could do (in python) a head-request to get the redirect-location and deliver that to xbmc.

Thanks so much for your help, I'll work on that.