Jordan Posted September 26, 2005 Share Posted September 26, 2005 I am trying to find the streaming media link within this html. I have a program called StreamDown that downloads the source file once you give it the link, but this has me stumped. Any ideas? <HTML><HEAD><TITLE>See it on CT</TITLE><STYLE><!--td {font-size:11px; font-family: Tahoma, Verdana, Arial,Sans-Serif; color:#000000}.PlayerVideoCaptionText {font-size:12px; font-family: Tahoma, Verdana, Arial,Sans-Serif; font-weight:bold; color:#FFFFFF}.PlayerVideoDescText {font-size:11px; font-family: Tahoma, Verdana, Arial,Sans-Serif; color:#FFFFFF}.BodyTextWhite {font-size:11px; font-family: Tahoma, Verdana, Arial,Sans-Serif; color:#FFFFFF}a{text-decoration: none; }a:hover{text-decoration:underline;} --></STYLE><script src="/player/no click.js"></script><script>// Specify the width and height of new popunder window (in pixels).var width = '482'; var height = '388';var VideoViewerURL='http://www.crimsontradition.com/player/player.aspx';var p = 'scrollbars=no,resizable=no,toolbar=no,menubar=no,status=no,location=no,left=85,top=20,height=' + height + ',width=' + width;function load_iwSportspopup(sVideo,lVideoID){if(window.document.location.href==top.document.location.href){ win2=window.open(VideoViewerURL + "?Video=" +sVideo + "&ID=" + lVideoID,"iwSportsViewer",p);} else { top.document.location.href=VideoViewerURL + "?Video=" +sVideo + "&ID=" + lVideoID;}win2.focus()}</script><script>var mbIsWMP7 = false;var mbIsMac = navigator.userAgent.indexOf("Mac") != -1;var msURL="http://www.crimsontradition.com/player/generatePlaylist.aspx?Video=1_S_2005-9-25_19-0-32&Session=084250055D5E497B06135409407D027E5717760C&C=12";var msPlayerControl;var mlCurrentPos;var mbPaused = false;var mLastState;var mbPlayHasBegun=false;var mlNoPlaySeconds=0;// Check for JScript errors.onerror = ShowError;// Display JScript errors.function ShowError (msg,url,linenumber){return true; //ignore the error}function init(){//Discover if WMP7+ is installed//http://www.streamingmedia.com/article.asp?id=8584&page=2&c=4//if player=true or plugin = true then mbIsWMP7var player; var plugin; var hasActiveX=false;// var msPlayerControl=""; try{ if(window.ActiveXObject) { hasActiveX = true; mSupportsScript = false; player = new ActiveXObject("WMPlayer.OCX.7"); mbIsWMP7 = true; } else if (window.GeckoActiveXObject) { hasActiveX = true; player = new GeckoActiveXObject("MediaPlayer.MediaPlayer.1"); mbIsWMP7 = true; } } catch(oError) {} try{ if(navigator.mimeTypes) { plugin = navigator.mimeTypes['application/x-mplayer2'].enabledPlugin; if(!mbIsWMP7){mbIsWMP7 = false;} // mbIsWMP7 = false; } } catch (oError) {}var sParams=" width='320' height='240' "if(mbIsWMP7){// msPlayerControl = "<img src='/images/connecting_Med.gif' " + sParams + " name='imageConnecting' id='imageConnecting' style='Position:absolute; top:121px; left:161px; zOrder:3'>" msPlayerControl = msPlayerControl + '<OBJ' + 'ECT ID="Player" NAME="Player" ' + sParams + ' CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" STANDBY="Please wait while the Media Player is loaded..." TYPE="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954" VIEWASTEXT style="border-style:solid; border-width:1px; border-color:black; width:320px; height:240px; Position:absolute; top:121px; left:161px; zOrder:1">\n'; msPlayerControl = msPlayerControl + '<PARAM NAME="URL" VALUE="' + msURL + '">\n'; msPlayerControl = msPlayerControl + '<PARAM NAME="enableContextMenu" VALUE="True">\n'; msPlayerControl = msPlayerControl + '<PARAM NAME="autoStart" VALUE="True">\n'; msPlayerControl = msPlayerControl + '<PARAM NAME="stretchToFit" VALUE="True">\n'; msPlayerControl = msPlayerControl + '<PARAM NAME="uiMode" VALUE="none">\n'; var sParams= sParams + " SRC='" + msURL + "'" msPlayerControl = msPlayerControl + '<EMBED type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/WindowsMedia/" name="Player" AutoStart=true ShowControls=0 ShowDisplay=0 ShowStatusBar=0 ' + sParams + '></EMBED>\n'; msPlayerControl = msPlayerControl + '</OBJ' + 'ECT>\n';} else {// msPlayerControl = "<img src='/images/connecting_Med.gif' " + sParams + " name='imageConnecting' id='imageConnecting' style='Position:absolute; top:121px; left:161px;'>" msPlayerControl = msPlayerControl + '<OBJ' + 'ECT ID="Player" name="Player" ' + sParams + ' CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" STANDBY="Please wait while the Media Player is loaded..." TYPE="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" VIEWASTEXT style="border-style:solid; border-width:1px; border-color:black; width:320px; height:240px; Position:absolute; top:121px; left:161px;">\n'; msPlayerControl = msPlayerControl + '<PARAM NAME="FileName" VALUE="' + msURL + '">\n'; msPlayerControl = msPlayerControl + '<PARAM NAME="ShowStatusBar" VALUE="1">\n'; msPlayerControl = msPlayerControl + '<PARAM NAME="AutoStart" VALUE="1">\n'; msPlayerControl = msPlayerControl + '<PARAM NAME="ShowControls" VALUE="1">\n'; msPlayerControl = msPlayerControl + '<PARAM NAME="ShowTracker" VALUE="1">\n'; msPlayerControl = msPlayerControl + '<PARAM NAME="EnableTracker" VALUE="1">\n'; msPlayerControl = msPlayerControl + '<PARAM NAME="ShowPositionControls" VALUE="1">\n'; msPlayerControl = msPlayerControl + '<PARAM NAME="EnablePositionControls" VALUE="1">\n'; var sParams= sParams + " SRC='" + msURL + "'" msPlayerControl = msPlayerControl + '<EMBED type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/WindowsMedia/" name="Player" AutoStart=true ShowControls=1 ShowDisplay=0 ShowStatusBar=1 ' + sParams + '></EMBED>\n'; msPlayerControl = msPlayerControl + '</OBJ' + 'ECT>\n';}}// Play the Player.function PlayMedia(){ document.getElementById("Player").controls.play(); mbPaused = false}// Pause the Player.function PauseMedia(){ if( mbPaused == true ) { document.getElementById("Player").controls.play(); mbPaused = false } else { document.getElementById("Player").controls.pause(); mbPaused = true; }}// Stop the Player.function StopMedia(){ document.getElementById("Player").controls.stop();}// FF the Player.function FFMedia(){ document.getElementById("Player").controls.fastForward();}// Rev the Player.function RevMedia(){ document.getElementById("Player").controls.fastReverse();}function MakeError(){ document.getElementById("Player").URL="BadURL" showConnecting()}function getCurrentPos(){if ( document.getElementById("Player").playState == 3 || document.getElementById("Player").playState == 2) { return document.getElementById("Player").currentPosition} else { return 0;}}function resizeViewer(iSize){mlCurrentPos=getCurrentPos() if(iSize==1){ document.getElementById("cellNav").style.visibility="visible" document.getElementById("cellHeader").style.visibility="visible"// document.getElementById("imageConnecting").style.left=161// document.getElementById("imageConnecting").style.top=121// document.getElementById("imageConnecting").style.height=240// document.getElementById("imageConnecting").style.width=320 document.getElementById("Player").style.left=161 document.getElementById("Player").style.top=121 document.getElementById("Player").style.height=240 document.getElementById("Player").style.width=320 if (document.getElementById("Player").playState == 3 || document.getElementById("Player").playState == 2) { document.getElementById("Player").currentPosition=mlCurrentPos; } } if(iSize==2){ document.getElementById("cellNav").style.visibility="hidden" document.getElementById("cellHeader").style.visibility="hidden"// document.getElementById("imageConnecting").style.left=0// document.getElementById("imageConnecting").style.top=0// document.getElementById("imageConnecting").style.height=360// document.getElementById("imageConnecting").style.width=480 document.getElementById("Player").style.left=0 document.getElementById("Player").style.top=0 document.getElementById("Player").style.height=360 document.getElementById("Player").style.width=480 if (document.getElementById("Player").playState == 3 || document.getElementById("Player").playState == 2) { document.getElementById("Player").currentPosition=mlCurrentPos; } } if(iSize==3){ document.getElementById("Player").fullScreen="true" if (document.getElementById("Player").playState == 3 || document.getElementById("Player").playState == 2) { document.getElementById("Player").currentPosition=mlCurrentPos; } }}function AddDownloadLink(){ //Leave those poor Mac guys alone - they have been through enough already if (!mbIsWMP7 && !mbIsMac) { document.write('<CENTER><P style="background-color:white; border:1px line black;"><Strong><A HREF="http://windowsmedia.com/download">You need to install the latest version of Windows Media Player.<BR><IMG SRC="/images/button_microsoft_download.gif" border=0 vspace=7></A></Strong></P></CENTER>'); } }function AddWMP7Controls(){ if(mbIsWMP7) { var sControls='<td><img id="btnResize100" name="btnResize100" src="/images/button_resize_100_crimson.gif" onmouseover="javascript:btnResize100.src=\'/images/button_resize_100_white.gif\'" onmouseout="javascript:btnResize100.src=\'/images/button_resize_100_crimson.gif\'" onclick="javascript:resizeViewer(1);return false;"><img id="btnResize150" name="btnResize150" src="/images/button_resize_150_crimson.gif" onmouseover="javascript:btnResize150.src=\'/images/button_resize_150_white.gif\'" onmouseout="javascript:btnResize150.src=\'/images/button_resize_150_crimson.gif\'" onclick="javascript:resizeViewer(2);return false;"><img id="btnResizeFull" name="btnResizeFull" src="/images/button_resize_Full_crimson.gif" onmouseover="javascript:btnResizeFull.src=\'/images/button_resize_Full_white.gif\'" onmouseout="javascript:btnResizeFull.src=\'/images/button_resize_Full_crimson.gif\'" onclick="javascript:resizeViewer(3);return false;">'sControls = sControls + '<img id="btnPlay" name="btnPlay" src="/images/button_Play_crimson.gif" onmouseover="javascript:btnPlay.src=\'/images/button_Play_white.gif\'" onmouseout="javascript:btnPlay.src=\'/images/button_Play_crimson.gif\'" onclick="javascript:PlayMedia();return false;"><img id="btnPause" name="btnPause" src="/images/button_Pause_crimson.gif" onmouseover="javascript:btnPause.src=\'/images/button_Pause_white.gif\'" onmouseout="javascript:btnPause.src=\'/images/button_Pause_crimson.gif\'" onclick="javascript:PauseMedia();return false;"><img id="btnStop" name="btnStop" src="/images/button_Stop_crimson.gif" onmouseover="javascript:btnStop.src=\'/images/button_Stop_white.gif\'" onmouseout="javascript:btnStop.src=\'/images/button_Stop_crimson.gif\'" onclick="javascript:StopMedia();return false;">'sControls = sControls + '<img id="btnRev" name="btnRev" src="/images/button_Rev_crimson.gif" onmouseover="javascript:btnRev.src=\'/images/button_Rev_white.gif\'" onmouseout="javascript:btnRev.src=\'/images/button_Rev_crimson.gif\'" onclick="javascript:RevMedia();return false;">'sControls = sControls + '<img id="btnFF" name="btnFF" src="/images/button_FF_crimson.gif" onmouseover="javascript:btnFF.src=\'/images/button_FF_white.gif\'" onmouseout="javascript:btnFF.src=\'/images/button_FF_crimson.gif\'" onclick="javascript:FFMedia();return false;"></td>'document.write(sControls); }}function onWMP7LoadDone(){document.getElementById("Player").settings.volume = 100;}function onPreWMP7LoadDone(){}function HHhMMmSSs(X) { var S S = new Date(X*36e5).toString(). replace(/(.*)(\d\d)\d\d)\d\d)(.*)/, "$2:$3:$4") return S;}function onPlayerLoadDone(){if(mbIsWMP7){ onWMP7LoadDone()} else { onPreWMP7LoadDone()}pollLoop();}function showConnecting(){// document.getElementById("imageConnecting").style.visibility="visible";// document.getElementById("Player").style.visibility="hidden";}function showPlaying(){// document.getElementById("imageConnecting").style.visibility="hidden";document.getElementById("Player").style.visibility="visible";}function showBlank(){// document.getElementById("imageConnecting").style.visibility="hidden";// document.getElementById("Player").style.visibility="hidden";}function pollLoop() {// if(document.getElementById("imageConnecting").style.visibility=="visible"){ mlNoPlaySeconds=mlNoPlaySeconds + 1;// } else {// mlNoPlaySeconds=0;// }if (mbIsWMP7) { window.status = "Status: " + document.getElementById("Player").status; var currentstate = document.getElementById("Player").playState; if (currentstate==9) { /////MediaPlayer is transitioning/// showConnecting(); mLaststate=9; } else if (currentstate==6 && !mbPlayHasBegun) { /////Mediaplayer is buffering/////// if(document.getElementById("Player").network.bufferingProgress< 50) { showConnecting(); } else { showPlaying(); } mLaststate=6; } else if (currentstate==7) { /////Waiting ///// showConnecting(); mLaststate = 7; } else if (currentstate==8) { /////MediaPlayer clip has ended///// mLaststate = 8; } else if (currentstate==3) { /////MediaPlayer clip has started///// window.status = "Status: Playing " + HHhMMmSSs(Math.floor(document.getElementById("Player").controls.currentPosition)) + " secs. of " + document.getElementById("Player").currentMedia.durationString + "."; window.status = "Status: Playing " + document.getElementById("Player").currentMedia.durationString + "."; showPlaying(); mLaststate = 3; mbPlayHasBegun=true; } else if (currentstate==10) { /////MediaPlayer is ready//// if(!mbPlayHasBegun){ showConnecting(); mLaststate=10; } } else if (currentstate==11) { /////MediaPlayer is reconnecting//// showConnecting(); mLaststate=11; } else if (currentstate==0) { showConnecting(); mLaststate=0; } else if (currentstate==2) { /////MediaPlayer clip is paused/// }}////this will loop every 1 seconds/////if(mlNoPlaySeconds<45){ setTimeout("pollLoop()",1000);} else {// showBlank()// alert("There was a problem connecting to the network. Please close the player and try again.\n\nIf you continue to receive this error, please use the 'Need Help?' link located in the player window.\n\n")}}init()</script></HEAD><BODY leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 onload="javascript:onPlayerLoadDone()" STYLE="background-image: url('/images/grid_crimson.gif');"><table width="100%" height="100%" cellpadding=0 cellspacing=0 ><tr valign=top><td align=left><table name="tableViewer" id="tableViewer" width="482" height="368" cellpadding=0 cellspacing=0 border=0 > <tr valign=top name="cellHeader" id="cellHeader"><td width="482" height="120" colspan=2><img src=/images/viewer_header.gif width=482 height=120></td></tr> <tr valign=top> <td name="cellNav" id="cellNav" width="160" height="240" > <img src=/images/Viewer_Nav_Header.gif width=160 height=37><br> <table width=160 cellpadding=0 cellspacing=0 border=0> <tr valign=top height=203> <td width=7><img src="/images/spacer.gif" width=7></td> <td width="153" height=203><DIV style="height:20px;width:153px" class="BodyTextWhite"><a class="BodyTextWhite" href="javascript:void(0)" onclick="javascript:window.opener.top.document.location.href='/info/needhelp.asp';return false;">Need Help?</a>| <a class="BodyTextWhite" href="javascript:void(0)" onclick="javascript:window.opener.top.document.location.href='/info/contactus.asp';return false;">Contact Us</a></DIV><div style="height: 183px; overflow: auto; scrollbar-base-color:#9A0002"><script>AddDownloadLink()</SCRIPT><script src=/services/getvideolistAsJS.aspx?M=4&T=3></script><table width="100%" cellpadding=0 cellspacing=0 border=0><tr valign=bottom><td align=right><a href="javascript:void(0)" onclick="javascript:window.opener.top.document.location.href='/home/search.asp?Recent=True';return false;"><Font color="White">more videos...</font></a></td></tr></table><!-- <BR><a href="javascript:void(0)" onclick="MakeError()">.</a> --></Div></td></tr></table></td><td width=322 height=242 name="cellViewer" id="cellViewer"><script>document.write(msPlayerControl)</script></td></tr><tr valign=top><td width="482" height="20" colspan=2 name="cellControls" id="cellControls" ><table width=482 cellpadding=0 cellspacing=0 border=0 ><tr valign=middle><script>AddWMP7Controls()</Script><td valign=middle align=center width=180 nowrap><script>// AddMediaDescription: if(mbIsWMP7){document.write('<marquee height="20" behavior="slide" loop="1" vspace=0 scrollamount=4 width=180>') }</script><script src="/services/getvideolistAsJS.aspx?M=5&T=1&I=2088"></script><script>// /AddMediaDescription: if(mbIsWMP7){document.write('</marquee>') }</script></td></tr></table></td></tr></table></td></tr></table><script LANGUAGE = "JavaScript" FOR = Player EVENT = Error()> var strError = ""; // Store the number of errors in the queue. var max = document.getElementById("Player").error.errorCount // Loop through the list of errors. for (var i = 0; i < max; i++) { // Display the error description for each item. strError += document.getElementById("Player").error.item(i).errorDescription + "\n"; } // Clear the error queue to prepare for the next group of errors. document.getElementById("Player").error.clearErrorQueue();</SCRIPT></BODY></HTML> Link to comment Share on other sites More sharing options...
BenMillard Posted September 26, 2005 Share Posted September 26, 2005 That's some unbelievably crappy code. No wonder you're having problems with it. Some of it is set up from external Javascript files, some is from external ASPX files, some is from internal JScript, plus there's the HTML elements which set up parts of the player control. It's a f*cking mess. Also, a lot of the URLs use relative addressing so it'll only work when the file is in the correct folder of the correct server, or when the URL is made into an absolute one with the domain and folder included in it. Why are you having to use such rubbish code? Link to comment Share on other sites More sharing options...
andibomb Posted September 26, 2005 Share Posted September 26, 2005 (edited) Why are you having to use such rubbish code? I don't think he has any control over how this site has been coded. If I understand, he is just trying to download a file that is being streamed into that page. A link to the page could be helpful, the filename may appear in the address. Alternatively, if the player is embedded in the page, you can right click the player and select properties to get the file name that is being streamed. Edited September 26, 2005 by andibomb Link to comment Share on other sites More sharing options...
BenMillard Posted September 26, 2005 Share Posted September 26, 2005 Oh, I thought it was something he was trying to copy to use on PlanetGTA. Link to comment Share on other sites More sharing options...
TheRoper Posted October 3, 2005 Share Posted October 3, 2005 (edited) //Leave those poor Mac guys alone - they have been through enough already but, yeah, i agree with andibomb... just bust the "right-click -> properties" method... if that don't work, linky? edit: well yeah, the site is http://www.crimsontradition.com, and you can just right click them. though, they're playlists or something, so i couldn't save once i got it playing in windows media player... but i'm sure that you'll figure it out. Edited October 3, 2005 by TheRoper $$$ MAKE MONEY WITH NEOBUX $$H Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now