export interface UseUserMediaOptions {
/**
* Callback when MediaStream is ready
*/
onStart?: (stream: MediaStream) => void
/**
* Callback when MediaStream is stopped
*/
onStop?(): void
/**
* Recreate stream when deviceIds or constraints changed
*
* @defaultValue true
*/
autoSwitch?: boolean
/**
* MediaStreamConstraints to be applied to the requested MediaStream
* If provided, the constraints will override videoDeviceId and audioDeviceId
*
* @defaultValue {}
*/
constraints?: MediaStreamConstraints
}