How to get a stream from the camera to a web page?

I started developing a module that shows the stream of real-time video from a camera on a web page.

But I do not know how to show the live video stream on a web page.

Is there any JavaScript function that allows me to display a live image? Is an object tag in HTML allowing you to embed real-time video?

Can someone guide me on how I can do this?

+8
javascript html video-streaming
source share
2 answers

If you mention the Live Stream. To do this, you need a streaming video server or streaming HTTP.

  • streaming video server

    IT is the server from which you will transfer your video. They must be extremely fast, able to handle many connections simultaneously, depending on the user's connection speed, etc. To do this, you can

    • Buy your own or
    • Register to host a streaming plan with an internet service provider.
  • Or do you need streaming HTTP

    To make it as simple as possible

    • Create a video file in a common streaming format.
    • Upload the file to your web server
    • Make a simple hyperlink to the video file or use special HTML tags to embed the video on the web page.

Some useful posts and plugins

+6
source share
 <OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width="640" height="441" id="vlc" events="True"> <param name="Src" value="rtsp://your camera ip address" /> <param name="ShowDisplay" value="True" /> <param name="AutoLoop" value="False" /> <param name="AutoPlay" value="True" /> <embed id="vlcEmb" type="application/x-google-vlc-plugin" quality="high" version="VideoLAN.VLCPlugin.2" autoplay="yes" loop="no" width="640" height="441" target="rtsp://your camera ip address" > </embed> 
0
source share

All Articles