Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface VideoElementResolutionMonitor

VideoElementResolutionMonitor monitors changes in the resolution of a video element and relays that information to observers.

Hierarchy

  • VideoElementResolutionMonitor

Implemented by

Index

Methods

bindVideoElement

  • bindVideoElement(newElement: HTMLVideoElement): void
  • Binds a new HTMLVideoElement for monitoring. If a video element is already bound, it is unbound and the new element is bound in its place. A null value just unbinds.

    Parameters

    • newElement: HTMLVideoElement

      The new HTMLVideoElement to be monitored, or null to unbind.

    Returns void

registerObserver

  • registerObserver(observer: VideoElementResolutionObserver): void
  • Registers an observer that will be notified when the resolution of the video element changes, or when the video element is unbound.

    Parameters

    • observer: VideoElementResolutionObserver

      An instance of VideoElementResolutionObserver that will receive update notifications.

    Returns void

removeObserver

  • removeObserver(observer: VideoElementResolutionObserver): void
  • Removes a previously registered observer, stopping it from receiving any further notifications.

    Parameters

    • observer: VideoElementResolutionObserver

      The observer to be removed from the notification queue.

    Returns void

Generated using TypeDoc