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