repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 539053e0967b4e1f562db3bc0e60274aafaabd26:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 539053e0967b4e1f562db3bc0e60274aafaabd26
Author: James Baicoianu 
Date:   Fri Jun 26 08:28:09 2020 -0700

    player_enable / player_disable events

diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
index 61b01dd7a59a5f9ecb1f36451cd9c4c36c6975b9..
index ..2b7348928e042f2d135e198b45676186df218c90 100644
--- a/scripts/janusplayer.js
+++ b/scripts/janusplayer.js
@@ -148,10 +148,12 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt
     this.enable = function() {
       elation.engine.things.janusplayer.extendclass.enable.call(this);
       this.engine.systems.controls.activateContext('janusplayer');
+      this.dispatchEvent({type: 'player_enable'});
     }
     this.disable = function() {
       this.engine.systems.controls.deactivateContext('janusplayer');
       elation.engine.things.janusplayer.extendclass.disable.call(this);
+      this.dispatchEvent({type: 'player_disable'});
     }
     this.updateVRButton = function() {
       if (this.engine.client.view.vrdisplay) {

-----END OF PAGE-----