So I'm still stuck trying to figure this out...still wondering if one of you pros out there knows how to do this.
Different file but same problem.
So far I know it's an encrypted video path, and the formula, I guess, of how how to put the path together, but I'm missing some
key pieces of information. I looked through wireshark for certain urls but still nothing worked.
This is how you have to piece it together to get the path:
So this is the publish point data
Code:
VideoCenter.getPrograms([{
"id":"829219",
"name":"Connor at Play: Episode 4",
"trackName":"Connor at Play: Episode 4",
"description":"Episode Four of the Connor at Play series presented by Canadian Tire features Connor McDavid\'s visit to the Stanley Cup Final in Chicago.",
"image":"www/thumbs/2015/06/12/829219_es.jpg",
"bigImage":"www/thumbs/2015/06/12/829219_eb.jpg",
"publishPoint":"http://nhl.cdnllnwnl.neulion.net/s/nhl/vod/flv/2015/06/12/829219_mcdavid_finals_visit_final.mp4?eid=828610&pid=829219&gid=3000&pt=1?eid=828610&pid=829219&gid=3000&pt=1",
"formats":"1",
"shareable":true,
"releaseDate":"2015-06-12T00:00:00.000",
"runtime":"3:47","duration":"227"
}])
What I want to get is the master file.
Anyway I get to here and there's some Java code which I don't know. All those substrings are needed to put the path together which I highlighted in red. Thanks again to anyone who reads this.
Code:
//VideoCenter.nlLoadScript(NL_LOC_SERVER+"servlets/encryptvideopath?"+data.join("&"));
if(video.publishPoint.indexOf("adaptive://")==0)
{
var pp = video.publishPoint;
pp = pp.substring(pp.indexOf("://")+3);
var p1 = pp.substring(0, pp.indexOf("."));
var p2 = pp.substring(pp.indexOf(".")).replace(":443","");
var p3 = "";
if(p2.indexOf("?")!=-1)
{
p3 = p2.substring(p2.indexOf("?"));
p2 = p2.substring(0, p2.indexOf("?"));
}
var dt = "_iphone";
var ua = navigator.userAgent.toLowerCase();
if(ua.indexOf("ipad")!=-1)
dt = "_ipad";
else if(ua.indexOf("android")!=-1)
{
if(ua.indexOf("mobile")!=-1)
dt = "_android";
else
dt = "_androidtab";
}
p2 = p2.replace("_pc",dt);
pp = "http://" + p1 + NL_HTML5_PREFIX + p2 + ".m3u8" + p3;
getHTML5PublishPointCallback({path:pp});
}
else
getHTML5PublishPointCallback({path:video.publishPoint.replace("/s/", "/u/")});
}
function getHTML5PublishPointCallback(obj)
{
var path = obj.path;
var obj = VideoCenter.nhl_playerMap[lastInstance];