Embed VLC player in HTML

Source: Internet
Author: User

First download the installation of VLC plug-in, and then write a page, the page, specify the corresponding RTSP video address to be good.

    1. To VLC's official website to download the corresponding plug-in, the current plug-in version is 2.2.4.
    2. When the download is complete, install to the disk at the specified location, for example: D:\VLC
    3. Register VLC Plugin (otherwise the video will not display properly): Use CMD to run: regsvr32 D:\VLC\axvlc.dll.
    4. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.