Search code examples
http-live-streaminglive-streaming

How to play a live video in the browser?


I need to get live video from a device. I have to play the video on the browser. live video can be received as RTP or UDP.

Since there is no support for VLC, I published the video by getting it via RTP with FFMPEG and creating a web server with Nginx. But later I realized that it is recording video tracks to disk. This is a situation I don't want.

Is there any other way to do this?


Solution

  • Not with RTP or UDP, no, there is no way. You must use WebRTC, or an HTTP based method like HLS or DASH.