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

Remote audio takes 10 to 15 seconds to arrive #983

Open
SujithManjavana opened this issue Jul 17, 2022 · 5 comments
Open

Remote audio takes 10 to 15 seconds to arrive #983

SujithManjavana opened this issue Jul 17, 2022 · 5 comments
Labels
client related to peerjs client

Comments

@SujithManjavana
Copy link

Remote audio takes 10 to 15 seconds to arrive after call.on('stream', function(stream) is triggered. I tried to call without custom iceServers, tried on wifi and mobile data but the results are the same. There is also a lag in the audio/video, sometimes it is more than acceptable (more than 5 Seconds). When both devices are on the same wifi, the lag is less than 1 second. Is it because of the TURN server delay? How can I minimize it?

Platform: Android 11 WebView.

@devthisath
Copy link

Hi,
There Is A Jitter Between Every Device And The Ice Server,
If You Use Devices That Connected To Same WIFI Network,
The Both Devices Near To Each Other, So There Is No Jitter Between The Devices And The Ice Server,
If You Use Your Own Peerjs Server You Can Increase Your Hardware On Your Server Such As CPU, Ram
It Will Decrease Jitter

Thankyou
R (2)
u

@SujithManjavana
Copy link
Author

Did you mean, to use my own TURN server?

@devthisath
Copy link

devthisath commented Aug 6, 2022

Yes,
If You Want To Deploy Your Peerjs Application As A Production You Should Use Your Own Peerjs Server.
It's Faster Than The Peerjs Cloud Because Many Developers Use Peerjs Cloud, So The Connection Between The Server And Your Application Is Very Slow.
If You Want A Peerjs Server With High Resource Let Me Know.

@jonasgloning
Copy link
Member

I don’t think the TURN server alone is causing the delay.
How’s the video/audio quality? Bad when delayed or still good?
Can you give a traceroute/ping to eu-0.turn.peerjs.com from your local network?
Does the same delay happen when simulated on a desktop machine?

We use Coturn for the cloud TURN server. It’s reasonably simple to set up, so maybe just give it a try to see if it works.

@devthisath
Copy link

devthisath commented Aug 8, 2022 via email

@irgalamarr irgalamarr added the client related to peerjs client label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client related to peerjs client
Projects
None yet
Development

No branches or pull requests

4 participants