/* * Copyright (c) 2015-2018, IGN France. * Copyright (c) 2018-2026, Giro3D team. * SPDX-License-Identifier: MIT */ import { MathUtils, VideoTexture } from 'three'; import type CoordinateSystem from '../core/geographic/CoordinateSystem'; import type Extent from '../core/geographic/Extent'; import type { GetImageOptions, ImageResponse, ImageSourceEvents } from './ImageSource'; import EmptyTexture from '../renderer/EmptyTexture'; import { nonNull } from '../utils/tsutils'; import ImageSource, { ImageResult } from './ImageSource'; /** * Options for the {@link VideoSource} constructor. */ export interface VideoSourceOptions { /** * The source of the image. It can be: * - a URL to a remote video file, * - an `