deepch / RTSPtoWeb

RTSP Stream to WebBrowser
MIT License
1.23k stars 300 forks source link

Unstable HLS player. #272

Open Thien223 opened 1 year ago

Thien223 commented 1 year ago

Hello everyone, have a nice day.

I'm developing a camera viewer page to put on our website.

Other OS and browsers work well with MSE (I could not make WebRTC works). But our system needs providing service on iOS app, as well as iOS safari browser. And as you might know, they are not support MSE.

The only way to do is switch to HLS player when play on iOS.

But when play HLS, they (the video players) are unstable, It takes time to load videos, and sometime, they cannot be loaded. The console log does not show any log about why it was not loaded.

As my debugging, because the data was not loadded --> the 'loadeddata' event was not triggered. then the makePic() function was not called, too. it stops here: image

then, cannot run into here: image

It returns ./../../file.ts not found error, too. But sometime, the videos cannot be loaded without file.ts not found error. Not all of times, this occurs often, and sometime it runs well. like this: image

Anyone has dealed with this problem? please share your experiment. Thank you so much.

alevilla86 commented 1 year ago

I started dealing with this exact same error today. Not workaround so far, it doesn't work using ffplay or even using the UI player that comes with RTSPtoWeb docker.