Jump to content

Embed Problem


Recommended Posts

I need some further help with embedding streaming video from Broadcam.

 

I am able to get the image from the streaming jpg but it is not actually streaming. It is a still image. In order to get a new image I must refresh the page. How can I get it so the images are streaming like when i connect to the broadcam server direct?

 

 

Thanks

Link to post
Share on other sites
  • 4 weeks later...

What exactly are you trying to do? If you are wanting to show the streaming image that shows up when you click on the Connect button and select the JPG-image streams (http://127.0.0.1:8086/broadcamjpg.html?src=1&speed=1), then maybe I can help.

 

I have been experimenting with the code and I think I have figured out the minimum code necessary to display the streaming image:

 

<html>
<head>
<title>BroadCam test</title>
</head>
<body>


</noscript>

<script language="javascript" src="ajax.js">
</script>



<script type="text/javascript">
var c = 151039419;
var pl = new Image();
var browser=navigator.appName;function updatelink()
{
if (browser != "Microsoft Internet Explorer") {
document.img.src = "http://123.45.67.89:86/broadcam.jpg?src=1&speed=1";
return;
}
pl.onload=display;
pl.src = "http://123.45.67.89:86/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>

<img width=350 name="img" src="http://123.45.67.89:86/broadcamframe.jpg?src=1&speed=1">

</body>
</html>

 

Any less than that and I get a still image. If I try to add another feed I get two still images. I left out the link back to NCH in this example, so if you're using it for free you'll need to put that link back in.

 

Anyway, since the displayed part of it is the last <img src..>, you can just put that anywhere on your page and it should look fine.

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...