Comment 34 for bug 455852

Revision history for this message
Tyson Whitehead (twhitehead) wrote :

Here's a complete example. Say you missed the latest episode of the "The Hour" and wanted to watch it.

1- You go to http://www.cbc.ca/video, view the source to get the feedPID and surf around until you the other relevant information

feedPID=_DyE_l_gC9yXF9BvDQ4XNfcCVLS4PQij
searchterms=the,hour
season=6
episode=79

2- You construct the URL to query cbc.feeds.theplatform.com to return the other URL you need in JSON format

http://cbc.feeds.theplatform.com/ps/JSON/PortalService/2.2/getReleaseList?PID=_DyE_l_gC9yXF9BvDQ4XNfcCVLS4PQij&contentCustomField=show&contentCustomField=seasonNumber&contentCustomField=EpisodeNumber&field=URL&query=KeywordsSearch|the,hour&query=ContentCustomText|seasonNumber|6&query=ContentCustomText|EpisodeNumber|79

As an alternative, you can also query by the ID shown on the video link on CBC site. In this case it is javascript:CBC.APP.UberPlayer.playRelease('1386627743'), so the query URL would be

http://cbc.feeds.theplatform.com/ps/JSON/PortalService/2.2/getReleaseList?PID=_DyE_l_gC9yXF9BvDQ4XNfcCVLS4PQij&contentCustomField=show&contentCustomField=seasonNumber&contentCustomField=EpisodeNumber&field=URL&query=IDs|1386627743

3- Running either of these queries by going to the URL returns you the requested information (show, seasonNumber, EpisodeNumber, and URL) in JSON format. The URL is really the only important part here (I only included the rest to make sure that I was actually getting the show I wanted), and, in this case, it is

http://release.theplatform.com/content.select?pid=jA_D_kIw9UxRQYGjpeyVWwrjrwU4u2F4&UserName=Unknown&Embedded=True&Portal=All%20Content&Tracking=True

4- Going to this URL gets you the XML document containing the information you need for flvstreamer. Specifically

rtmp://cp37429.edgefcs.net/ondemand/?auth=daFata_dhbuazcYa_aRbrbUducsdld5bgbw-bluFLW-T-uko_JrnYzlCoAAy&aifp=v0001&slist=netstorage

and

netstorage/The_Hour-21_27_39-2010-01-14

5- Then quickly (before the link expires) run

flvstreamer -r 'rtmp://cp37429.edgefcs.net/ondemand/?auth=daFata_dhbuazcYa_aRbrbUducsdld5bgbw-bluFLW-T-uko_JrnYzlCoAAy&aifp=v0001&slist=netstorage' -y 'netstorage/The_Hour-21_27_39-2010-01-14' -o temp.flv

(note that the quotes are necessary to stop you shell from acting on the &s)

6- Once it completes, load "The_Hour-2009-12-01.flv" file up in your video player to watch it.