最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Include a MJPEG in a html-Site, using video.js - Stack Overflow

programmeradmin1浏览0评论

Here's my case: I get a Stream from a Web-Server. The format of this Stream is MJPEG. I embedded this stream in a html-site with the following code: <img src="http://172.17.52.161:9000/stream/video.mjpeg">, but I'd like to use a Player for this stream. Is there a possibility to use video.js with mjpeg-streams? My overall goal is to pile these files with Phonegap-Build, to use it on my Smartphone, is this possible? Thank you for your help!

Here's my case: I get a Stream from a Web-Server. The format of this Stream is MJPEG. I embedded this stream in a html-site with the following code: <img src="http://172.17.52.161:9000/stream/video.mjpeg">, but I'd like to use a Player for this stream. Is there a possibility to use video.js with mjpeg-streams? My overall goal is to pile these files with Phonegap-Build, to use it on my Smartphone, is this possible? Thank you for your help!

Share Improve this question asked Dec 1, 2015 at 15:08 F. DanielF. Daniel 731 gold badge1 silver badge6 bronze badges 1
  • I can't find much but there is an answer here, it doesn't solve your issue per say but it gives a direction to look for an answer. stackoverflow./questions/19346775/… – nulltron Commented Dec 1, 2015 at 15:11
Add a ment  | 

1 Answer 1

Reset to default 0

You can use an <video> tag

<video src="http://172.17.52.161:9000/stream/video.mjpeg" controls>
   Your browser does not support the <code>video</code> element.
</video>
发布评论

评论列表(0)

  1. 暂无评论