VideoProvider

VideoProvider

This provider (singleton) controls the creation of the Vimeo video player instances and controls them.

Constructor

new VideoProvider()

Source:

Extends

  • EventTarget

Members

(private) autoResetProvider_ :AutoResetProvider

Description:
  • Reference to AutoResetProvider to monitor and control the automatic reset of the page when the user is inactive for a specified period of time.

Source:

Reference to AutoResetProvider to monitor and control the automatic reset of the page when the user is inactive for a specified period of time.

Type:

(private) players_ :Map.<string, Vimeo.Player>

Description:
  • List of Vimeo video player instances

Source:

List of Vimeo video player instances

Type:
  • Map.<string, Vimeo.Player>

videoIsPlaying

Description:
  • Getter

Source:

Getter

(private) videoIsPlaying_ :boolean

Description:
  • Defines whether a video is currently playing.

Source:

Defines whether a video is currently playing.

Type:
  • boolean

Methods

createPlayer(key, container, optionsopt) → {Vimeo.Player}

Description:
  • Creates a Vimeo video player instance and creates the necessary listeners to control the video.

Source:
Parameters:
Name Type Attributes Default Description
key string
container Element
options Object <optional>
null
Returns:
Type
Vimeo.Player

deletePlayer(key)

Description:
  • Destroys an instance from the list of Vimeo videos after the searched key

Source:
Parameters:
Name Type Description
key string

getPlayer(key) → {Vimeo.Player}

Description:
  • Returns an instance from the list of Vimeo videos after the searched list key

Source:
Parameters:
Name Type Description
key string
Returns:
Type
Vimeo.Player

pauseAllPlayers()

Description:
  • Pauses all videos

Source: