📄 drei/loaders/screen-video-texture

File: screen-video-texture.md | Updated: 11/15/2025


title: ScreenVideoTexture sourcecode: src/web/ScreenVideoTexture.tsx

<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} />