Browse Source

fix typo in variable name

dev1
Jorge Oliveira 3 years ago
parent
commit
8446ecb1c8

+ 1
- 1
modules/RTC/TraceablePeerConnection.js View File

@@ -266,7 +266,7 @@ export default function TraceablePeerConnection(
266 266
         /**
267 267
          * Indicates whether a video track has ever been added to the peer connection.
268 268
          */
269
-        this._hasHadAudioTrack = false;
269
+        this._hasHadVideoTrack = false;
270 270
     }
271 271
 
272 272
     /**

+ 4
- 1
types/auto/modules/RTC/TraceablePeerConnection.d.ts View File

@@ -233,6 +233,10 @@ export default class TraceablePeerConnection {
233 233
      * Indicates whether an audio track has ever been added to the peer connection.
234 234
      */
235 235
     _hasHadAudioTrack: boolean;
236
+    /**
237
+     * Indicates whether a video track has ever been added to the peer connection.
238
+     */
239
+    _hasHadVideoTrack: boolean;
236 240
     /**
237 241
      * @type {number} The max number of stats to keep in this.stats. Limit to
238 242
      * 300 values, i.e. 5 minutes; set to 0 to disable
@@ -499,7 +503,6 @@ export default class TraceablePeerConnection {
499 503
      * @returns {Promise<void>} - resolved when done.
500 504
      */
501 505
     addTrack(track: any, isInitiator?: boolean): Promise<void>;
502
-    _hasHadVideoTrack: boolean;
503 506
     /**
504 507
      * Adds local track as part of the unmute operation.
505 508
      * @param {JitsiLocalTrack} track the track to be added as part of the unmute operation.

Loading…
Cancel
Save