Skip to content

Commit

Permalink
Merge branch 'dev' into publish-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Feb 19, 2025
2 parents 5668288 + 3a5770b commit 88438c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
16 changes: 8 additions & 8 deletions packages/hms-video-store/src/media/tracks/HMSLocalAudioTrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,19 +404,19 @@ export class HMSLocalAudioTrack extends HMSAudioTrack {
);
await this.replaceTrackWith(settings);
const groupId = this.nativeTrack.getSettings().groupId;
this.eventBus.deviceChange.publish({
isUserSelection: !internal,
type: 'audioInput',
selection: {
deviceId: settings.deviceId,
groupId: groupId,
},
});
if (!internal && settings.deviceId) {
DeviceStorageManager.updateSelection('audioInput', {
deviceId: settings.deviceId,
groupId,
});
this.eventBus.deviceChange.publish({
isUserSelection: true,
type: 'audioInput',
selection: {
deviceId: settings.deviceId,
groupId: groupId,
},
});
}
}
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import React, { Fragment, useEffect, useRef, useState } from 'react';
import { useMedia } from 'react-use';
import React, { Fragment, useRef, useState } from 'react';
import {
DeviceType,
selectIsLocalVideoEnabled,
selectLocalVideoTrackID,
selectVideoTrackByID,
useDevices,
useHMSActions,
useHMSStore,
} from '@100mslive/react-sdk';
import { MicOnIcon, SpeakerIcon, VideoOnIcon } from '@100mslive/react-icons';
import { Box, Button, Dropdown, Flex, StyledVideoTile, Text, Video } from '../../../';
import { config as cssConfig } from '../../../Theme';
import { DialogDropdownTrigger } from '../../primitives/DropdownTrigger';
import { useUISettings } from '../AppData/useUISettings';
import { useAudioOutputTest } from '../hooks/useAudioOutputTest';
Expand All @@ -34,15 +31,7 @@ const Settings = ({ setHide }) => {
const shouldShowAudioOutput = 'setSinkId' in HTMLMediaElement.prototype;
const mirrorLocalVideo = useUISettings(UI_SETTINGS.mirrorLocalVideo);
const trackSelector = selectVideoTrackByID(videoTrackId);
const hmsActions = useHMSActions();
const track = useHMSStore(trackSelector);
const isMobile = useMedia(cssConfig.media.md);

useEffect(() => {
if (isMobile) {
hmsActions.refreshDevices();
}
}, [hmsActions, isMobile]);

/**
* Chromium browsers return an audioOutput with empty label when no permissions are given
Expand Down

0 comments on commit 88438c0

Please sign in to comment.