An ImageSource that displays a video.

Hierarchy (view full)

Constructors

Properties

containsFn: undefined | CustomContainsFn
datatype: TextureDataType

Gets the datatype of images generated by this source.

flipY: boolean

Gets whether images generated from this source should be flipped vertically.

isImageSource: boolean = ...
isMemoryUsage: true = ...

Readonly flag to indicate that his object implements MemoryUsage.

isVideoSource: true = ...
priority: RequestPriority = 'auto'
synchronous: boolean = false

If true, this source can immediately generate images without any delay.

transparent: boolean
type: "VideoSource" = ...

Accessors

  • get video(): null | HTMLVideoElement
  • Gets the <video> element that contains the video, or null if it is not loaded yet.

    Returns null | HTMLVideoElement

Methods

  • Returns an adjusted extent, width and height so that request pixels are aligned with source pixels, and requests do not oversample the source.

    Parameters

    • requestExtent: Extent

      The request extent.

    • requestWidth: number

      The width, in pixels, of the request extent.

    • requestHeight: number

      The height, in pixels, of the request extent.

    • margin: number = 0

      The margin, in pixels, around the initial extent.

    Returns null | GridExtent

    The adjusted parameters.

  • Gets whether this source contains the specified extent. If a custom contains function is provided, it will be used. Otherwise, intersects is used.

    This method is mainly used to discard non-relevant requests (i.e don't process regions that are not relevant to this source).

    Parameters

    • extent: Extent

      The extent to test.

    Returns boolean

  • Test the intersection between the specified extent and this source's extent. This method may be overriden to perform special logic.

    Parameters

    • extent: Extent

      The extent to test.

    Returns boolean

    true if the extent and this source extent intersects, false otherwise.