r1792 - oipf/emulator/js/services
Author: ygrego Date: 2015-07-09 14:23:59 +0200 (Thu, 09 Jul 2015) New Revision: 1792 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1792 Log: Be able to receive event when the current channel change. Modified: oipf/emulator/js/services/VideoBroadcastService.js Modified: oipf/emulator/js/services/VideoBroadcastService.js =================================================================== --- oipf/emulator/js/services/VideoBroadcastService.js 2015-07-09 09:19:40 UTC (rev 1791) +++ oipf/emulator/js/services/VideoBroadcastService.js 2015-07-09 12:23:59 UTC (rev 1792) @@ -96,6 +96,9 @@ var deferred = $q.defer(); this.currentIndex = 0; + this.videoBroadcastObject.onPlayStateChange = + this.onChangeState.bind(this, deferred.resolve, deferred.reject); + this.previousState = this.videoBroadcastObject.playState; this.addTransition(this.previousState,
participants (1)
-
ygregoï¼ users.nuiton.org