我正在尝试使用<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上试过没有运气。
答案 0 :(得分:0)
据我所知,将MJPEG流嵌入Firefox和Chrome的唯一方法是使用标签。