Skip to content

Commit

Permalink
Update publish-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 authored Feb 27, 2025
2 parents 32ddfde + c6835aa commit cc4ca13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/hms-video-store/src/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1388,16 +1388,17 @@ export class HMSSdk implements HMSInterface {
);
this.listener?.onError(error);
}
this.setLocalPeerTrack(track);
await this.setLocalPeerTrack(track);
this.listener?.onTrackUpdate(HMSTrackUpdate.TRACK_ADDED, track, this.localPeer!);
}
}

private setLocalPeerTrack(track: HMSLocalTrack) {
private async setLocalPeerTrack(track: HMSLocalTrack) {
track.peerId = this.localPeer?.peerId;
switch (track.type) {
case HMSTrackType.AUDIO:
this.localPeer!.audioTrack = track as HMSLocalAudioTrack;
await this.deviceManager.autoSelectAudioOutput();
break;

case HMSTrackType.VIDEO:
Expand Down

0 comments on commit cc4ca13

Please sign in to comment.