소스 검색

auto acp scripted

dev
jfinn 5 년 전
부모
커밋
a337a5cb19
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6
    2
      modules/UI/shared_video/SharedVideo.js

+ 6
- 2
modules/UI/shared_video/SharedVideo.js 파일 보기

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

Loading…
취소
저장