Fix support for arte.tv
commit485ce77c4638585e871a9ed8c511196e445e6317
authorMohamed El Morabity <melmorabity@fedoraproject.org>
Sat, 19 Oct 2013 23:45:14 +0000 (20 01:45 +0200)
committerToni Gundogdu <legatvs@gmail.com>
Sun, 20 Oct 2013 10:25:15 +0000 (20 13:25 +0300)
tree3d7babb68cca3ff1defa96419124f6c2c3b9c573
parent1cc2080c8b5e3c98caec16fff1e5c27b7b16fbb3
Fix support for arte.tv

* Videos are now hosted on arte.tv/guide; for new videos, there's a
  redirection from videos.arte.tv to arte.tv/guide

* For a given video, all stream datas are now provided by a JSON file
  instead of a XML file as before

* In this JSON data file, an ID (versionProg) describes the language of
  each available stream:

    versionProg == 1 -> default language version, matching the video URL
                        language

    versionProg == 2 -> alternate language version

    versionProg == 3 -> original version with default language subtitles

    versionProg == 8 -> default language version with subtitle for
                        hard-of-hearing

* I took the liberty of adding the stream protocol to the generated
  stream ID, to distinguish same-quality videos (some videos are
  available through HTTP, in addition of RTMP, for some MD/LD videos,
  probably for mobile phones

* The tests were updated to reflect these changes

Signed-off-by: Mohamed El Morabity <melmorabity@fedoraproject.org>
Reviewed-by: Toni Gundogdu <legatvs@gmail.com>
share/media/arte.lua
tests/media/media_arte.c