GNOME Bugzilla – Bug 656001
Add BBC video news "feed"
Last modified: 2014-02-24 16:09:07 UTC
Here's the "rev-eng'ed" version 1. Get the bootstrap information. This should be cached, and only retrieved if it changed. URL: http://www.bbc.co.uk/moira/feeds/iphone/news/en-GB/v1 User-Agent: "BBC News 1.7.1 (iPhone; iPhone OS 4.0.1; en_GB)" 2. For each of the feeds listed in the file (again, cached), you'll get the headlines, some of which will have videos. For example: bbcvideo://urn%3Anews-bbc-co-uk%3Astory%3A14399307/www.bbc.co.uk/moira/avod/%7bdevice%7d/av/uk-14402659/news/entertainment/761000/761864/%7bbandwidth%7d This is decomposed into: bbcvideo:// followed by the id of the entry (escaped), followed by a URL with some "holes" in it. One of "<device>"'s possible values is "iphone" One of "<bandwidth>"'s possible values is "wifi" This is a slightly mangled version of the RSS source, most of which could be reused.
After some testing, the url deduced from the bbcvideo:// address needs to be retrieved with the "magic" user-agent. The content at this url is file containing the uri of the actual video that can be given to gstreamer (totem can play it without any problem). Exemple of video stream url: http://news.downloads.bbc.co.uk.edgesuite.net/mps_h264_400/public/news/uk/764000/764532_h264_512k.mp4?at=9UYRVe1H7f5eff8ee4bf5c28eff752dd2ff09c828c0b7f9a4aa3bbe385d80
I started implementing this, and it's fairly useless. There's far too few videos for this to be interesting.
Created attachment 270152 [details] grl-bbcnews.lua For the record, the incomplete BBC News source I started writing.