我正在尝试通过使用从 MJPEG 服务器流式传输,<video>
但出现以下错误:
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 中尝试过,但没有任何运气。