Low Latency Streaming

Does Lightning support low latency streaming protocols like WebRTC, SRT, RTSP?

Short answer: You need to implement it yourself.

Long answer: Lightning’s video player is a regular HTML5 video that gets rendered on the canvas, for what I’ve seen.

Unfortunately it doesn’t support anything additional to the video element out of the box.

In the project I’m currently working on we had to implement HLS ourselves. What the VideoPlayer plug-in does offer, however, are a load() and unloaded() methods which allow you to correctly initialize and clean such implementation.

From there we were able to render over the video the player controls, additional text and so on.