我正在尝试在Internet Explorer中执行rtsp流媒体,但我的代码在localhost上运行但在boa服务器上运行。
以下是我的代码:
<script type="text/javascript">
function play()
{
alert("Entered function");
vlc = document.getElementById("vlc");
var options = new Array(":aspect-ratio=16:10","--rtsp-tcp");
var urlVideofile = "rtsp://192.168.1.224:8556/PSIA/Streaming/channels/2?videoCodecType=H.264";
var targetURL="rtsp://192.168.1.224:8556/PSIA/Streaming/channels/2?videoCodecType=H.264";
var itemId=vlc.playlist.add(targetURL,"",options);
var id = vlc.playlist.add(urlVideofile, null, options);
vlc.playlist.playItem(id);
}
</script>
<body>
<object type="application/x-vlc-plugin" id="vlc" width="517" height="388" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921">
<param name="MRL" id="mrlVideo" value="" />
<param name="volume" value="50" />
<param name="autoplay" value="True" />
<param name="loop" value="false" />
<param name="fullscreen" value="false" />
<param name="wmode" value="transparent" />
<param name="toolbar" value="false" />
<param name="windowless" value="true" />
</object>
<a href="#" onClick="play()" >Start</a>
</body>
我面临的问题是没有错误仍然无法传输,所以任何人都可以帮助我解决问题所在吗?