From b6688f557d9ec13f7c22e71771600a516cca02e0 Mon Sep 17 00:00:00 2001 From: David Karchmer Date: Sun, 22 Nov 2015 00:30:45 -0800 Subject: [PATCH] Build changes to broadcast name From ac-player-ready to ng-jwplayer-ready --- jwplayer.js | 2 +- jwplayer.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jwplayer.js b/jwplayer.js index fedf475..ff7d5d4 100644 --- a/jwplayer.js +++ b/jwplayer.js @@ -76,7 +76,7 @@ player.setup(scope.playerOptions); player.on('ready', function() { - $rootScope.$broadcast('av-player-ready'); + $rootScope.$broadcast('ng-jwplayer-ready'); }); diff --git a/jwplayer.min.js b/jwplayer.min.js index 237c0f4..fe46a13 100644 --- a/jwplayer.min.js +++ b/jwplayer.min.js @@ -2,4 +2,4 @@ /** * Created by David Karchmer on 9/11/15. */ -!function(){"use strict";angular.module("ng-jwplayer",[]).constant("jwplayer",jwplayer)}(),function(){"use strict";function e(e){this.existJWPlayer=function(){return angular.isDefined(this.myPlayer)&&null!==this.myPlayer},this.initJWPlayer=function(n){return n=n||"myPlayer1",this.existJWPlayer()&&(this.myPlayer.remove(),this.myPlayer=null),this.myPlayer=e(n),this.myPlayer},this.cleanUp=function(){this.existJWPlayer()&&(this.myPlayer.remove(),this.myPlayer=null)}}angular.module("ng-jwplayer").service("jwplayerService",e),e.$inject=["jwplayer"]}(),function(){"use strict";function e(e,n,r,i){var t,a=function(n,a){var l=n.playerId,y=function(e){return'
'};a.html(y(l)),e(a.contents())(n),t=i.initJWPlayer(l),t.setup(n.playerOptions),t.on("ready",function(){r.$broadcast("av-player-ready")})};return{restrict:"EC",scope:{playerId:"@",playerOptions:"="},link:function(e,r,t){e.$on("$destroy",function(){n.debug("jwplayer onDestroy"),i.cleanUp()}),e.$watch(function(){return t.ngSrc},function(i){n.debug("ng-src has changed: "+i),angular.isDefined(e.playerOptions)&&(e.playerOptions.file=i,a(e,r))}),angular.isDefined(t.ngSrc)&&angular.isDefined(e.playerOptions)&&(e.playerOptions.file=t.ngSrc,a(e,r))}}}angular.module("ng-jwplayer").directive("jwplayer",e),e.$inject=["$compile","$log","$rootScope","jwplayerService"]}(); \ No newline at end of file +!function(){"use strict";angular.module("ng-jwplayer",[]).constant("jwplayer",jwplayer)}(),function(){"use strict";function e(e){this.existJWPlayer=function(){return angular.isDefined(this.myPlayer)&&null!==this.myPlayer},this.initJWPlayer=function(n){return n=n||"myPlayer1",this.existJWPlayer()&&(this.myPlayer.remove(),this.myPlayer=null),this.myPlayer=e(n),this.myPlayer},this.cleanUp=function(){this.existJWPlayer()&&(this.myPlayer.remove(),this.myPlayer=null)}}angular.module("ng-jwplayer").service("jwplayerService",e),e.$inject=["jwplayer"]}(),function(){"use strict";function e(e,n,r,i){var t,a=function(n,a){var l=n.playerId,y=function(e){return'
'};a.html(y(l)),e(a.contents())(n),t=i.initJWPlayer(l),t.setup(n.playerOptions),t.on("ready",function(){r.$broadcast("ng-jwplayer-ready")})};return{restrict:"EC",scope:{playerId:"@",playerOptions:"="},link:function(e,r,t){e.$on("$destroy",function(){n.debug("jwplayer onDestroy"),i.cleanUp()}),e.$watch(function(){return t.ngSrc},function(i){n.debug("ng-src has changed: "+i),angular.isDefined(e.playerOptions)&&(e.playerOptions.file=i,a(e,r))}),angular.isDefined(t.ngSrc)&&angular.isDefined(e.playerOptions)&&(e.playerOptions.file=t.ngSrc,a(e,r))}}}angular.module("ng-jwplayer").directive("jwplayer",e),e.$inject=["$compile","$log","$rootScope","jwplayerService"]}(); \ No newline at end of file