import type { ImageOverlayOptions } from './ImageOverlay.js'; import type { MaplairEvent } from '../core/Events.js'; /** @import {ImageOverlayOptions} from './ImageOverlay.js' */ /** @import {LatLngBoundsExpression} from '../geo/LatLngBounds.js' */ /** @import {MaplairEvent} from '../core/Events.js' */ /** * Options of `VideoOverlay`. * @typedef {object} VideoOverlayOptions * @property {boolean} [autoplay=true] Whether the video starts playing automatically * when loaded. On some browsers autoplay will only work with `muted: true`. If the user * prefers [reduced motion](https://developer.mozilla.org/docs/Web/CSS/@media/prefers-reduced-motion), * the video doesn't start by itself, but shows its controls to start it. * @property {boolean} [controls=false] Whether the browser will offer controls to * allow the user to control video playback, including volume, seeking, and * pause/resume playback. * @property {boolean} [loop=true] Whether the video will loop back to the beginning * when played. * @property {boolean} [keepAspectRatio=true] Whether the video will save aspect ratio * after the projection. * @property {boolean} [muted=false] Whether the video starts on mute when loaded. * @property {boolean} [playsInline=true] Mobile browsers will play the video right * where it is instead of open it up in fullscreen mode. * @extends ImageOverlayOptions */ /** * Used to load and display a video player over specific bounds of the map. Extends * `ImageOverlay`. * * A video overlay uses the [`