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

Stop video track when disabling video #100

Conversation

havardholvik
Copy link
Collaborator

In order to make the camera light turn off, we need to stop the video track completely.

Tested like:

  1. yarn dev -> connect to room through Storybook
  2. Toggle your camera, verify the camera light goes off

@havardholvik havardholvik requested a review from a team October 24, 2023 07:52
@havardholvik havardholvik force-pushed the havard/pan-259-make-sure-we-turn-off-camera-light-when-disabling-video branch from 75e5d70 to c4825b5 Compare October 24, 2023 09:36
package.json Outdated Show resolved Hide resolved
src/lib/LocalMedia.ts Outdated Show resolved Hide resolved
src/lib/react/useRoomConnection.ts Show resolved Hide resolved
src/lib/LocalMedia.ts Outdated Show resolved Hide resolved
@havardholvik havardholvik force-pushed the havard/pan-259-make-sure-we-turn-off-camera-light-when-disabling-video branch 3 times, most recently from 00b052f to 3cb5b35 Compare October 25, 2023 07:40
Copy link
Collaborator

@nandito nandito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍰

In order to make the camera light turn off, we need to stop the video
track completely.
@havardholvik havardholvik force-pushed the havard/pan-259-make-sure-we-turn-off-camera-light-when-disabling-video branch 2 times, most recently from f30fb4b to 811ded3 Compare October 25, 2023 12:16
We have previously failed to install the latest dependencies of the sdk
when installing the sample app. This change here makes sure
`yarn installed` is run AFTER adding the local yalc dependency.
@havardholvik havardholvik force-pushed the havard/pan-259-make-sure-we-turn-off-camera-light-when-disabling-video branch from 811ded3 to 9e6870a Compare October 25, 2023 12:29
@havardholvik havardholvik merged commit f96c8fa into development Oct 25, 2023
2 checks passed
@havardholvik havardholvik deleted the havard/pan-259-make-sure-we-turn-off-camera-light-when-disabling-video branch October 25, 2023 13:38
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