marsha icon indicating copy to clipboard operation
marsha copied to clipboard

Detect when a live is ended in the player view

Open lunika opened this issue 3 years ago • 2 comments

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe.

When a live is ended, the player still continue to stream with a black image. This is because no frame are sent to medialive channel and this one is stopped but the mediapackage channel is still open and the hls manifest still exists.

Describe the solution you'd like

When the live is ended, the player should disappear and a message saying that the replay will be available soon should appear.

Discovery, Documentation, Adoption, Migration Strategy We have to find a way to send messages from the back to the front. The easy one is a websocket but we have to find a way to manage a websocket with our infrastructure (marsha is running in k8s, many pods running marsha are launch, how to manage websocket and multiple instances)

lunika avatar Jun 23 '21 15:06 lunika

You could also call the back when the front runs out of video chunks to read to check that the status of the video is still playingn? Trying to avoid websockets :sweat_smile:

sampaccoud avatar Jun 24 '21 20:06 sampaccoud

You could also call the back when the front runs out of video chunks

Yes we have to check with videojs if we can detect this

lunika avatar Jun 24 '21 20:06 lunika