OnlineVideos - playlists for Video (ABC iView) (1 Viewer)

dcapslock

Portal Member
September 1, 2015
20
12
Sydney
Home Country
Australia Australia
Hi All,

I am working on polishing the ABC iView Site for OnlineVideos. I have now got to the point where I get a JSON for a program with some playlists. See the code below. What I am best to do to 1: Give a default VideoURL from the F4M and/or M3U8 files AND/OR 2: Provide multiple playlists for different.

Please help

Thanks

Code:
{
  "seriesTitle": "New Tricks",
  "title": "Series 10 Ep 10 Wild Justice",
  "href": "programs\/new-tricks\/ZX9629A010S00",
  "channel": "abc1",
  "pubDate": "2015-09-05 21:30:00",
  "thumbnail": "http:\/\/cdn.iview.abc.net.au\/thumbs\/i\/ZX9629A010S0053db2e4e9e09b8.86477790_1280.jpg",
  "episodeHouseNumber": "ZX9629A010S00",
  "duration": "3525",
  "rating": "PG",
  "label": "59 mins",
  "expireDate": "2015-09-19 21:30:00",
  "seriesHouseNumber": "ZX9629A",
  "categories": [
    {
      "title": "DRAMA",
      "href": "category\/drama"
    }
  ],
  "description": "Miller faces a dilemma following the investigation into a corrupt senior officer. CAST: Sasha Miller, Sandra Pullman",
  "related": "related\/ZX9629A010S00",
  "buy": {
    "apple": "http:\/\/itunes.apple.com\/WebObjects\/MZStore.woa\/wa\/viewTVSeason?uo=5&i=759379565&id=741790078&at=11l758",
    "google": "https:\/\/play.google.com\/store\/tv\/show?id=Iosq4uZXq2U&cdid=tvseason-R1jNfvHUbRCqRDpAS4Errg&gdid=tvepisode-vYJX_w1y41Q",
    "shop": "https:\/\/shop.abc.net.au\/products\/new-tricks-3dvd-sr-10?WT.ac=Commercial_Shop-ShopOnline%7Cabcshop%7Ciview-dto-new-tricks-series-10-ep-10-wild-justice"
  },
  "availability": "Broadcast 8:30pm Saturday 5 September 2015. Published 47 minutes ago, available until 9:30pm on 19 September 2015. File size approx. 294 MB",
  "streams": {
    "hls-high": [
      "http:\/\/iviewhls-i.akamaihd.net\/i\/SMIL\/classification\/PG.smil\/master.m3u8",
      "http:\/\/iviewhls-i.akamaihd.net\/i\/playback\/_definst_\/_video\/newtricks_10_10_,650000,495000,205000,40761,.mp4.csmil\/master.m3u8"
    ],
    "hls-base": [
      "http:\/\/iviewhls-i.akamaihd.net\/i\/SMIL\/classification\/PG.smil\/master.m3u8",
      "http:\/\/iviewhls-i.akamaihd.net\/i\/playback\/_definst_\/_video\/newtricks_10_10_,650000,495000,205000,40761,.mp4.csmil\/master.m3u8"
    ],
    "hls-low": [
      "http:\/\/iviewhls-i.akamaihd.net\/i\/SMIL\/classification\/PG.smil\/master.m3u8",
      "http:\/\/iviewhls-i.akamaihd.net\/i\/playback\/_definst_\/_video\/newtricks_10_10_,495000,205000,40761,.mp4.csmil\/master.m3u8"
    ],
    "hds-metered": [
      "http:\/\/iviewmetered-vh.akamaihd.net\/z\/SMIL\/classification\/PG.smil\/manifest.f4m",
      "http:\/\/iviewmetered-vh.akamaihd.net\/z\/playback\/_definst_\/_video\/newtricks_10_10_,650000,495000,205000,40761,.mp4.csmil\/manifest.f4m"
    ],
    "hds-unmetered": [
      "http:\/\/iviewum-vh.akamaihd.net\/z\/SMIL\/classification\/PG.smil\/manifest.f4m",
      "http:\/\/iviewum-vh.akamaihd.net\/z\/playback\/_definst_\/_video\/newtricks_10_10_,650000,495000,205000,40761,.mp4.csmil\/manifest.f4m"
    ]
  },
  "playlist": [
    {
      "type": "rating",
      "hls-high": "http:\/\/iviewhls-i.akamaihd.net\/i\/SMIL\/classification\/PG.smil\/master.m3u8",
      "hls-base": "http:\/\/iviewhls-i.akamaihd.net\/i\/SMIL\/classification\/PG.smil\/master.m3u8",
      "hls-low": "http:\/\/iviewhls-i.akamaihd.net\/i\/SMIL\/classification\/PG.smil\/master.m3u8",
      "hds-metered": "http:\/\/iviewmetered-vh.akamaihd.net\/z\/SMIL\/classification\/PG.smil\/manifest.f4m",
      "hds-unmetered": "http:\/\/iviewum-vh.akamaihd.net\/z\/SMIL\/classification\/PG.smil\/manifest.f4m"
    },
    {
      "type": "program",
      "captions": {
        "src-vtt": "http:\/\/iview.abc.net.au\/cc\/newtricks_10_10_v2.vtt",
        "src-xml": "http:\/\/iview.abc.net.au\/cc\/newtricks_10_10_v2.xml",
        "live": "0"
      },
      "hls-high": "http:\/\/iviewhls-i.akamaihd.net\/i\/playback\/_definst_\/_video\/newtricks_10_10_,650000,495000,205000,40761,.mp4.csmil\/master.m3u8",
      "hls-base": "http:\/\/iviewhls-i.akamaihd.net\/i\/playback\/_definst_\/_video\/newtricks_10_10_,650000,495000,205000,40761,.mp4.csmil\/master.m3u8",
      "hls-low": "http:\/\/iviewhls-i.akamaihd.net\/i\/playback\/_definst_\/_video\/newtricks_10_10_,495000,205000,40761,.mp4.csmil\/master.m3u8",
      "hds-metered": "http:\/\/iviewmetered-vh.akamaihd.net\/z\/playback\/_definst_\/_video\/newtricks_10_10_,650000,495000,205000,40761,.mp4.csmil\/manifest.f4m",
      "hds-unmetered": "http:\/\/iviewum-vh.akamaihd.net\/z\/playback\/_definst_\/_video\/newtricks_10_10_,650000,495000,205000,40761,.mp4.csmil\/manifest.f4m"
    }
  ],
  "transmitDate": "2015-09-05 20:30:00",
  "transmitChannel": "ABC1",
  "captions": "http:\/\/iview.abc.net.au\/cc\/legacy\/newtricks_10_10_v2.vtt",
  "share": "http:\/\/iview.abc.net.au\/programs\/new-tricks\/ZX9629A010S00"
}
[DOUBLEPOST=1441458573][/DOUBLEPOST]Forgot to mention, all the URLs will are not tested yet and likely to need to be retrieved using the ABC iView Auth method.
 

dcapslock

Portal Member
September 1, 2015
20
12
Sydney
Home Country
Australia Australia
Ok. Using the hdtoken you can get the manifest file. However it is a manifest with bootstrap data for HDS streaming so nothing to gain unless MP can do F4M and auth. Looking at the steaming chunks, it looks like a new auth cookie is returned and you are expected to send it back with the next request. So even if F4M could work in MP it would need to handle this auth mechanism.

Anyhow, for the record, below is how I could retrieve the manifest.

<url>?hdcore=true&hdnea=<hdtoken>&hdcore=2.11.0

Where URL is the URL from the JSON data as posted and hdtoken is as from the iView auth response file.
 

Skywizard

MP Donator
  • Premium Supporter
  • June 14, 2015
    113
    25
    Canberra
    Home Country
    Australia Australia
    thanks Dcaps lock. I have tried this plugin for ABC iView (I would like to use it) and see that I can get the manifest (the list of all the programs?). I can see the genre and make a selection. When I go to play the selected title i get "Unable to play video. No URL" this happens not just for ABC iView but also NASA TV so It it looks like it is not just iView...
     

    dcapslock

    Portal Member
    September 1, 2015
    20
    12
    Sydney
    Home Country
    Australia Australia
    Skywizard. There is a general fix in OnlineVideos that needs to be released. offByOneBB needs to get some time to release an updated version.
     

    Users who are viewing this thread

    Top Bottom