mirror of
https://github.com/videojs/video.js.git
synced 2024-12-16 11:37:29 +02:00
3.8 KiB
3.8 KiB
vjs
DEFINED IN: src/js/core.js#L26
Doubles as the main function for users to create a player instance and also the main library object.
ALIASES videojs, V (deprecated)
The vjs
function can be used to initialize or retrieve a player.
var myPlayer = vjs('my_video_id');
INDEX
-
CLASSES
- BigPlayButton
- Button
- CaptionsButton
- CaptionsTrack
- ChaptersButton
- ChaptersTrack
- ChaptersTrackMenuItem
- Component
- ControlBar
- CoreObject
- CurrentTimeDisplay
- DurationDisplay
- ErrorDisplay
- Flash
- FullscreenToggle
- Html5
- LiveDisplay
- LoadProgressBar
- LoadingSpinner
- MediaError
- MediaLoader
- MediaTechController
- Menu
- MenuButton
- MenuItem
- MuteToggle
- OffTextTrackMenuItem
- PlayProgressBar
- PlayToggle
- PlaybackRateMenuButton
- PlaybackRateMenuItem
- Player
- PosterImage
- ProgressControl
- RemainingTimeDisplay
- SeekBar
- SeekHandle
- Slider
- SliderHandle
- SubtitlesButton
- SubtitlesTrack
- TextTrack
- TextTrackButton
- TextTrackDisplay
- TextTrackMenuItem
- TimeDivider
- VolumeBar
- VolumeControl
- VolumeHandle
- VolumeLevel
- VolumeMenuButton
-
NAMESPACES
PROPERTIES
options
Global Player instance options, surfaced from vjs.Player.prototype.options_ vjs.options = vjs.Player.prototype.options_ All options should use string keys so they avoid renaming by closure compiler
defined in: src/js/core.js#L77
players
Global player list
defined in: src/js/core.js#L121
METHODS
parseUrl( url )
Resolve and parse the elements of a URL
PARAMETERS:
- url
String
The url to parse
RETURNS:
Object
An object of url details
defined in: src/js/lib.js#L696
plugin( name, init )
the method for registering a video.js plugin
PARAMETERS:
- name
String
The name of the plugin - init
Function
The function that is run when the player inits
defined in: src/js/plugins.js#L7