Live video stream code not working in my web pages
-
Hi there I have 4 new webcams I use to give my kennel clients 24 hour access to see their dogs while they are on holiday. The camera company have given me code to embed into my web pages on WordPress yet they only provide a static picture rather than a moving one. They tried the code on a new page on their own site and the image updates every second and looks great. However when the same code is embeded into my wordpress pages it goes back to a static picture. Can any one help with this. If so heres the code below that they are using (layout may be different as I copied ans pasted it).
Regards
Jim
function reload() { setTimeout(‘reloadImg(“refresh”)’,250) }; function reloadImg(id) { var obj = document.getElementById(id); var date = new Date(); obj.src = “http://io3753.myfoscam.org:2222/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=guestsuite2&pwd=mitzymoo333&t=” + Math.floor(date.getTime()/250); } <img src=”http://io3753.myfoscam.org:2222/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=guestsuite2&pwd=mitzymoo333&t=” name=”refresh” id=”refresh” onload=’reload(this)’ onerror=’reload(this)’>
-
-
Thanks for your prompt reply. I have no experiene in coding etc but I have 4 other cameras with code embedded on my wordpress site and they all stream live and from what I can see they use Javascript. See below the code which works and gives live stream. Any further clarification would be appreciated.
CheersJim
<script language=”Javascript”>// <![CDATA[
var img_init = ‘http://clydevalleypetretreat.dyndns.tv:8886/snapshot.cgi?user=guest&pwd=guest’;
var ref_init = 10;
var ref_width = 320;
var ref_height = 240;
createImage(img_init, ref_init, ref_width, ref_height);
// ]]></script>
- The topic ‘Live video stream code not working in my web pages’ is closed to new replies.