• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Refresh webcam every 3 minutes

New Here ,
Mar 15, 2019 Mar 15, 2019

Copy link to clipboard

Copied

Hi.

Sorry for my terrible English.

I need to refresh this video every 3 minute, but cant find this in Dreamweaver.
I can refresh the whole page, but I don't want this.

The webcam is streaming 3 minutes and the stop, I have to refresh the page to get it going again.

This is the code for the wemcam:

   <table width="98%" border="0">

      <tr>

        <td align="center">My bird nest webcam     </td>

        <td> </td>

      <td align="center"><p>   Live webcam from my aquarium</p></tr>

      <tr>

        <td width="512" height="277"><table width="362" height="274" border="5" align="center">

            <tr align="left">

            <td width="344" height="260"><img src="http://192.168.10.10:8080/cam_1.cgi" alt="Bird Cam" name="BirdCam" width="362" height="256" class="webcam" id="BirdCam" onmousedown="PTZMouseDown1(event)" /></td>

          </tr>

Tanks for any tips

Ivan VÃ¥genes

Norway

Views

351

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 16, 2019 Mar 16, 2019

Try something like this in the head of your document:

<script>

function RefreshCam(){

    var d = new Date();

    var t = d.getTime();

    document.getElementById('BirdCam').src = "http://192.168.10.10:8080/cam_1.cgi?"+t;

}

var reloadcam = setInterval("RefreshCam()",180000);

</script>

Votes

Translate

Translate
Community Expert ,
Mar 16, 2019 Mar 16, 2019

Copy link to clipboard

Copied

Try something like this in the head of your document:

<script>

function RefreshCam(){

    var d = new Date();

    var t = d.getTime();

    document.getElementById('BirdCam').src = "http://192.168.10.10:8080/cam_1.cgi?"+t;

}

var reloadcam = setInterval("RefreshCam()",180000);

</script>

Paul-M - Community Expert

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 17, 2019 Mar 17, 2019

Copy link to clipboard

Copied

Hi.

Tanks for the code.

It worked perfect.

Ivan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 17, 2019 Mar 17, 2019

Copy link to clipboard

Copied

LATEST

You are welcome

Paul-M - Community Expert

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines