ScreenVideoTexture
getDisplayMedia
export type ScreenVideoTextureProps = Omit<VideoTextureProps, 'src'> & {
options?: DisplayMediaStreamOptions
}
<ScreenVideoTexture>
{(texture) => <meshBasicMaterial map={texture} />}
or exposed via ref
:
const textureRef = useRef()
<ScreenVideoTexture ref={textureRef} />