|
|
@@ -120,9 +120,12 @@ const ScreenObtainer = {
|
|
120
|
120
|
if (window.JitsiMeetScreenObtainer
|
|
121
|
121
|
&& window.JitsiMeetScreenObtainer.openDesktopPicker) {
|
|
122
|
122
|
window.JitsiMeetScreenObtainer.openDesktopPicker(
|
|
123
|
|
- streamId =>
|
|
|
123
|
+ (streamId, streamType) =>
|
|
124
|
124
|
onGetStreamResponse(
|
|
125
|
|
- { streamId },
|
|
|
125
|
+ {
|
|
|
126
|
+ streamId,
|
|
|
127
|
+ streamType
|
|
|
128
|
+ },
|
|
126
|
129
|
onSuccess,
|
|
127
|
130
|
onFailure
|
|
128
|
131
|
),
|
|
|
@@ -570,13 +573,17 @@ function waitForExtensionAfterInstall(options, waitInterval, retries) {
|
|
570
|
573
|
* @param {Function} onSuccess - callback for success.
|
|
571
|
574
|
* @param {Function} onFailure - callback for failure.
|
|
572
|
575
|
*/
|
|
573
|
|
-function onGetStreamResponse({ streamId, error }, onSuccess, onFailure) {
|
|
|
576
|
+function onGetStreamResponse(
|
|
|
577
|
+ { streamId, streamType, error },
|
|
|
578
|
+ onSuccess,
|
|
|
579
|
+ onFailure) {
|
|
574
|
580
|
if (streamId) {
|
|
575
|
581
|
gumFunction(
|
|
576
|
582
|
[ 'desktop' ],
|
|
577
|
583
|
stream => onSuccess({
|
|
578
|
584
|
stream,
|
|
579
|
|
- sourceId: streamId
|
|
|
585
|
+ sourceId: streamId,
|
|
|
586
|
+ sourceType: streamType
|
|
580
|
587
|
}),
|
|
581
|
588
|
onFailure,
|
|
582
|
589
|
{ desktopStream: streamId });
|