Cross-browser solution for displaying MJPEG stream

后端 未结 2 1545
温柔的废话
温柔的废话 2020-12-02 23:49

Is there a lightweight, free, and reliable way to display MJPEG in a cross-browser environment? I\'m trying to display an MJPEG stream from an Axis 2120 IP camera on a site

相关标签:
2条回答
  • 2020-12-03 00:08

    I've just came out with a solution a couple of months ago. It's cross-platform, and doesn't need third-party plugins such as Flash or Java.

    Basically, it's a node.js proxy which parses m-jpeg boundaries and delivers images in a defined interval.

    Fork it at https://github.com/rodowi/Paparazzo.js

    0 讨论(0)
  • 2020-12-03 00:24

    Here is a Java applet based solution that you can use for any browser (or just the ones that don't support MJPEG): http://www.charliemouse.com/code/cambozola/

    As far as other bugs go with MJPEG, I have found that you should set the 'src' attribute of the 'img' tag to something besides the MJPEG before you try to remove 'img' tag. Example:

    <img src="#" />
    

    If you don't do that, Firefox will continue to download MJPEG stream even though it shouldn't.

    0 讨论(0)
提交回复
热议问题