File: screen-video-texture.md | Updated: 11/15/2025
<Intro>Create a video texture from getDisplayMedia</Intro>
export type ScreenVideoTextureProps = Omit<VideoTextureProps, 'src'> & {
options?: DisplayMediaStreamOptions
}
<ScreenVideoTexture>
{(texture) => <meshBasicMaterial map={texture} />}
or exposed via ref:
const textureRef = useRef()
<ScreenVideoTexture ref={textureRef} />