title: Smart Tv app (css and Javascript) - How to cyclically display a video stream and cyclicaly login
body: <p>I'm currently making a CCTV app wich uses a given link of the cameras stream and displays it.</p>
  
  <p>the <strong>CSS</strong> code i'm using to display is:</p>
  
  <pre><code>#cam_int_1
  {
      position: absolute;
      top : 169px;
      left : 721px;
      background: url('http://admin:4321@10.0.0.62/cgi-bin/video.cgi?msubmenu=mjpg');
      background-size: 100% 100%;
      background-repeat: no-repeat;
      z-index: -1;
      height : 169px;
      width : 239px;   
  } 
  </code></pre>
  
  <p>now, I can get and display the stream!</p>
  
  <p>The problem is that the cctv camera logs out and I lose the stream.</p>
  
  <p>In the URL I give:</p>
  
  <p>background: url('http:/<strong>/admin:4321@10.0.0.62</strong>/cgi-bin/video.cgi?msubmenu=mjpg');</p>
  
  <p>The bold part Is where I make the login the first time..</p>
  
  <p>Is there a way to cyclically update this URL with the same exact link so I can never loose the login connection to the cctv cam? </p>
  
  <p>Thanks!</p>