Cross-browser solution for displaying MJPEG stream

后端 未结 2 1547
温柔的废话
温柔的废话 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: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:

    
    

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

提交回复
热议问题