@livekit/components-core
Version:
This package is a wrapper around the [livekit/client-sdk-js](https://github.com/livekit/client-sdk-js) package. It transforms the event based logic into simple to use observable state and component level APIs. This package is the core for all framework sp
14 lines • 699 B
TypeScript
import { type LocalAudioTrack, type LocalVideoTrack, type Room } from 'livekit-client';
export type SetMediaDeviceOptions = {
/**
* If true, adds an `exact` constraint to the getUserMedia request.
* The request will fail if this option is true and the device specified is not actually available
*/
exact?: boolean;
};
export declare function setupDeviceSelector(kind: MediaDeviceKind, room: Room, localTrack?: LocalAudioTrack | LocalVideoTrack): {
className: string;
activeDeviceObservable: import("rxjs").Observable<string>;
setActiveMediaDevice: (id: string, options?: SetMediaDeviceOptions) => Promise<void>;
};
//# sourceMappingURL=mediaDeviceSelect.d.ts.map