getLockedAudioRepresentations
Description
Get the last audio Representations manually locked through the
lockAudioRepresentations method.
Returns null when no audio Representation is locked.
Without arguments, it returns the list of locked audio Representation for the
current Period. You can also
get the list for any Period by providing its id property as argument.
// example: getting Representations locked for the first Period
const periods = rxPlayer.getAvailablePeriods();
console.log(rxPlayer.getLockedAudioRepresentations(periods[0].id);
Syntax
// Get information about the locked audio Representation for the current Period
const lockedAudioRepresentations = player.getLockedAudioRepresentations();
// Get information about the locked audio Representation for a specific Period
const lockedAudioRepresentations = player.getLockedAudioRepresentations(periodId);
-
arguments:
- periodId
string|undefined: Theidof the Period for which you want to get its locked audio Representation. If not defined, the information associated to the currently-playing Period will be returned.
- periodId
-
return value:
Array.<string>|null: Last locked audio Representation for the corresponding Periodnullif no audio Representation is locked.