Liverpoolfc.tv Addon
#1
I'm new to XBMC and I'm no much of a developer but I'm gonna try to make an addon anyway.
The site www.liverpoolfc.tv has a subscription based video service with both archived flash video content and live streams. My first goal is to be able to launch the main live stream which is located here: http://www.liverpoolfc.tv/video/lfctv-live-stream
I've figured out how to log in to the website using mechanize and now I'm trying to figure out how to get to the stream. It seems it's buried in this javascript file: http://assets3.lfcimages.com/js/video-player-2.00.js
If anyone is able to help me figure out how to parse this I'd greatly appreciate any tips.
Reply
#2
Search that page for streamerUrl. Immediately after that you'll find the part where the url to the video is assembled. You need to find the variables being plugged in and assemble them into a url the same way. The rtmpe:// protocol may be what causes you the most trouble as you'll need to learn how to use rtmpdump
Reply
#3
Thanks Bstrdsmkr. Assuming I figure out how to assemble the rmtpe url, are you saying I can't pass that in to xbmc? What does rtmpdump do? Would it need to be part of the addon or is that used to help get the url? Do you know of any addons using rtmpdump so I can see how it's used
Reply
#4
Ok so the rtmpe url in the .js file looks like:
Code:
rtmpe://lfctvfs.fplive.net/lfctv&rtmpFlavors=1&sourceType=entryId&host=mp.streamuk.com&cdnHost=l3.cdn.mp.streamuk.com&entryId='+stream_uk_id+'&uiConfId=5555579&widgetId=_101&partnerId=101&subpId=10100&autoPlay='+autoPlay+'&ks='+ksession+'
with:
Code:
var stream_uk_id = "0_apa0kqop";
var autoPlay = 'true';
var ksession = "";
which I'm guessing would end up with a url like:
Code:
rtmpe://lfctvfs.fplive.net/lfctv&rtmpFlavors=1&sourceType=entryId&host=mp.streamuk.com&cdnHost=l3.cdn.mp.streamuk.com&entryId=0_apa0kqop&uiConfId=5555579&widgetId=_101&partnerId=101&subpId=10100&autoPlay=true&ks=
although I'm not sure about the quotes since I don't know javascript.

I used URL Snooper and got the following list of urls:
Code:
http://www.liverpoolfc.tv/static_video.php/lfc-video/watch?clip_id=9592&device=player&quality=0
www.liverpoolfc.tv
http://www.liverpoolfc.tv/video/lfctv-live-stream
http://l3.cdn.mp.streamuk.com/mwEmbed/html5.js?_=1339275652969
http://www.kaltura.org/project/HTML5_Video_Media_JavaScript_Library
http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html
http://www.kaltura.com
http://cdn.kaltura.com
http://mp.streamuk.com/mwEmbed/ResourceLoader.php
http://192.168.1.69/html5.kaltura/mwEmbed/ResourceLoader.php
http://l3.cdn.mp.streamuk.com
http://l3.cdn.mp.streamuk.com/p/101/sp/10100/flash/kdp3/v3.4.10.1/kdp3.swf
http://206.33.36.126/+ downloadUrl +
http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6
http://mp.streamuk.com
http://javascript.nwbox.com/IEContentLoaded
http://mp.streamuk.com/index.php/kwidget/wid/_101/uiconf_id/200
http://www.kaltura.com/content/uiconf/kaltura/kmc/appstudio/kdp3/exampleWatermark.png
http://www.kaltura.com/
http://l3.cdn.mp.streamuk.com/p/101/sp/10100/raw/entry_id/0_iuivnpkc/version/0
http://l3.cdn.mp.streamuk.com/p/101/sp/10100/thumbnail/entry_id/0_iuivnpkc/version/100001
http://l3.cdn.mp.streamuk.com/p/101/sp/10100/flvclipper/entry_id/0_iuivnpkc/version/0
http://mp.streamuk.com/p/101/sp/10100/playManifest/entryId/0_iuivnpkc/format/rtmp/protocol/rtmp/cdnHost/l3.cdn.mp.streamuk.com/ks/YmU1ZTI0ODRhN2QzZWIxYmZmYzZjOWQwMmYwNDQxYjVjZGYwMjYxZXwxMDE7MTAxOzEzMzkyNzU5NTE7MDsxMzM5Mjc1NjUxLjU1MzI7VVNFUjtzdmlldzoqOw==/referrer/bXAuc3RyZWFtdWsuY29t/a/a.f4m
http://ns.adobe.com/f4m/1.0
rtmp://lfceventslivefs.fplive.net/lfceventslive-live
http://www.footprint.net
Jhttp://l3.cdn.mp.streamuk.com/p/101/sp/101
rtmp://lfceventslivefs.fplive.net:443/lfceventslive-live
http://www.liverpoolfc.tv/video/lfctv-live-stre
http://mp.streamuk.com//api_v3/index.php?service=stats&action=collect&ks=YmU1ZTI0ODRhN2QzZWIxYmZmYzZjOWQwMmYwNDQxYjVjZGYwMjYxZXwxMDE7MTAxOzEzMzkyNzU5NTE7MDsxMzM5Mjc1NjUxLjU1MzI7VVNFUjtzdmlldzoqOw%3D%3D&event%3AclientVer=3%2E0%3Av3%2E4%2E10%2E2&event%3Aduration=0&ignoreNull=1&event%3AentryId=0%5Fiuivnpkc&event%3AeventType=1&event%3ApartnerId=101&event%3AsessionId=22CAFECF%2D0BDC%2DF8F4%2D6C28%2DD30CB009CF11&event%3AisFirstInSession=false&event%3AuiconfId=6666668&event%3Areferrer=mp%2Estreamuk%2Ecom&event%3AeventTimestamp=1339275638178&clientTag=kdp%3Av3%2E4%2E10%2E2&event%3Aseek=false&event%3AobjectType=Kaltura
http://mp.streamuk.com//api_v3/index.php?service=stats&action=collect&ks=YmU1ZTI0ODRhN2QzZWIxYmZmYzZjOWQwMmYwNDQxYjVjZGYwMjYxZXwxMDE7MTAxOzEzMzkyNzU5NTE7MDsxMzM5Mjc1NjUxLjU1MzI7VVNFUjtzdmlldzoqOw%3D%3D&event%3AclientVer=3%2E0%3Av3%2E4%2E10%2E2&event%3Aduration=0&ignoreNull=1&event%3AentryId=0%5Fiuivnpkc&event%3AeventType=2&event%3ApartnerId=101&event%3AsessionId=22CAFECF%2D0BDC%2DF8F4%2D6C28%2DD30CB009CF11&event%3AisFirstInSession=false&event%3AuiconfId=6666668&event%3Areferrer=mp%2Estreamuk%2Ecom&event%3AeventTimestamp=1339275638205&clientTag=kdp%3Av3%2E4%2E10%2E2&event%3Aseek=false&event%3AobjectType=Kaltura
http://mp.streamuk.com//api_v3/index.php?service=stats&action=collect&ks=YmU1ZTI0ODRhN2QzZWIxYmZmYzZjOWQwMmYwNDQxYjVjZGYwMjYxZXwxMDE7MTAxOzEzMzkyNzU5NTE7MDsxMzM5Mjc1NjUxLjU1MzI7VVNFUjtzdmlldzoqOw%3D%3D&event%3AclientVer=3%2E0%3Av3%2E4%2E10%2E2&event%3Aduration=0&ignoreNull=1&event%3AentryId=0%5Fiuivnpkc&event%3AeventType=3&event%3ApartnerId=101&event%3AsessionId=22CAFECF%2D0BDC%2DF8F4%2D6C28%2DD30CB009CF11&event%3AisFirstInSession=false&event%3AuiconfId=6666668&event%3Areferrer=mp%2Estreamuk%2Ecom&event%3AeventTimestamp=1339275645003&clientTag=kdp%3Av3%2E4%2E10%2E2&event%3Aseek=false&event%3AobjectType=Kaltura

I noticed that this url:
Code:
http://mp.streamuk.com/p/101/sp/10100/playManifest/entryId/0_iuivnpkc/format/rtmp/protocol/rtmp/cdnHost/l3.cdn.mp.streamuk.com/ks/YmU1ZTI0ODRhN2QzZWIxYmZmYzZjOWQwMmYwNDQxYjVjZGYwMjYxZXwxMDE7MTAxOzEzMzkyNzU5NTE7MDsxMzM5Mjc1NjUxLjU1MzI7VVNFUjtzdmlldzoqOw==/referrer/bXAuc3RyZWFtdWsuY29t/a/a.f4m
looks like an xml file which contains an rtmp base url and an ID. This url expires so I'm guessing this is the url I need although I'm not yet sure how to get to that point.

Does anyone know if XBMC can interpret the f4m format or do I need to read parse that in my addon?
Also assuming that the rtmp url with the temp ID added at the end is what I need, how do I test this?
Reply

Logout Mark Read Team Forum Stats Members Help
Liverpoolfc.tv Addon0