load method
Description
Load a content see the API documentation page on loading a content for more information.
Syntax
// Without options
player.load(url);
// With options
player.load(url, {
startingPosition: initialWantedPosition,
initialAudioTrack: [{ language: "de" }, { language: "fr" }],
});
- arguments:
-
url
string: Url to the top-level playlist of the content you want to play. That playlist can be either a Multivariant Playlist or a Media Playlist. -
options
Object: Optional argument to configure how the content will be loaded.Can contain the following keys:
startType(number|object|undefined): indicate a preferred starting position. See the documentation page on loading a content for more informationinitialAudioTrack(object|Array.<object>|undefined): indicate preferred characteristics for the initially selected audio track. See the documentation page on loading a content for more information.
-