Vlc支持IE 360 低版本的Google浏览器

VLC 插件代码:

 <object type='application/x-vlc-plugin' pluginspage="http://www.videolan.org/" id='vlc' events='false' width="720" height="410">
            <param name='mrl' value='rtsp://admin:123456@******:554/h264/ch1/main/av_stream' />
            <param name='volume' value='50' />
            <param name='autoplay' value='true' />
            <param name='loop' value='false' />
            <param name='fullscreen' value='false' />
            <param name='controls' value='false' />
            <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
                   width="640"
                   height="480"
                   id="vlc" />
        </object>

js 播放

function PlayVlc() {
            var vlc = document.getElementById("vlc");  
            var options = new Array(":aspect-ratio=4:3", "--rtsp-tcp");
            var id = vlc.playlist.add("rtsp://admin:Tr123456@192.168.10.158:554/h264/ch1/main/av_stream", "fancy name", options);
            vlc.playlist.playItem(id);
        }

 

posted @ 2017-09-30 11:40  _York  阅读(1843)  评论(0编辑  收藏  举报