--- category: Sensors related: useUserMedia --- # useDisplayMedia Reactive [`mediaDevices.getDisplayMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia) streaming. ## Usage ```vue ``` ## Type Declarations ```ts export interface UseDisplayMediaOptions extends ConfigurableNavigator { /** * If the stream is enabled * @default false */ enabled?: MaybeRef /** * If the stream video media constraints */ video?: boolean | MediaTrackConstraints | undefined /** * If the stream audio media constraints */ audio?: boolean | MediaTrackConstraints | undefined } /** * Reactive `mediaDevices.getDisplayMedia` streaming * * @see https://vueuse.org/useDisplayMedia * @param options */ export declare function useDisplayMedia(options?: UseDisplayMediaOptions): { isSupported: ComputedRef stream: ShallowRef start: () => Promise stop: () => void enabled: | Ref | ShallowRef | WritableComputedRef | ShallowRef | ShallowRef } export type UseDisplayMediaReturn = ReturnType ```