deepch / RTSPtoWSMP4f

RTSP Stream to WebBrowser MSE over WebSocket based MP4f segments
229 stars 64 forks source link

QuotaExceededError #30

Closed vojty closed 2 years ago

vojty commented 2 years ago

Hello,

first of all, thanks for your app, it works great. I've managed to integrate it with my application. However, sometimes I get this error:

QuotaExceededError
Failed to execute 'appendBuffer' on 'SourceBuffer': The SourceBuffer is full, and cannot free space to append additional buffers.

Unfortunately, I don't know how to reproduce this, it just happens time to time...

EDIT: it's a client (javascript) error

vdalex25 commented 2 years ago

Hi, Most likely a buffer overflow occurs. The browser pushes chunks into the buffer and plays them as they fill, the browser also automatically clears the buffer from start to the current playback time, but if the video is paused, the browser cannot clear the buffer and it overflows. When the video tab is inactive, the browser pauses the video playback, the current playback time does not change, but the buffer grows and eventually overflows last commit fixes pause video in hidden tabs and here you can read more about this issue

vojty commented 2 years ago

I eventually switched to the RTSPtoWebRTC version, which works slightly better for me, but thanks anyway. We can close this for now