overlay-play.min.js 634 B

1
  1. "use strict";angular.module("com.2fdevs.videogular.plugins.overlayplay",[]).directive("vgOverlayPlay",["VG_STATES",function(a){return{restrict:"E",require:"^videogular",template:"<div class='overlayPlayContainer' ng-click='onClickOverlayPlay()'><div class='iconButton' ng-class='overlayPlayIcon'></div></div>",link:function(b,c,d,e){function f(c){switch(c){case a.PLAY:b.overlayPlayIcon={};break;case a.PAUSE:b.overlayPlayIcon={play:!0};break;case a.STOP:b.overlayPlayIcon={play:!0}}}b.onClickOverlayPlay=function(){e.playPause()},b.overlayPlayIcon={play:!0},b.$watch(function(){return e.currentState},function(a,b){a!=b&&f(a)})}}}]);