@100mslive/hms-video-store 0.12.35 → 0.12.36-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.12.
|
|
2
|
+
"version": "0.12.36-alpha.0",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"conferencing",
|
|
74
74
|
"100ms"
|
|
75
75
|
],
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "85a1503c44806a779fe0c0bc54258b0065ec476c"
|
|
77
77
|
}
|
|
@@ -74,7 +74,7 @@ export class HMSLocalVideoTrack extends HMSVideoTrack {
|
|
|
74
74
|
private room?: Room,
|
|
75
75
|
) {
|
|
76
76
|
super(stream, track, source);
|
|
77
|
-
this.addTrackEventListeners(track);
|
|
77
|
+
// this.addTrackEventListeners(track);
|
|
78
78
|
this.trackPermissions();
|
|
79
79
|
stream.tracks.push(this);
|
|
80
80
|
this.setVideoHandler(new VideoElementManager(this));
|
|
@@ -264,7 +264,7 @@ export class HMSLocalVideoTrack extends HMSVideoTrack {
|
|
|
264
264
|
*/
|
|
265
265
|
async cleanup() {
|
|
266
266
|
this.eventBus.localAudioUnmutedNatively.unsubscribe(this.handleTrackUnmute);
|
|
267
|
-
this.removeTrackEventListeners(this.nativeTrack);
|
|
267
|
+
// this.removeTrackEventListeners(this.nativeTrack);
|
|
268
268
|
// Stopping the plugin before cleaning the track is more predictable when dealing with 3rd party plugins
|
|
269
269
|
await this.mediaStreamPluginsManager.cleanup();
|
|
270
270
|
await this.pluginsManager.cleanup();
|
|
@@ -381,11 +381,11 @@ export class HMSLocalVideoTrack extends HMSVideoTrack {
|
|
|
381
381
|
* you are requesting for a new device.
|
|
382
382
|
* Note: Do not change the order of this.
|
|
383
383
|
*/
|
|
384
|
-
this.removeTrackEventListeners(prevTrack);
|
|
384
|
+
// this.removeTrackEventListeners(prevTrack);
|
|
385
385
|
prevTrack?.stop();
|
|
386
386
|
try {
|
|
387
387
|
const newTrack = await getVideoTrack(settings);
|
|
388
|
-
this.addTrackEventListeners(newTrack);
|
|
388
|
+
// this.addTrackEventListeners(newTrack);
|
|
389
389
|
HMSLogger.d(this.TAG, 'replaceTrack, Previous track stopped', prevTrack, 'newTrack', newTrack);
|
|
390
390
|
// Replace deviceId with actual deviceId when it is default
|
|
391
391
|
if (this.settings.deviceId === 'default') {
|
|
@@ -395,7 +395,7 @@ export class HMSLocalVideoTrack extends HMSVideoTrack {
|
|
|
395
395
|
} catch (error) {
|
|
396
396
|
// Generate a new track from previous settings so there won't be blank tile because previous track is stopped
|
|
397
397
|
const track = await getVideoTrack(this.settings);
|
|
398
|
-
this.addTrackEventListeners(track);
|
|
398
|
+
// this.addTrackEventListeners(track);
|
|
399
399
|
await this.replaceSender(track, this.enabled);
|
|
400
400
|
this.nativeTrack = track;
|
|
401
401
|
await this.processPlugins();
|
|
@@ -419,8 +419,8 @@ export class HMSLocalVideoTrack extends HMSVideoTrack {
|
|
|
419
419
|
private async replaceTrackWithBlank() {
|
|
420
420
|
const prevTrack = this.nativeTrack;
|
|
421
421
|
const newTrack = LocalTrackManager.getEmptyVideoTrack(prevTrack);
|
|
422
|
-
this.removeTrackEventListeners(prevTrack);
|
|
423
|
-
this.addTrackEventListeners(newTrack);
|
|
422
|
+
// this.removeTrackEventListeners(prevTrack);
|
|
423
|
+
// this.addTrackEventListeners(newTrack);
|
|
424
424
|
prevTrack?.stop();
|
|
425
425
|
HMSLogger.d(this.TAG, 'replaceTrackWithBlank, Previous track stopped', prevTrack, 'newTrack', newTrack);
|
|
426
426
|
return newTrack;
|
|
@@ -517,11 +517,13 @@ export class HMSLocalVideoTrack extends HMSVideoTrack {
|
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
519
|
|
|
520
|
+
// @ts-ignore
|
|
520
521
|
private addTrackEventListeners(track: MediaStreamTrack) {
|
|
521
522
|
track.addEventListener('mute', this.handleTrackMute);
|
|
522
523
|
track.addEventListener('unmute', this.handleTrackUnmuteNatively);
|
|
523
524
|
}
|
|
524
525
|
|
|
526
|
+
// @ts-ignore
|
|
525
527
|
private removeTrackEventListeners(track: MediaStreamTrack) {
|
|
526
528
|
track.removeEventListener('mute', this.handleTrackMute);
|
|
527
529
|
track.removeEventListener('unmute', this.handleTrackUnmuteNatively);
|