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 |
Methods
destroy()
Destroy the player instance
initPlayer()
Initialize the player (Youtube or HTML5)
loadYoutubeAPI()
Load the Youtube API