-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to execute 'appendBuffer' on 'SourceBuffer': This SourceBuffer is still processing an 'appendBuffer' or 'remove' operation. #14
Comments
Hi! If yes, maybe the process for removing the old SourceBuffer was pretty slow on the browser. SFMediaStream/src/MediaBuffer.js Lines 11 to 44 in b9f895e
It may possible that the browser was running intensive tasks and slowing down the buffer removal process. If it was error before 20 seconds.
Well because you was found this issue I think the library will need to buffer the buffers 😅. Btw can you try increase the delay for the Presenter and the Streamer? |
I've tried it with 1 second and 500-millisecond delays, but for my application, having as close to realtime is very important. The error occurs before 20 seconds. The server also does some processing to find the correct person to send the chunk to, so it is possible that it gets delayed, but not by much, all the server does is calculate every player in a certain radius. I'll try realtimeBufferPlay. Is it as simple as swapping receiveBuffer to realtimeBufferPlay, or is there something else I'll need to change? |
Using realtimeBufferPlay works! Just a little choppy on the audio. |
Alright thanks, I think I know how to fix it because of your information. |
Hi, can you try with this version? https://cdn.jsdelivr.net/npm/[email protected] Btw I may increase the major version on the future because I want to support WebRTC and modify the player. |
Should I try |
The |
Alright, I'll test it out when I get the time. |
1.2.1 still appears to have this issue |
From trial and error though, a good enough fix is just to use |
I'm using SFMediaStream for a proximity chat mod for Among Us. I ran into an issue when trying to use it. The issues is:
Here's the code I use for the client:
The client acts like a presenter and a streamer, both delays are synced up (200ms).
For streamer I use the following:
Sometimes it'll work for a few seconds, other times it errors after receiving one chunk.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: