Przeglądaj źródła

fix(screenshare): specify source type for fake and proxy (#878)

Spot is the consumer of screensharing using a camera
input and through a proxy connection. To differentiate
which one is active, declare a source type on the
created "desktop" stream.
dev1
virtuacoplenny 6 lat temu
rodzic
commit
48bd70c6a9
No account linked to committer's email address

+ 4
- 1
modules/RTC/RTCUtils.js Wyświetl plik

@@ -1329,7 +1329,10 @@ class RTCUtils extends Listenable {
1329 1329
 
1330 1330
                         return applyConstrainsPromise
1331 1331
                             .then(() => {
1332
-                                return { stream };
1332
+                                return {
1333
+                                    sourceType: 'device',
1334
+                                    stream
1335
+                                };
1333 1336
                             });
1334 1337
                     });
1335 1338
             }

+ 1
- 0
modules/proxyconnection/ProxyConnectionService.js Wyświetl plik

@@ -270,6 +270,7 @@ export default class ProxyConnectionService {
270 270
                     deviceId:
271 271
                         `proxy:${this._peerConnection.getPeerJid()}`,
272 272
                     mediaType: isVideo ? MediaType.VIDEO : MediaType.AUDIO,
273
+                    sourceType: 'proxy',
273 274
                     stream: mediaStream,
274 275
                     track: mediaStream.getVideoTracks()[0],
275 276
                     videoType

Ładowanie…
Anuluj
Zapisz