Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(tracks) Log when the MediaStream becomes 'inactive'

Jaya Allamsetty51ba5d31aa25
diff --git a/react/features/base/tracks/actions.any.ts b/react/features/base/tracks/actions.any.ts
index 979a8f1c10..00aadc235b 100644
--- a/react/features/base/tracks/actions.any.ts
+++ b/react/features/base/tracks/actions.any.ts
@@ -421,12 +421,14 @@ export function trackAdded(track: any) {
}
track.on(JitsiTrackEvents.LOCAL_TRACK_STOPPED,
- () => dispatch({
- type: TRACK_STOPPED,
- track: {
- jitsiTrack: track
- }
- }));
+ () => {
+ logger.debug(`Local track stopped: ${track}, removing it from the conference`);
+ dispatch({
+ type: TRACK_STOPPED,
+ track: {
+ jitsiTrack: track
+ } });
+ });
} else {
participantId = track.getParticipantId();
isReceivingData = true;