mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Merge pull request #11973 from luiscuenca/webPrivacyFix
Fix web entities accessing the webcam
This commit is contained in:
commit
4956978c76
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ var EventBridge;
|
||||||
var tempEventBridge = EventBridge;
|
var tempEventBridge = EventBridge;
|
||||||
EventBridge = channel.objects.eventBridge;
|
EventBridge = channel.objects.eventBridge;
|
||||||
EventBridge.audioOutputDeviceChanged.connect(function(deviceName) {
|
EventBridge.audioOutputDeviceChanged.connect(function(deviceName) {
|
||||||
navigator.mediaDevices.getUserMedia({ audio: true, video: true }).then(function(mediaStream) {
|
navigator.mediaDevices.getUserMedia({ audio: true, video: false }).then(function(mediaStream) {
|
||||||
navigator.mediaDevices.enumerateDevices().then(function(devices) {
|
navigator.mediaDevices.enumerateDevices().then(function(devices) {
|
||||||
devices.forEach(function(device) {
|
devices.forEach(function(device) {
|
||||||
if (device.kind == "audiooutput") {
|
if (device.kind == "audiooutput") {
|
||||||
|
|
Loading…
Reference in a new issue