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
[REQUEST]Audio playback out of sync #477
Comments
Are all of the media streams you want to be synced on the same peer connection? |
Yes, I plan to synchronize audio and video on the same peer-to-peer connection, but this is the work of RTCP. The problem I found is that unity has a large buffer during acquisition and playback, resulting in a waste of time. I have solved this problem, and the delay is about 250ms, but it is still a long time |
@PoRain |
@karasusan Is there a separate ticket that is tracking the "delay for playing audio from buffers"? We are experiencing something like this, and I'd like to find out whatever you have on this so we can determine whether what we're seeing is the same. It would also be nice to compare workarounds. Or should we do that here? |
@howard-stearns |
@karasusan - Posted as #525 |
@PoRain |
@howard-stearns |
I want to try the remote synchronous playback of audio,PC2(PC1) is a chrome client.
When I push the stream to chrome, there is a delay in playing. I think it may be caused by the interval between unity collecting audio, which means that the data sent by unity is always out of date.I solved this problem by updating the acquisition position of the microphone in update () to synchronize the acquisition and transmission.
But when I choose to use unity to play and chrome to push streaming, the playback delay of unity is about 1 s.How should unity use unity.webrtc to solve this problem?
The text was updated successfully, but these errors were encountered: