UNPKG

@jellyfish-dev/browser-media-utils

Version:

Facilitates the use of getUserMedia and enumerateDevices.

18 lines 705 B
import { DeviceReturnType } from "./types"; export type UseEnumerateDevices = { audio: DeviceReturnType | { type: "Loading"; }; video: DeviceReturnType | { type: "Loading"; }; }; /** * Hook that returns the list of available devices * * @param video - boolean or MediaTrackConstraints with configuration for video device * @param audio - boolean or MediaTrackConstraints with configuration for audio device * @returns object containing devices or loading state */ export declare const useEnumerateDevices: (video: boolean | MediaTrackConstraints, audio: boolean | MediaTrackConstraints) => UseEnumerateDevices | null; //# sourceMappingURL=useEnumerateDevices.d.ts.map