After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 656001 - Add BBC video news "feed"
Add BBC video news "feed"
Status: RESOLVED WONTFIX
Product: grilo
Classification: Other
Component: plugins
git master
Other Linux
: Normal normal
: ---
Assigned To: grilo-maint
grilo-maint
Depends on: 672923
Blocks:
 
 
Reported: 2011-08-04 21:39 UTC by Bastien Nocera
Modified: 2014-02-24 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
grl-bbcnews.lua (2.66 KB, text/plain)
2014-02-24 16:09 UTC, Bastien Nocera
Details

Description Bastien Nocera 2011-08-04 21:39:11 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.
Comment 1 Guillaume Emont (guijemont) 2011-08-11 15:21:58 UTC
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
Comment 2 Bastien Nocera 2014-02-24 11:50:25 UTC
I started implementing this, and it's fairly useless. There's far too few videos for this to be interesting.
Comment 3 Bastien Nocera 2014-02-24 16:09:07 UTC
Created attachment 270152 [details]
grl-bbcnews.lua

For the record, the incomplete BBC News source I started writing.