You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
improve comment
This commit is contained in:
committed by
GitHub
parent
5147246c17
commit
05357b9f8c
@@ -287,6 +287,7 @@ module.exports = React.createClass({
|
|||||||
_refreshMediaDevices: function(stream) {
|
_refreshMediaDevices: function(stream) {
|
||||||
if (stream) {
|
if (stream) {
|
||||||
// kill stream so that we don't leave it lingering around with webcam enabled etc
|
// kill stream so that we don't leave it lingering around with webcam enabled etc
|
||||||
|
// as here we called gUM to ask user for permission to their device names only
|
||||||
stream.getTracks().forEach((track) => track.stop());
|
stream.getTracks().forEach((track) => track.stop());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user