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

Fix camera light bug #350

Merged
merged 2 commits into from
Oct 30, 2020
Merged

Fix camera light bug #350

merged 2 commits into from
Oct 30, 2020

Conversation

timmydoza
Copy link
Contributor

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

Pull Request Details

JIRA link(s):

  • N/A

Description

This PR fixes a bug where Video.createLocalTracks() was being called more than once. Now, Video.createLocalTracks() will not be called when isAcquiringTracks is true, which stops the extra calls to createLocalTracks.

This was causing an issue where the camera light would not turn off when the video was muted. This is because the extra call to Video.createLocalTracks() would create MediaStreams that were ignored and never stopped by the app when the user muted their video. The browser requires that all instances of a MediaStream be stopped before the camera light is turned off.

Burndown

Before review

  • Updated CHANGELOG.md if necessary
  • Added unit tests if necessary
  • Updated affected documentation
  • Verified locally with npm test
  • Manually sanity tested running locally
  • Included screenshot as PR comment (if needed)
  • Ready for review

Before merge

  • Got one or more +1s
  • Re-tested if necessary

@timmydoza timmydoza merged commit cf36ac3 into master Oct 30, 2020
@timmydoza timmydoza deleted the fix-camera-light-bug branch October 30, 2020 17:44
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 this pull request may close these issues.

2 participants