소스 검색

ref(tracks) Remove gUM option that is no longer supported

factor2
Jaya Allamsetty 6 달 전
부모
커밋
c9add0a9ef

+ 2
- 4
conference.js 파일 보기

@@ -442,8 +442,7 @@ export default {
442 442
         const timeout = browser.isElectron() ? 15000 : 60000;
443 443
         const audioOptions = {
444 444
             devices: [ MEDIA_TYPE.AUDIO ],
445
-            timeout,
446
-            firePermissionPromptIsShownEvent: true
445
+            timeout
447 446
         };
448 447
 
449 448
         // Spot uses the _desktopSharingSourceDevice config option to use an external video input device label as
@@ -478,8 +477,7 @@ export default {
478 477
         } else if (requestedAudio || requestedVideo) {
479 478
             tryCreateLocalTracks = APP.store.dispatch(createInitialAVTracks({
480 479
                 devices: initialDevices,
481
-                timeout,
482
-                firePermissionPromptIsShownEvent: true
480
+                timeout
483 481
             }, recordTimeMetrics)).then(({ tracks, errors: pErrors }) => {
484 482
                 Object.assign(errors, pErrors);
485 483
 

+ 3
- 6
react/features/base/tracks/actions.web.ts 파일 보기

@@ -359,8 +359,7 @@ export function createInitialAVTracks(options: ICreateInitialTracksOptions, reco
359 359
     return (dispatch: IStore['dispatch'], _getState: IStore['getState']) => {
360 360
         const {
361 361
             devices,
362
-            timeout,
363
-            firePermissionPromptIsShownEvent
362
+            timeout
364 363
         } = options;
365 364
 
366 365
         dispatch(gumPending(devices, IGUMPendingState.PENDING_UNMUTE));
@@ -400,16 +399,14 @@ export function createInitialAVTracks(options: ICreateInitialTracksOptions, reco
400 399
             if (devices.includes(MEDIA_TYPE.AUDIO)) {
401 400
                 gUMPromises.push(createLocalTracksF({
402 401
                     devices: [ MEDIA_TYPE.AUDIO ],
403
-                    timeout,
404
-                    firePermissionPromptIsShownEvent
402
+                    timeout
405 403
                 }));
406 404
             }
407 405
 
408 406
             if (devices.includes(MEDIA_TYPE.VIDEO)) {
409 407
                 gUMPromises.push(createLocalTracksF({
410 408
                     devices: [ MEDIA_TYPE.VIDEO ],
411
-                    timeout,
412
-                    firePermissionPromptIsShownEvent
409
+                    timeout
413 410
                 }));
414 411
             }
415 412
 

+ 0
- 3
react/features/base/tracks/functions.native.ts 파일 보기

@@ -18,9 +18,6 @@ export * from './functions.any';
18 18
  * @param {string|null} [options.micDeviceId] - Microphone device id or
19 19
  * {@code undefined} to use app's settings.
20 20
  * @param {number|undefined} [oprions.timeout] - A timeout for JitsiMeetJS.createLocalTracks used to create the tracks.
21
- * @param {boolean} [options.firePermissionPromptIsShownEvent] - Whether lib-jitsi-meet
22
- * should check for a {@code getUserMedia} permission prompt and fire a
23
- * corresponding event.
24 21
  * @param {IStore} store - The redux store in the context of which the function
25 22
  * is to execute and from which state such as {@code config} is to be retrieved.
26 23
  * @returns {Promise<JitsiLocalTrack[]>}

+ 0
- 8
react/features/base/tracks/functions.web.ts 파일 보기

@@ -32,9 +32,6 @@ export * from './functions.any';
32 32
  * @param {string|null} [options.micDeviceId] - Microphone device id or
33 33
  * {@code undefined} to use app's settings.
34 34
  * @param {number|undefined} [oprions.timeout] - A timeout for JitsiMeetJS.createLocalTracks used to create the tracks.
35
- * @param {boolean} [options.firePermissionPromptIsShownEvent] - Whether lib-jitsi-meet
36
- * should check for a {@code getUserMedia} permission prompt and fire a
37
- * corresponding event.
38 35
  * @param {IStore} store - The redux store in the context of which the function
39 36
  * is to execute and from which state such as {@code config} is to be retrieved.
40 37
  * @param {boolean} recordTimeMetrics - If true time metrics will be recorded.
@@ -45,7 +42,6 @@ export function createLocalTracksF(options: ITrackOptions = {}, store?: IStore,
45 42
     const {
46 43
         desktopSharingSourceDevice,
47 44
         desktopSharingSources,
48
-        firePermissionPromptIsShownEvent,
49 45
         timeout
50 46
     } = options;
51 47
 
@@ -91,7 +87,6 @@ export function createLocalTracksF(options: ITrackOptions = {}, store?: IStore,
91 87
                     effects,
92 88
                     facingMode: options.facingMode || getCameraFacingMode(state),
93 89
                     firefox_fake_device, // eslint-disable-line camelcase
94
-                    firePermissionPromptIsShownEvent,
95 90
                     micDeviceId,
96 91
                     resolution,
97 92
                     timeout
@@ -146,7 +141,6 @@ export function createPrejoinTracks() {
146 141
     if (requestedAudio || requestedVideo) {
147 142
         tryCreateLocalTracks = createLocalTracksF({
148 143
             devices: initialDevices,
149
-            firePermissionPromptIsShownEvent: true,
150 144
             timeout
151 145
         }, APP.store)
152 146
         .catch(async (err: Error) => {
@@ -163,7 +157,6 @@ export function createPrejoinTracks() {
163 157
             if (requestedAudio) {
164 158
                 gUMPromises.push(createLocalTracksF({
165 159
                     devices: [ MEDIA_TYPE.AUDIO ],
166
-                    firePermissionPromptIsShownEvent: true,
167 160
                     timeout
168 161
                 }));
169 162
             }
@@ -171,7 +164,6 @@ export function createPrejoinTracks() {
171 164
             if (requestedVideo) {
172 165
                 gUMPromises.push(createLocalTracksF({
173 166
                     devices: [ MEDIA_TYPE.VIDEO ],
174
-                    firePermissionPromptIsShownEvent: true,
175 167
                     timeout
176 168
                 }));
177 169
             }

+ 0
- 2
react/features/base/tracks/types.ts 파일 보기

@@ -15,7 +15,6 @@ export interface ITrackOptions {
15 15
     desktopSharingSources?: string[];
16 16
     devices?: string[];
17 17
     facingMode?: string;
18
-    firePermissionPromptIsShownEvent?: boolean;
19 18
     micDeviceId?: string | null;
20 19
     timeout?: number;
21 20
 }
@@ -76,7 +75,6 @@ export interface IShareOptions {
76 75
 
77 76
 export interface ICreateInitialTracksOptions {
78 77
     devices: Array<MediaType>;
79
-    firePermissionPromptIsShownEvent?: boolean;
80 78
     timeout?: number;
81 79
 }
82 80
 

Loading…
취소
저장