Working on a video plugin. 95% working but...
#1
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?
Reply
#2
Whats wrong with MP4 HTTP?

XBMC can play both
My GitHub. My Add-ons:
Image
Reply
#3
(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/TS...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+_...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.
Reply
#4
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.
My GitHub. My Add-ons:
Image
Reply
#5
(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.
Reply



Logout Mark Read Team Forum Stats Members Help
Working on a video plugin. 95% working but...0
This forum uses Lukasz Tkacz MyBB addons.