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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...