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

Revoking camera access in browser mutes remote track but doesn't mute local track #496

Closed
davideberlein opened this issue Oct 28, 2022 · 0 comments · Fixed by #498
Closed

Comments

@davideberlein
Copy link
Contributor

davideberlein commented Oct 28, 2022

Describe the bug

Steps to reproduce

  1. start a call
  2. publish a MediaStreamTrack using room.localParticipant.publishTrack(videoTrack,...)
  3. revoke camera access permission (in chrome)

Expected behavior

  • The LocalTrackPublication is muted and the localTrackMuted event is triggered
  • The RemoteTrackPublication is muted for anyone subscribed to the published camera and the trackMuted event is triggered.

Actual behavior

  • The LocalTrackPublication is not muted and no localTrackMuted event is triggered (however the LocalTrackPublication.isUpstreamPaused is set to true and the LocalTrack.upstreamPaused event is trigged)
  • The RemoteTrackPublication is muted for anyone subscribed to the published camera and the trackMuted event is triggered.

System Info

OS: Mac OSX 12.5.1 (21G83)
Browser: Chrome Version 106.0.5249.61 (Official Build) (arm64)
livekit-js: 1.5.0

Severity

serious, but I can work around it

Additional Information

It looks like LocalParticipant.onTrackUpstreamPaused handles UpstreamPaused the same way as Muted which is why the state is correctly propagated to the remote participants but not the local participant.

@davideberlein davideberlein changed the title Revoking camera access in browser pauses upstream but doesn't mute track locally Revoking camera access in browser mutes remote track but doesn't mute local track Oct 28, 2022
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

Successfully merging a pull request may close this issue.

1 participant