Class: module:vLite/entrypoint

module:vLite/entrypoint(selector, options, callback)

new module:vLite/entrypoint(selector, options, callback)

Instanciate the constructor

Parameters:
Name Type Description
selector String | Object

CSS selector or query selector

options Object

Player options

callback function

Callback function executed when the player is ready

Source:

Methods

destroy()

Destroy the player instance

Source:

initPlayer()

Initialize the player (Youtube or HTML5)

Source:

loadYoutubeAPI()

Load the Youtube API

Source: