【问题标题】:Is there any way to display MJPEG video stream in Internet Explorer?有没有办法在 Internet Explorer 中显示 MJPEG 视频流?
【发布时间】:2019-04-22 07:44:07
【问题描述】:

我正在使用 ASP.NET 开发一个 Web 应用程序,用于查看来自 IP 摄像机的实时源,并且摄像机将 MJPEG 视频返回到客户端。此应用程序需要跨浏览器友好,包括 IE。但是IE不支持使用<img>标签播放MJPEG。

我已经尝试使用来自 https://github.com/clipchamp/jquery-clipchamp-mjpeg-player-plugin 的 js 库,但遇到了 CORS 策略问题,我无法控制视频主机的服务器端。

这是在 Chrome 和 Firefox 中运行的代码,但在 IE 中似乎不起作用。

<img src="http://192.168.0.38:8601/Interface/Cameras/GetJPEGStream?Camera=02"/>

是否有任何解决方法可以在 Internet Explorer 中显示实时 MJPEG 视频?

【问题讨论】:

    标签: html video-streaming internet-explorer-11 mjpeg


    【解决方案1】:

    看起来 IE 不支持 MJPEG 格式。这可能是您的代码不适用于 Internet Explorer 的可能原因。

    作为一种解决方法,您可以尝试使用 JAVA Applet 来支持跨浏览器。这可能有助于解决您的问题。

    参考资料:

    (1)Online images streaming (MJPEG) not working in IE 11

    (2)Cross-browser solution for displaying MJPEG stream

    (3)README File for Cambozola V0.936

    【讨论】:

      猜你喜欢
      • 2011-04-07
      • 2011-08-13
      • 2010-11-06
      • 2021-02-19
      • 1970-01-01
      • 2014-10-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多