Current best practice to stream live video in web browser?

前端 未结 2 1285
时光取名叫无心
时光取名叫无心 2021-01-31 22:05

We develop an IP camera product which streams H.264/MPEG4/MJPEG video via RTSP/UDP. It has a web interface, currently we use the VLC Firefox plugin to allow viewing of the live

2条回答
  •  情深已故
    2021-01-31 22:58

    Well, I had to do the same thing while back in a raspberry pi 3. we transcoded it on the fly using ffmpeg on the pi and used https://github.com/phoboslab/jsmpeg to stream mjpeg. then played it on the browser/ionic app.

    var canvas = document.getElementById('video-canvas');
    this.player = new JSMpeg.Player(this.button.url ,{canvas: canvas});
    

    We were managing up to 4 concurrent streams with minimum delay <2-5 secs on our Pis.

    But once we moved to React Native we used the RN VLC wrapper on the phones

提交回复
热议问题