Sfoglia il codice sorgente

auto acp scripted

dev
jfinn 5 anni fa
parent
commit
a337a5cb19
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 6
    2
      modules/UI/shared_video/SharedVideo.js

+ 6
- 2
modules/UI/shared_video/SharedVideo.js Vedi File

178
             window.onYouTubeIframeAPIReady();
178
             window.onYouTubeIframeAPIReady();
179
         } else {
179
         } else {
180
             window.onYouTubeIframeAPIReady = function() {
180
             window.onYouTubeIframeAPIReady = function() {
181
-                clog("svm onYouTubeIframeAPIReady")
182
-                window.svm_win ? window.svm_win.svm({that:this,self,args:arguments}) : 0
181
+                window.svm_win ? window.svm_win.svm({that:this,self,args:arguments,fn_name:"onYouTubeIframeAPIReady"}) : 0
183
                 self.isPlayerAPILoaded = true;
182
                 self.isPlayerAPILoaded = true;
184
                 const showControls
183
                 const showControls
185
                     = APP.conference.isLocalId(self.from) ? 1 : 0;
184
                     = APP.conference.isLocalId(self.from) ? 1 : 0;
221
          * @param event the event notifying us of the change
220
          * @param event the event notifying us of the change
222
          */
221
          */
223
         window.onPlayerStateChange = function(event) {
222
         window.onPlayerStateChange = function(event) {
223
+            window.svm_win ? window.svm_win.svm({that:this,self,args:arguments,fn_name:"onPlayerStateChange"}) : 0
224
             // eslint-disable-next-line eqeqeq
224
             // eslint-disable-next-line eqeqeq
225
             if (event.data == YT.PlayerState.PLAYING) {
225
             if (event.data == YT.PlayerState.PLAYING) {
226
                 self.player = event.target;
226
                 self.player = event.target;
251
          * @param event
251
          * @param event
252
          */
252
          */
253
         window.onVideoProgress = function(event) {
253
         window.onVideoProgress = function(event) {
254
+            window.svm_win ? window.svm_win.svm({that:this,self,args:arguments,fn_name:"onVideoProgress"}) : 0
254
             const state = event.target.getPlayerState();
255
             const state = event.target.getPlayerState();
255
 
256
 
256
             // eslint-disable-next-line eqeqeq
257
             // eslint-disable-next-line eqeqeq
264
          * @param event
265
          * @param event
265
          */
266
          */
266
         window.onVolumeChange = function(event) {
267
         window.onVolumeChange = function(event) {
268
+            window.svm_win ? window.svm_win.svm({that:this,self,args:arguments,fn_name:"onVolumeChange"}) : 0
267
             self.fireSharedVideoEvent();
269
             self.fireSharedVideoEvent();
268
 
270
 
269
             // let's check, if player is not muted lets mute locally
271
             // let's check, if player is not muted lets mute locally
281
         };
283
         };
282
 
284
 
283
         window.onPlayerReady = function(event) {
285
         window.onPlayerReady = function(event) {
286
+            window.svm_win ? window.svm_win.svm({that:this,self,args:arguments,fn_name:"onPlayerReady"}) : 0
284
             const player = event.target;
287
             const player = event.target;
285
             window.glob_dbg.ytp_arr.push(player)
288
             window.glob_dbg.ytp_arr.push(player)
286
             window.glob_dbg.opr_arr.push(player)
289
             window.glob_dbg.opr_arr.push(player)
331
         };
334
         };
332
 
335
 
333
         window.onPlayerError = function(event) {
336
         window.onPlayerError = function(event) {
337
+            window.svm_win ? window.svm_win.svm({that:this,self,args:arguments,fn_name:"onPlayerError"}) : 0
334
             logger.error('Error in the player:', event.data);
338
             logger.error('Error in the player:', event.data);
335
 
339
 
336
             // store the error player, so we can remove it
340
             // store the error player, so we can remove it

Loading…
Annulla
Salva