Advertisment:

Author Topic: Acti d32 website embed options  (Read 1467 times)

Offline Co75

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • volgdemees.nl
Acti d32 website embed options
« on: May 31, 2014, 01:02:58 pm »
Hi,

After some time being bussy to get the stream embed on my website I have the following options.

1. A jpg refresh version,
( IE, Chrome & Firefox tested )
embed the following code to your website and enter your own ip,portnumber,username & password.


Code: [Select]
<script language="JavaScript" type="text/javascript">
   function reload() {setTimeout('reloadImg("refresh")',350)};    // 1000 = 1 second. I'd suggest a reasonable minumum of 350
   function reloadImg(id)
   {
    var obj = document.getElementById(id);
    var rand = Math.random();
    obj.src = "your-ip:port/cgi-bin/encoder?USER=yourusername&PWD=yourpassword&SNAPSHOT&t=" rand;
   }
 </script>
 <img src="http://your-ip:port/cgi-bin/encoder?USER=yourusername&PWD=yourpassword&SNAPSHOT&t=" name="refresh" id="refresh" onload='reload()'>

2. Quicktime plugin
edit your ip,port,width,height if necessary.

Code: [Select]
<object
    classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
    codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="1250" height="680" align="middle">
  <param value="logo.jpg" name="src" />
  <param value="rtsp://your-ip:7070/multicast/track2" name="qtsrc"/>
  <param value="true" name="controller" />
  <param value="true" name="autostart" />
  <embed
        src="logo.jpg"
        width="1080"
        type="video/quicktime"
        height="800"
        qtsrc="rtsp://your-ip:7070/multicast/track2"
        controller="true"
        autostart="true"
        plugin="quicktimeplugin"
        pluginspage="http://www.apple.com/quicktime/download/" align="middle"
    ></embed>
</object>




Cheers,
Co
« Last Edit: March 21, 2015, 03:19:57 pm by Co75 »
ACti D31 - Wanscam H21 - Hikvision 2032 - Foscam

 

    Advertisment:

Mobile Theme