无法从MJPEG服务器流式传输

时间:2013-03-07 19:22:02

标签: html5 webkit video-streaming html5-video mjpeg

我正在尝试使用<video>从MJPEG服务器流式传输,但我收到以下错误:

HTTP "Content-Type" of "multipart/x-mixed-replace" is not supported. Load of media resource http://localhost:8080/stream?topic=/gscam/image_raw?height=240?width=320 failed.

使用以下HTML代码:

<video src="http://localhost:8080/stream?topic=/gscam/image_raw?height=240?width=320" id="vid"
       height="240" width="320">
</video>

我在Firefox和Chrome上试过没有运气。

1 个答案:

答案 0 :(得分:0)

据我所知,将MJPEG流嵌入Firefox和Chrome的唯一方法是使用标签。