Pārlūkot izejas kodu

fix(screensharing): do not sync camera device id on start

When a conference is started, the currently used
camera device id is saved. I believe this is happening
because lib-jitsi-meet does not use exact device id
mathcing when calling getUserMedia, so it's possibl
to request camera A but get camera B back because
camera A is not available. When config.startScreenSharing
is true, the syncing occurs and saves the desktop
source id. So when screensharing is stopped, jitsi-meet
requests that desktop source id instead of the preferred
camera.
j8
Leonard Kim 6 gadus atpakaļ
vecāks
revīzija
8c8b09878c
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      conference.js

+ 2
- 1
conference.js Parādīt failu

@@ -2315,7 +2315,8 @@ export default {
2315 2315
                         }));
2316 2316
                     }
2317 2317
 
2318
-                    if (this.localVideo) {
2318
+                    if (this.localVideo
2319
+                        && this.localVideo.videoType === 'camera') {
2319 2320
                         dispatch(updateSettings({
2320 2321
                             cameraDeviceId: this.localVideo.getDeviceId()
2321 2322
                         }));

Notiek ielāde…
Atcelt
Saglabāt