Przeglądaj źródła

fix(RTC): Add function declaration to JitsiTrack.

RN clients throw a function undefined error otherwise.
dev1
Jaya Allamsetty 3 lat temu
rodzic
commit
7d3f13c907

+ 10
- 0
modules/RTC/JitsiTrack.js Wyświetl plik

@@ -407,6 +407,16 @@ export default class JitsiTrack extends EventEmitter {
407 407
         return null;
408 408
     }
409 409
 
410
+    /**
411
+     * Returns the streaming status of the track.
412
+     *
413
+     * @returns {string} the streaming status <tt>TrackStreamingStatus</tt> of the track. Returns null if
414
+-    * trackStreamingStatusImpl hasn't been initialized.
415
+     */
416
+    getTrackStreamingStatus() {
417
+        // Should be defined by the classes that are extending JitsiTrack.
418
+    }
419
+
410 420
     /**
411 421
      * Checks whether the MediaStream is active/not ended.
412 422
      * When there is no check for active we don't have information and so

+ 0
- 9
types/auto/modules/RTC/JitsiRemoteTrack.d.ts Wyświetl plik

@@ -143,15 +143,6 @@ export default class JitsiRemoteTrack extends JitsiTrack {
143 143
      * @param {string} state the current track streaming state. {@link TrackStreamingStatus}.
144 144
      */
145 145
     _setTrackStreamingStatus(status: any): void;
146
-    /**
147
-     * Returns track's streaming status.
148
-     *
149
-     * @returns {string} the streaming status <tt>TrackStreamingStatus</tt> of the track. Returns null
150
-     * if trackStreamingStatusImpl hasn't been initialized.
151
-     *
152
-     * {@link TrackStreamingStatus}.
153
-     */
154
-    getTrackStreamingStatus(): string;
155 146
     /**
156 147
      * Clears the timestamp of when the track entered forwarded sources.
157 148
      */

+ 7
- 0
types/auto/modules/RTC/JitsiTrack.d.ts Wyświetl plik

@@ -206,6 +206,13 @@ export default class JitsiTrack extends EventEmitter {
206 206
      * @returns {string|null} id of the track or null if this is fake track.
207 207
      */
208 208
     getId(): string | null;
209
+    /**
210
+     * Returns the streaming status of the track.
211
+     *
212
+     * @returns {string} the streaming status <tt>TrackStreamingStatus</tt> of the track. Returns null if
213
+-    * trackStreamingStatusImpl hasn't been initialized.
214
+     */
215
+    getTrackStreamingStatus(): string;
209 216
     /**
210 217
      * Checks whether the MediaStream is active/not ended.
211 218
      * When there is no check for active we don't have information and so

Ładowanie…
Anuluj
Zapisz