First download the installation of VLC plug-in, and then write a page, the page, specify the corresponding RTSP video address to be good.
- To VLC's official website to download the corresponding plug-in, the current plug-in version is 2.2.4.
- When the download is complete, install to the disk at the specified location, for example: D:\VLC
- Register VLC Plugin (otherwise the video will not display properly): Use CMD to run: regsvr32 D:\VLC\axvlc.dll.
- Create a new HTML page with the following code to test.
<!DOCTYPE HTML><HTML><Head><MetaCharSet= "UTF-8"><title>Insert Title here</title></Head><Body><!--[If ie]> <object type= ' application/x-vlc-plugin ' id= ' VLC ' events= ' True ' classid= ' clsid:9be31822-fdad-461 b-ad51-be1d1c159921 ' codebase= "Http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width= "720 "height=" 540 "> <param name= ' MRL ' value= ' rtsp://218.204.223.237:554/live/1/66251fc11353191f/e7ooqwcfbqjoo80 J.SDP '/> <param name= ' volume ' value= ' '/> <param ' name= ' AutoPlay ' value= ' true '/> <param name= ' Loop ' value= ' false '/> <param name= ' fullscreen ' value= ' false '/> </object>& lt;! [EndIf] -<!--[if! ie]><! - <Objecttype= ' Application/x-vlc-plugin 'ID= ' VLC 'Events= ' True 'width= "720"Height= "540"pluginspage= "http://www.videolan.org"codebase= "Http://downloads.videolan.org/pub/videolan/vlc-webplugins/2.0.6/npapi-vlc-2.0.6.tar.xz"> <paramname= ' MRL 'value= ' RTSP://218.204.223.237:554/LIVE/1/66251FC11353191F/E7OOQWCFBQJOO80J.SDP '/> <paramname= ' volume 'value= ' + '/> <paramname= ' AutoPlay 'value= ' true '/> <paramname= ' Loop 'value= ' false '/> <paramname= ' fullscreen 'value= ' false '/> </Object><!--<! [EndIf] -</Body></HTML>
The address of RTSP is the available RTSP test address on the Web.
Put the page under the server, access the page, if normal display, it proves that VLC installation is successful.
If you need to show multiple videos, copy the OBJECT tag several times and change the ID.
Embed VLC player in HTML