getLockedVideoRepresentations
Description
Get the last video Representations manually locked through the
lockVideoRepresentations
method.
Returns null
when no video Representation is locked.
Without arguments, it returns the list of locked video 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.getLockedVideoRepresentations(periods[0].id);
Syntax
// Get information about the locked video Representation for the current Period
const lockedVideoRepresentations = player.getLockedVideoRepresentations();
// Get information about the locked video Representation for a specific Period
const lockedVideoRepresentations = player.getLockedVideoRepresentations(periodId);
-
arguments:
- periodId
string|undefined
: Theid
of the Period for which you want to get its locked video Representation. If not defined, the information associated to the currently-playing Period will be returned.
- periodId
-
return value:
Array.<string>|null
: Last locked video Representation for the corresponding Periodnull
if no video Representation is locked.