#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2014
    Posts
    3
    Rep Power
    0

    Live streaming from IP camera


    Hello,

    I working on a website that will show live stream from an IP camera.
    The web will serve end users in Africa, so the physical server must be in Africa. Meaning no cloud solutions can be implemented.

    I think that actual video stream will not work well due to the slow internet bandwidth there.
    If someone thinks otherwise, I will be glad to hear his advice.

    So I plan to implement it with something like a GIF animation.
    I not a beginner to web development, but still not the sharpest one yet…

    Will be very appreciate on an advice on how to approach this issue.

    Yoni.
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2009
    Location
    Jakarta, Indonesia.
    Posts
    218
    Rep Power
    32
    Hi Yoni.

    I don't know about server-side implementation of this IP camera.
    But on the client-side, one way to have it is with the help of javascript:
    PHP Code:
    <img id="my_cam" src="blank.jpg" alt="my camera">
    <
    script>
      
    setInterval(function(){
        
    document.getElementById('my_cam').src 'http://my_cam_server.com/?time=' + new Date().time();
      }, 
    5000); //5 seconds delay between frames
    </script> 
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2014
    Posts
    3
    Rep Power
    0
    thanks.
    but in this case imp not mistaking, the end user open a request directly to the camera.
    and we can have the camera work on too many sessions...it will collapse

IMN logo majestic logo threadwatch logo seochat tools logo