How to use the es.upv.paella.videoZoomToolbarPlugin function in es

To help you get started, we’ve selected a few es examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github polimediaupv / paella / plugins / es.upv.paella.videoZoom / video_zoom.js View on Github external
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());
    
        }