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:
    1. 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.

    2. options Object: Optional argument to configure how the content will be loaded.

      Can contain the following keys:

Page List