Constructor
new InlinePlayer(element, options)
Parameters:
Name | Type | Description |
---|---|---|
element |
HTMLMediaElement | |
options |
videojs.Options | for the video.js player |
- Source:
Members
(static) audioConfig :videojs.Options
videoJS player options specific to audio playback These options are merged into the final config for the player during initialize().
videoJS player options specific to audio playback These options are merged into the final config for the player during initialize()
Type:
- Source:
(static) globalConfig :videojs.Options
videoJS player options shared by all uses These options are merged into the final config for the player during initialize().
videoJS player options shared by all uses These options are merged into the final config for the player during initialize()
Type:
- Source:
(static) html5techOpt :Object
videoJS options for the videojs Html5 Tech plugin. These options are merged into the final config for the player during initialize()
Text tracks are not preloaded because we may have a large number of subtitles which never get used, and it's expensive to load them all.
More consistent subtitle rendering is available due to disabling native text tracks.
Disabling native audio tracks avoids accidentally exposing the Opus audio tracks in HTTP Live Streaming playlists on Safari, which can't actually play them and breaks things if you switch to them
Type:
- Object
- Source:
(static) videoConfig :videojs.Options
videoJS player options specific to videos These options are merged into the final config for the player during initialize().
videoJS player options specific to videos These options are merged into the final config for the player during initialize()
Type:
- Source:
Methods
extractResolutions() → {Array.<number>}
Extract the list of resolutions from the HTMLSourceElements contained within the HTMLMediaElement.
Extract the list of resolutions from the HTMLSourceElements contained within the HTMLMediaElement.
Also sets translated labels and the extracted res as attributes 'label' and 'res' on the HTMLSourceElements, for use by the resolution switcher plugin
- Source:
Returns:
- Type
- Array.<number>
infuse() → {JQueryPromise.<videojs.Player>}
Takes the HTMLMediaElement of the InlinePlayer and infuses it with JS (videoJS) to enrich the element.
Takes the HTMLMediaElement of the InlinePlayer and infuses it with JS (videoJS) to enrich the element.
- Source:
Returns:
- Type
- JQueryPromise.<videojs.Player>
selectDefaultTrack()
Select a default text track to enable based on user language with fallback to content language.
Select a default text track to enable based on user language with fallback to content language
- Source: