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

17 lines (14 loc) 611 B
import { HMSException } from './error'; import { DeviceMap } from '../interfaces'; export type { DeviceMap }; /** * Test fails when adding InputDeviceInfo[error TS2304: Cannot find name 'InputDeviceInfo'.] * InputDeviceInfo extends MediaDeviceInfo. See https://w3c.github.io/mediacapture-main/#input-specific-device-info * So, `selection?: MediaDeviceInfo` instead of `selection?: InputDeviceInfo | MediaDeviceInfo` is valid */ export interface HMSDeviceChangeEvent { error?: HMSException; devices?: DeviceMap; selection?: Partial<MediaDeviceInfo>; type: 'audioOutput' | 'audioInput' | 'video'; }