Photo Sphere Viewer
    Preparing search index...

    Class VideoPlugin

    Controls a video adapter

    Hierarchy (View Summary)

    Index

    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: T
      • callback: EventListenerObject | ((e: E) => void)
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • 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