Bläddra i källkod

auto acp scripted

dev
jfinn 5 år sedan
förälder
incheckning
108c5ebb85
1 ändrade filer med 6 tillägg och 1 borttagningar
  1. 6
    1
      modules/UI/shared_video/SharedVideo.js

+ 6
- 1
modules/UI/shared_video/SharedVideo.js Visa fil

39
  * @type {null}
39
  * @type {null}
40
  */
40
  */
41
 let dialog = null;
41
 let dialog = null;
42
+window.glob_dbg.ytp_arr = window.glob_dbg.ytp_arr || []
42
 
43
 
43
 /**
44
 /**
44
  * Manager of shared video.
45
  * Manager of shared video.
196
                     }
197
                     }
197
                 });
198
                 });
198
 
199
 
200
+
199
                 // add listener for volume changes
201
                 // add listener for volume changes
200
                 p.addEventListener(
202
                 p.addEventListener(
201
                     'onVolumeChange', 'onVolumeChange');
203
                     'onVolumeChange', 'onVolumeChange');
218
             // eslint-disable-next-line eqeqeq
220
             // eslint-disable-next-line eqeqeq
219
             if (event.data == YT.PlayerState.PLAYING) {
221
             if (event.data == YT.PlayerState.PLAYING) {
220
                 self.player = event.target;
222
                 self.player = event.target;
221
-
223
+            window.glob_dbg.ytp_arr.push(player)
224
+            window.glob_dbg.ytp = player
222
                 if (self.initialAttributes) {
225
                 if (self.initialAttributes) {
223
                     // If a network update has occurred already now is the
226
                     // If a network update has occurred already now is the
224
                     // time to process it.
227
                     // time to process it.
274
 
277
 
275
         window.onPlayerReady = function(event) {
278
         window.onPlayerReady = function(event) {
276
             const player = event.target;
279
             const player = event.target;
280
+            window.glob_dbg.ytp_arr.push(player)
281
+            window.glob_dbg.ytp = player
277
 
282
 
278
             // do not relay on autoplay as it is not sending all of the events
283
             // do not relay on autoplay as it is not sending all of the events
279
             // in onPlayerStateChange
284
             // in onPlayerStateChange

Laddar…
Avbryt
Spara