I could not sniff url from this site
http://my.trueworld....ewer.jsp?channelAt=6It contain java and I found this file "js_wmview3.js" that contain ....
var content_id;
var wmbitrate;
function playVDO(contentID)
{
content_id=contentID;
showPlayer(480, 425, contentID);
}
function showPlayer(w, h, contentID, rate)
{
var player="";
var app3=window.navigator.appName;
var playerBlock = document.getElementById("playerBlock");
var url = "";
if(rate==null||rate=="")
{
wmbitrate=256000;
}
else
{
wmbitrate=rate;
}
var token = token_getToken();
var centid = token_getCentralID();
//if (contentID)
{
//url=contentID+"?centralid="+centid+"&wmcontentbitrate=" + wmbitrate;
url=contentID+"&wmcontentbitrate=" + wmbitrate;
//url = "mms://streaming.trueworld.net/ondemand/od.wsx?guid=" + contentID + "&wmcontentbitrate=" + wmbitrate;
}
// url += "&token=" + token ;
player=player+"<object ID=\"vdoclip\" classid=\"CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6\" "; // type=\"video/x-ms-wmv\" \n";
player=player+" width=\""+w+"\" height=\""+h+"\">\n";
player=player+" <param name=\"URL\" value=\"" + url + "\">\n";
player=player+" <param name=\"src\" value=\"" + url + "\">\n";
player=player+" <PARAM NAME=\"ShowControls\" VALUE=\"1\">\n";
player=player+" <PARAM NAME=\"ShowDisplay\" VALUE=\"0\">\n";
player=player+" <PARAM NAME=\"ShowStatusBar\" VALUE=\"1\">\n";
player=player+" <PARAM NAME=\"AutoSize\" VALUE=\"1\">\n";
player=player+" <param name=\"stretchToFit\" value=\"1\">\n";
player=player+" <param name=\"uiMode\" value=\"full\">\n";
player=player+" <param name=\"enableContextMenu\" value=\"0\">\n";
player=player+"</object>\n";
playerBlock.innerHTML=player;
}
function setVdoSize(t)
{
switch(t)
{
case "56" : //vdoclip.width=160; vdoclip.height=185;
wmbitrate = "56000";
showPlayer(160,185, content_id);
break;
case "256" : //vdoclip.width=320; vdoclip.height=305;
wmbitrate = "256000";
showPlayer(480,425, content_id);
break;
case "512" : //vdoclip.width=640; vdoclip.height=546;
wmbitrate = "512000";
showPlayer(480,425, content_id);
//showPlayer(640,546, content_id);
break;
case "1024" : //vdoclip.width=640; vdoclip.height=546;
wmbitrate = "1024000";
showPlayer(480,425, content_id);
//showPlayer(640,546, content_id);
break;
}
}
function doCheckBrowser()
{
var app3=window.navigator.appName;
//alert(app3);
}
function token_getCentralID()
{
return token_getCookie("CentralID");
}
function token_getToken()
{
return token_getCookie("token");
}
function token_getCookieVal(offset)
{
var endstr = document.cookie.indexOf (";", offset);
if ( endstr == -1 ) endstr = document.cookie.length;
return(unescape(document.cookie.substring(offset, endstr)));
}
function token_getCookie(name)
{
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while ( i < clen ) {
var j = i + alen;
if ( document.cookie.substring(i, j) == arg ) return(token_getCookieVal(j));
i = document.cookie.indexOf(" ", i) + 1;
if ( i == 0 ) break;
}
return(null);
}
and I couldn't ger the real url from the site ...I'm dull in Java
Help me please....