Can someone help me a little further with this? I have made the necessary alteration but the jpg video is not appearing. I get a broken link icon. Here is a copy of my code. Thank you.
<script language="javascript" src="ajax.js"></script>
<script type="text/javascript">function doTimer() { loadhtml("viewerpoll.html?speed=1&title=BroadCam%20Video%20Streaming%20Server%20Live%201&type=2"); }
setInterval("doTimer()", 2000);
</script><script type="text/javascript">
var c = 86063562;
var pl = new Image();
var browser=navigator.appName;function updatelink()
{
if (browser != "Microsoft Internet Explorer") {
document.img.src = "broadcam.jpg?src=1&speed=1";
return;
}
pl.onload=display;
pl.src = "http://www.myip.com:8070/broadcamframe.jpg?src=1&speed=1&id=" + c;
c++;
}
function display() {
document.img.src = pl.src;
setTimeout('updatelink()', 50);
}
function StartScreen()
{
setTimeout('updatelink()', 0);
}
onLoad=StartScreen();
</script>
stuesr wrote:
jpg view
View the sauce code of the Broadcam generated page playing the vid and copy the javascript in the head tag and put that in your new webpage (don't forget to add the full URL to the line)
return;}pl.onload=display;pl.src = "broadcamframe.jpg?src=1&speed=1&id=" + c;
becomes, for example...
return;}pl.onload=display;pl.src = "http://someIP.com:86/broadcamframe.jpg?src=1&speed=1&id=" + c;
Then add the onload to the body tag...
<body
.
Add the img src to the page where you want the vid to be displayed. again, don't forget to add the full URL to the broadcam sauce file.
<img width=650 name="img" src="http://someIP.com:86/broadcamframe.jpg?src=1&speed=1">
Don't forget to add the audio applet if you want sound...
Embedded media view
Same deal with embedding the actual media file in the page...just replace the Filename and src with the URL to the Broadcamauto.html page...
<OBJECT ID="MediaPlayer" WIDTH="600" HEIGHT="400" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="http://SomeIP.com:86/broadcamauto.html?src=1&speed=1">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="http://SomeIP.com:86/broadcamauto.html?src=1&speed=1" NAME="MediaPlayer"
WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>
Hope this helps