UNPKG

@100mslive/hms-video-store

Version:

@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow

29 lines (28 loc) 1.46 kB
import { HMSAudioMode } from './track-settings'; export default interface InitialSettings { isAudioMuted?: boolean; isVideoMuted?: boolean; audioInputDeviceId?: string; audioOutputDeviceId?: string; videoDeviceId?: string; audioMode?: HMSAudioMode; /** * When a peer joins the room for the first time or when a device change happens, * after selecting the mic for audio input, we try to find the matching output device * for selecting the speaker(on browsers where speaker selection is possible). * * For example: if the headset mic is selected, the headset speaker will also be selected, * if the laptop default mix is selected, the corresponding laptop speaker will be selected. * * This is useful because if a non-matching pair is selected, it might lead to an echo in the room. * * This field can be used to override the above behavior, * and always go for the default device selection as given by the browser. * * There are two ways to use this, you can pass in 'all' which will disable the above behaviour for all devices. * Or you can pass in an array of labels which will be string matched to disable the behavior for specific devices. * * For example: ["Yeti Stereo Microphone"], as Yeti shows up often in audio output even when no device is plugged into its headphone jack. */ speakerAutoSelectionBlacklist?: 'all' | string[]; }