getCurrentRepresentations

This option is deprecated, it will disappear in the next major release `v4.0.0` (see Deprecated APIs).

Description

Returns the Representations being loaded per type if a Manifest is loaded. The returned object will have at most a key for each type (“video”, “audio”, “text” and “image”) which will each contain an array of Representation Objects.

The Representation object structure is relatively complex and is described in the Manifest Object structure page.

null if the current Representations are not known yet.

null in DirectFile mode (see loadVideo options).

Syntax

const representations = player.getCurrentRepresentations();
  • return value Object|null: The current Representation objects, per type. null if not known.
Page List