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

23 lines (22 loc) 899 B
export declare function getLocalStream(constraints: MediaStreamConstraints): Promise<MediaStream>; export declare function getLocalScreen(constraints: MediaStreamConstraints['video']): Promise<MediaStream>; interface MediaDeviceGroups { audioinput: MediaDeviceInfo[]; audiooutput: MediaDeviceInfo[]; videoinput: MediaDeviceInfo[]; } export declare function getLocalDevices(): Promise<MediaDeviceGroups>; export interface HMSAudioContext { audioContext: AudioContext | null; getAudioContext: () => AudioContext; resumeContext: () => Promise<void>; } export declare const HMSAudioContextHandler: HMSAudioContext; export declare enum HMSAudioDeviceCategory { SPEAKERPHONE = "SPEAKERPHONE", WIRED = "WIRED", BLUETOOTH = "BLUETOOTH", EARPIECE = "EARPIECE" } export declare const getAudioDeviceCategory: (deviceLabel?: string) => HMSAudioDeviceCategory; export {};