Skip to content

loadVideoTexture() ​

ts
function loadVideoTexture(
  src: string,
  params?: LoadVideoParams,
): ImageTextureParams<HTMLVideoElement>;

Loads a video from a URL and returns ImageTextureParams.

Parameters ​

src ​

string

URL of the video.

params? ​

LoadVideoParams

Additional video loading options.

Returns ​

ImageTextureParams<HTMLVideoElement>

Released under the MIT License.