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

Video lagging after toggle DownTrack.Mute() #646

Open
gr8den opened this issue Feb 3, 2022 · 0 comments
Open

Video lagging after toggle DownTrack.Mute() #646

gr8den opened this issue Feb 3, 2022 · 0 comments

Comments

@gr8den
Copy link

gr8den commented Feb 3, 2022

Your environment.

  • Version: a970af3#v1.11.0
  • Client: Google Chrome 97.0.4692.99
  • Environment: dev machine, MacOS
  • Are you using a TURN server? No. Only Google's stun

What did you do?

  1. Connect to SFU. Start publish video. Video playing on destination without lagging
  2. Apply mute DownTrack.Mute(true)
  3. Disable mute

What did you expect?

Video not lagging after toggle mute

What happened?

Video begin play just as I click unmute but after few seconds of playing video starts lagging (I see video with ~1-2 sec delay). Source and destination is local machine (I think it's not network problem). CPU also ok i.e not performance issue

Fixing attempts

I was trying comment this 3 lines in Mute function
https://github.com/pion/ion-sfu/blob/master/pkg/sfu/downtrack.go#L181-L183

if val {
   d.reSync.set(val)
}

With this change video not lagging after unmute. But it create new problem: after unmute video starts playing after ~1-2 seconds (delay on beginning), next it's playing fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant