Controls a video adapter

Hierarchy (view full)

Constructors

Properties

viewer: Viewer
id: "video" = 'video'

Unique identifier of the plugin

readonlyOptions: string[] = ...
VERSION: string = PKG_VERSION

Expected version of the core DO NOT USE on custom plugins

Methods

  • Type Parameters

    • T extends
          | "progress"
          | "play-pause"
          | "volume-change"
          | "buffer"

      the name of event

    • E extends VideoPluginEvents & {
          type: T;
      }

      the class of the event

    Parameters

    • type:
          | "progress"
          | "play-pause"
          | "volume-change"
          | "buffer"
    • callback: EventListenerObject | ((e: E) => void)
    • Optionaloptions: boolean | EventListenerOptions

    Returns void