Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
checkEnabled(onSuccess) {
let players = paella.player.videoContainer.streamProvider.videoPlayers;
let pluginData = paella.player.config.plugins.list["es.upv.paella.videoZoomToolbarPlugin"];
let playerIndex = pluginData.targetStreamIndex;
this.targetPlayer = players.length>playerIndex ? players[playerIndex] : null;
onSuccess(paella.player.config.player.videoZoom.enabled &&
this.targetPlayer &&
this.targetPlayer.allowZoom());
}