Module: videojs

video.js

Source:
video.js

Methods


<inner> videojs(id [, options] [, ready])

Doubles as the main function for users to create a player instance and also the main library object. The videojs function can be used to initialize or retrieve a player.

Parameters:
Name Type Argument Description
id string | Element

Video element or video element ID

options Object <optional>

Optional options object for config/settings

ready Component~ReadyCallback <optional>

Optional ready callback

Mixes In:
Source:
video.js
Returns:

A player instance

Type
Player