Skip to content

Commit

Permalink
fix: remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Mar 8, 2024
1 parent 6bdce61 commit 4af7cbc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/hms-video-store/src/device-manager/DeviceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,8 @@ export class DeviceManager implements HMSDeviceManager {
await this.enumerateDevices();
this.logDevices('After Device Change');
const localPeer = this.store.getLocalPeer();
const audioTrack = localPeer?.audioTrack;
await this.setOutputDevice(true);
if (audioTrack) {
await this.handleAudioInputDeviceChange(localPeer?.audioTrack);
}
await this.handleAudioInputDeviceChange(localPeer?.audioTrack);
await this.handleVideoInputDeviceChange(localPeer?.videoTrack);
this.eventBus.analytics.publish(
AnalyticsEventFactory.deviceChange({
Expand Down

0 comments on commit 4af7cbc

Please sign in to comment.