Przeglądaj źródła

fix(presenter-mode): Look up presenter track using type 'video'

dev1
Jaya Allamsetty 5 lat temu
rodzic
commit
e7059c0e3a
2 zmienionych plików z 7 dodań i 5 usunięć
  1. 2
    5
      modules/RTC/JitsiLocalTrack.js
  2. 5
    0
      service/RTC/MediaType.js

+ 2
- 5
modules/RTC/JitsiLocalTrack.js Wyświetl plik

525
             }
525
             }
526
 
526
 
527
             promise.then(streamsInfo => {
527
             promise.then(streamsInfo => {
528
-                // Do not add the presenter track to the conference
529
-                if (this.getType() === 'presenter') {
530
-                    return Promise.resolve();
531
-                }
532
-                const mediaType = this.getType();
528
+                // The track kind for presenter track is video as well.
529
+                const mediaType = this.getType() === MediaType.PRESENTER ? MediaType.VIDEO : this.getType();
533
                 const streamInfo
530
                 const streamInfo
534
                     = browser.usesNewGumFlow()
531
                     = browser.usesNewGumFlow()
535
                         ? streamsInfo.find(
532
                         ? streamsInfo.find(

+ 5
- 0
service/RTC/MediaType.js Wyświetl plik

3
  */
3
  */
4
 export const AUDIO = 'audio';
4
 export const AUDIO = 'audio';
5
 
5
 
6
+/**
7
+ * The presenter type.
8
+ */
9
+export const PRESENTER = 'presenter';
10
+
6
 /**
11
 /**
7
  * The video type.
12
  * The video type.
8
  */
13
  */

Ładowanie…
Anuluj
Zapisz