Skip to content
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

Closed
PoRain opened this issue Jul 16, 2021 · 8 comments
Closed

[REQUEST]Audio playback out of sync #477

PoRain opened this issue Jul 16, 2021 · 8 comments
Assignees
Labels
duplicate This issue or pull request already exists enhancement New feature or request waiting for release This issue is already fixed and will be contained in next version
Milestone

Comments

@PoRain
Copy link

PoRain commented Jul 16, 2021

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?

@PoRain PoRain added the enhancement New feature or request label Jul 16, 2021
@keepingitneil
Copy link

Are all of the media streams you want to be synced on the same peer connection?

@PoRain
Copy link
Author

PoRain commented Jul 22, 2021

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

@karasusan
Copy link
Collaborator

@PoRain
We know the issue that Unity has the delay for playing audio from buffers, but not found the workaround yet.

@howard-stearns
Copy link

@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?

@karasusan
Copy link
Collaborator

@howard-stearns
There is no ticket for that. Could you make it as a new one?

@howard-stearns
Copy link

@karasusan - Posted as #525

@karasusan
Copy link
Collaborator

@PoRain
We fixed the latency of audio streaming for the next release. This should be released next week.

@karasusan karasusan added this to the 2.4.0-exp.5 milestone Jan 28, 2022
@karasusan karasusan added waiting for release This issue is already fixed and will be contained in next version duplicate This issue or pull request already exists labels Jan 28, 2022
@karasusan
Copy link
Collaborator

@howard-stearns
@PoRain
@keepingitneil
We released the new version 2.4.0-exp.5.
Please check it out and if your issue is not solved, please notify me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request waiting for release This issue is already fixed and will be contained in next version
Projects
None yet
Development

No branches or pull requests

4 participants