useScreenCapture
Use the Screen Capture (opens in a new tab) API to capture the screen, window, or browser tab.
Type Definitions
const useScreenCapture: (options?: DisplayMediaStreamOptions) => {
stream: MediaStream | null;
start: () => Promise<MediaStream>;
stop: () => void;
isPending: boolean;
};