getCurrentAdaptations

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

Description

Returns the Adaptations 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 Adaptation Objects.

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

null if the current Adaptations are not known yet.

null in DirectFile mode (see loadVideo options).

Syntax

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