AirenSoft / OvenPlayer

OvenPlayer is JavaScript-based LLHLS and WebRTC Player for OvenMediaEngine.
https://airensoft.com/ome.html
MIT License
508 stars 126 forks source link

How to detect live stream is "stalled" state in Safari browser? #362

Open howard80920 opened 1 year ago

howard80920 commented 1 year ago

Safari version: 16.5(18615.2.9.11.4) OvenPlayer version: v0.10.29

After instantiating a player and listening for the stateChange event, I attempted to monitor whether the stream was stalled. When I closed the streaming device, the Chrome browser's stateChanged event received data (prevstate: playing, newstate: stalled). Subsequently, an error state was triggered, and I reloaded the player. However, in Safari, the stateChanged not triggered.

I would like to know if there is any way to determine if the stream is currently stalled in Safari, or if there are alternative methods to trigger a reload after the stream stops? Thanks!

SangwonOh commented 1 year ago

@howard80920 Hi. Please tell me what kind of stream (WebRTC or HLS). Thanks.

howard80920 commented 1 year ago

@howard80920 Hi. Please tell me what kind of stream (WebRTC or HLS). Thanks.

@SangwonOh, I use HLS.

SangwonOh commented 1 year ago

It was confirmed that stalled occurs. However, when the input stream is disconnected, it does not change to error state after changing to stalled state. I'll have to think about what circumstances I can reload the player.

howard80920 commented 1 year ago

It was confirmed that stalled occurs. However, when the input stream is disconnected, it does not change to error state after changing to stalled state. I'll have to think about what circumstances I can reload the player.

@SangwonOh , is there any progress on this issue?

SangwonOh commented 8 months ago

@howard80920 I was so busy last year that I couldn't check the issues. From now on, we will check them one by one. Please Stay tuned.