Skip to content

Commit

Permalink
Update publish-alpha (#3167)
Browse files Browse the repository at this point in the history
Co-authored-by: Ravi theja <[email protected]>
Co-authored-by: Eswar Prasad Clinton. A <[email protected]>
Co-authored-by: Amar Bathwal <[email protected]>
  • Loading branch information
4 people authored Aug 9, 2024
1 parent 2a1e388 commit 42bd12c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/hms-video-store/src/transport/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { ErrorFactory } from '../error/ErrorFactory';
import { HMSAction } from '../error/HMSAction';
import { HMSException } from '../error/HMSException';
import { EventBus } from '../events/EventBus';
import { HMSICEServer, HMSRole, HMSUpdateListener } from '../interfaces';
import { HMSICEServer, HMSRole, HMSTrackUpdate, HMSUpdateListener } from '../interfaces';
import { HMSLocalStream } from '../media/streams/HMSLocalStream';
import { HMSLocalTrack, HMSLocalVideoTrack, HMSTrack } from '../media/tracks';
import { TrackState } from '../notification-manager';
Expand Down Expand Up @@ -532,6 +532,14 @@ export default class HMSTransport {
this.trackStates.set(originalTrackState.track_id, newTrackState);
HMSLogger.d(TAG, 'Track Update', this.trackStates, track);
this.signal.trackUpdate(new Map([[originalTrackState.track_id, newTrackState]]));
const peer = this.store.getLocalPeer();
if (peer) {
this.listener?.onTrackUpdate(
track.enabled ? HMSTrackUpdate.TRACK_UNMUTED : HMSTrackUpdate.TRACK_MUTED,
track,
peer,
);
}
}
}

Expand Down

0 comments on commit 42bd12c

Please sign in to comment.