0

我创建了这个网页:

<html>
<title>WebCam stream</title>
<body>
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"
width="640"
height="480"
id="vlc">
</embed>
<script language="Javascript">
var vlc = document.getElementById("vlc");
vlc.playlist.add("http://myIpAddress:11345");
vlc.playlist.play();
vlc.audio.toggleMute();
</script>
</body>
</html>

这在 Chrome 或 Mozilla 中运行良好,但我需要使用 Internet Explorer,因此我的页面无法正常工作。

我还尝试以这种方式使用 HTML 5 视频支持:

<!DOCTYPE html> 
<html>

<head><title>webCamStream</title></head>

<body>
<video controls preload autoplay>  
    <source src="http://95.225.xx.yy:11345" type="video/mp4; 'codecs='avc1.42E01E, mp4a.40.2'" />  
</video>
</body>
</html>

但资源管理器不起作用。

我可以修改

type="video/mp4; '编解码器='avc1.42E01E

为了管理 ASF 视频格式?我必须使用什么编解码器?

4

1 回答 1

0

你在哪个版本的 Internet Explorer 上尝试这个,你没有说。我假设它是 9 或 10,因为任何小于它的东西都不支持 HTML5 视频。

尝试从type属性中删除编解码器,只需将其设置为"video/mp4".

于 2013-01-15T12:35:45.593 回答