Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

kill stream when using gUM for permission to device labels to turn off camera #1931

Merged
merged 2 commits into from
May 29, 2018

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented May 26, 2018

Fixes element-hq/element-web#6530

Signed-off-by: Michael Telatynski 7t3chguy@gmail.com

…mera

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy t3chguy assigned dbkr and lukebarnard1 and unassigned dbkr May 26, 2018
_refreshMediaDevices: function() {
_refreshMediaDevices: function(stream) {
if (stream) {
// kill stream so that we don't leave it lingering around with webcam enabled etc
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps also explain that we don't need streams now, we just need device IDs to populate the audio and video input dropdowns.

@lukebarnard1 lukebarnard1 assigned t3chguy and unassigned lukebarnard1 May 29, 2018
@t3chguy t3chguy assigned lukebarnard1 and unassigned t3chguy May 29, 2018
@lukebarnard1 lukebarnard1 merged commit 3a222e0 into master May 29, 2018
@t3chguy t3chguy deleted the t3chguy/webcam_light branch May 25, 2020 18:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants