2 flynigege flynigege 于 2014.07.01 14:49 提问

vlc media player 怎么集成到HTML页面,然后正常播放rtsp格式的多媒体流?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">




<!--[if IE]>
classid='clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921' width="720" height="540">






<![endif]-->
<object type='application/x-vlc-plugin' id='vlc' events='True' width="720" height="540">
    <param name='mrl' value='' />
    <param name='volume' value='50' />
    <param name='autoplay' value='true' />
    <param name='loop' value='false' />
    <param name='fullscreen' value='false' />
</object>

<!--<![endif]-->

var vlc; function initPlayUrl(){ vlc=document.getElementById("vlc"); var vedio_url='这里是RMSP流地址'; itemId= vlc.playlist.add(vedio_url); vlc.playlist.playItem(itemId); } initPlayUrl();


Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!