瀏覽代碼

fix(JitsiTrack): Remove func that's no longer used.

release-8443
Jaya Allamsetty 1 年之前
父節點
當前提交
a419b4ebc8
共有 3 個檔案被更改,包括 0 行新增20 行删除
  1. 0
    8
      modules/RTC/JitsiLocalTrack.js
  2. 0
    11
      modules/RTC/JitsiTrack.js
  3. 0
    1
      types/hand-crafted/modules/RTC/JitsiTrack.d.ts

+ 0
- 8
modules/RTC/JitsiLocalTrack.js 查看文件

518
      */
518
      */
519
     _setStream(stream) {
519
     _setStream(stream) {
520
         super._setStream(stream);
520
         super._setStream(stream);
521
-
522
-        if (stream) {
523
-            // Store the MSID for video mute/unmute purposes.
524
-            this.storedMSID = this.getMSID();
525
-            logger.debug(`Setting new MSID: ${this.storedMSID} on ${this}`);
526
-        } else {
527
-            logger.debug(`Setting 'null' stream on ${this}`);
528
-        }
529
     }
521
     }
530
 
522
 
531
     /**
523
     /**

+ 0
- 11
modules/RTC/JitsiTrack.js 查看文件

276
         return this.getStreamId();
276
         return this.getStreamId();
277
     }
277
     }
278
 
278
 
279
-    /**
280
-     * Returns the msid of the stream attached to the JitsiTrack object or null
281
-     * if no stream is attached.
282
-     */
283
-    getMSID() {
284
-        const streamId = this.getStreamId();
285
-        const trackId = this.getTrackId();
286
-
287
-        return streamId && trackId ? `${streamId} ${trackId}` : null;
288
-    }
289
-
290
     /**
279
     /**
291
      * Returns the WebRTC MediaStream instance.
280
      * Returns the WebRTC MediaStream instance.
292
      */
281
      */

+ 0
- 1
types/hand-crafted/modules/RTC/JitsiTrack.d.ts 查看文件

27
   getId: () => string | null;
27
   getId: () => string | null;
28
   isActive: () => boolean;
28
   isActive: () => boolean;
29
   setAudioLevel: ( audioLevel: number, tpc: TraceablePeerConnection ) => void;
29
   setAudioLevel: ( audioLevel: number, tpc: TraceablePeerConnection ) => void;
30
-  getMSID: () => string | null;
31
   setAudioOutput: ( audioOutputDeviceId: '' | string ) => Promise<unknown>; // TODO: what will this promise contain?
30
   setAudioOutput: ( audioOutputDeviceId: '' | string ) => Promise<unknown>; // TODO: what will this promise contain?
32
   addEventListener: (type: string, listener: (event: any) => void) => void;
31
   addEventListener: (type: string, listener: (event: any) => void) => void;
33
 }
32
 }

Loading…
取消
儲存