@gcorevideo/player 2.25.8 → 2.25.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.js +1 -1
- package/dist/index.css +415 -415
- package/dist/index.embed.js +3 -3
- package/dist/index.js +4 -5
- package/lib/plugins/subtitles/ClosedCaptions.d.ts +1 -1
- package/lib/plugins/subtitles/ClosedCaptions.d.ts.map +1 -1
- package/lib/plugins/subtitles/ClosedCaptions.js +3 -4
- package/package.json +1 -1
- package/src/plugins/subtitles/ClosedCaptions.ts +7 -4
- package/src/plugins/subtitles/__tests__/ClosedCaptions.test.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/index.embed.js
CHANGED
|
@@ -50292,7 +50292,6 @@ class ClosedCaptions extends UICorePlugin {
|
|
|
50292
50292
|
*/
|
|
50293
50293
|
bindEvents() {
|
|
50294
50294
|
this.listenTo(this.core, Events$1.CORE_READY, this.onCoreReady);
|
|
50295
|
-
this.listenTo(this.core, Events$1.CORE_RESIZE, this.playerResize);
|
|
50296
50295
|
this.listenTo(this.core, Events$1.CORE_ACTIVE_CONTAINER_CHANGED, this.onContainerChanged);
|
|
50297
50296
|
}
|
|
50298
50297
|
onCoreReady() {
|
|
@@ -50309,7 +50308,8 @@ class ClosedCaptions extends UICorePlugin {
|
|
|
50309
50308
|
});
|
|
50310
50309
|
}
|
|
50311
50310
|
onContainerChanged() {
|
|
50312
|
-
this.listenTo(this.core.activeContainer, Events$1.CONTAINER_FULLSCREEN, this.
|
|
50311
|
+
this.listenTo(this.core.activeContainer, Events$1.CONTAINER_FULLSCREEN, this.onContainerResize);
|
|
50312
|
+
this.listenTo(this.core.activeContainer, Events$1.CONTAINER_RESIZE, this.onContainerResize);
|
|
50313
50313
|
this.listenTo(this.core.activeContainer, 'container:advertisement:start', this.onStartAd);
|
|
50314
50314
|
this.listenTo(this.core.activePlayback, Events$1.PLAYBACK_SUBTITLE_AVAILABLE, this.onSubtitleAvailable);
|
|
50315
50315
|
this.listenTo(this.core.activePlayback, Events$1.PLAYBACK_SUBTITLE_CHANGED, this.onSubtitleChanged);
|
|
@@ -50382,7 +50382,7 @@ class ClosedCaptions extends UICorePlugin {
|
|
|
50382
50382
|
this.show();
|
|
50383
50383
|
this.stopListening(this.core.activeContainer, 'container:advertisement:finish', this.onFinishAd);
|
|
50384
50384
|
}
|
|
50385
|
-
|
|
50385
|
+
onContainerResize() {
|
|
50386
50386
|
const shouldShow = this.core.activeContainer &&
|
|
50387
50387
|
isFullscreen(this.core.activeContainer.el) &&
|
|
50388
50388
|
this.track &&
|
package/dist/index.js
CHANGED
|
@@ -43314,7 +43314,7 @@ class Player {
|
|
|
43314
43314
|
}
|
|
43315
43315
|
}
|
|
43316
43316
|
|
|
43317
|
-
var version$1 = "2.25.
|
|
43317
|
+
var version$1 = "2.25.9";
|
|
43318
43318
|
|
|
43319
43319
|
var packages = {
|
|
43320
43320
|
"node_modules/@clappr/core": {
|
|
@@ -51720,7 +51720,6 @@ class ClosedCaptions extends UICorePlugin {
|
|
|
51720
51720
|
*/
|
|
51721
51721
|
bindEvents() {
|
|
51722
51722
|
this.listenTo(this.core, Events$1.CORE_READY, this.onCoreReady);
|
|
51723
|
-
this.listenTo(this.core, Events$1.CORE_RESIZE, this.playerResize);
|
|
51724
51723
|
this.listenTo(this.core, Events$1.CORE_ACTIVE_CONTAINER_CHANGED, this.onContainerChanged);
|
|
51725
51724
|
}
|
|
51726
51725
|
onCoreReady() {
|
|
@@ -51737,7 +51736,8 @@ class ClosedCaptions extends UICorePlugin {
|
|
|
51737
51736
|
});
|
|
51738
51737
|
}
|
|
51739
51738
|
onContainerChanged() {
|
|
51740
|
-
this.listenTo(this.core.activeContainer, Events$1.CONTAINER_FULLSCREEN, this.
|
|
51739
|
+
this.listenTo(this.core.activeContainer, Events$1.CONTAINER_FULLSCREEN, this.onContainerResize);
|
|
51740
|
+
this.listenTo(this.core.activeContainer, Events$1.CONTAINER_RESIZE, this.onContainerResize);
|
|
51741
51741
|
this.listenTo(this.core.activeContainer, 'container:advertisement:start', this.onStartAd);
|
|
51742
51742
|
this.listenTo(this.core.activePlayback, Events$1.PLAYBACK_SUBTITLE_AVAILABLE, this.onSubtitleAvailable);
|
|
51743
51743
|
this.listenTo(this.core.activePlayback, Events$1.PLAYBACK_SUBTITLE_CHANGED, this.onSubtitleChanged);
|
|
@@ -51814,8 +51814,7 @@ class ClosedCaptions extends UICorePlugin {
|
|
|
51814
51814
|
this.show();
|
|
51815
51815
|
this.stopListening(this.core.activeContainer, 'container:advertisement:finish', this.onFinishAd);
|
|
51816
51816
|
}
|
|
51817
|
-
|
|
51818
|
-
trace(`${T$3} playerResize`);
|
|
51817
|
+
onContainerResize() {
|
|
51819
51818
|
const shouldShow = this.core.activeContainer &&
|
|
51820
51819
|
isFullscreen(this.core.activeContainer.el) &&
|
|
51821
51820
|
this.track &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClosedCaptions.d.ts","sourceRoot":"","sources":["../../../src/plugins/subtitles/ClosedCaptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,YAAY,EAAwB,MAAM,cAAc,CAAA;AAOzE,OAAO,sCAAsC,CAAA;AAgB7C;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAC9C,OAAO,CAAC,oBAAoB,CAAQ;IAEpC,OAAO,CAAC,MAAM,CAAQ;IAEtB,OAAO,CAAC,IAAI,CAAQ;IAEpB,OAAO,CAAC,KAAK,CAA6B;IAE1C,OAAO,CAAC,MAAM,CAAsB;IAEpC,OAAO,CAAC,KAAK,CAA2B;IAExC;;OAEG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,gBAAgB;;MAEnB;IAED;;OAEG;IACH,MAA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AC,kBAAkB;IAgD1B,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,iBAAiB;IA+BzB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,SAAS;IAWjB,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,iBAAiB;IAqBzB;;OAEG;IACH,IAAI;IAcJ;;OAEG;IACH,IAAI;IAiBJ,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,UAAU;IAUlB;;OAEG;IACM,MAAM;IA4Bf,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,yBAAyB;IAgBjC,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,UAAU;IAalB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,eAAe;IAiBvB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,yBAAyB;IAiBjC,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,KAAK;CAMd"}
|
|
@@ -93,7 +93,6 @@ export class ClosedCaptions extends UICorePlugin {
|
|
|
93
93
|
*/
|
|
94
94
|
bindEvents() {
|
|
95
95
|
this.listenTo(this.core, Events.CORE_READY, this.onCoreReady);
|
|
96
|
-
this.listenTo(this.core, Events.CORE_RESIZE, this.playerResize);
|
|
97
96
|
this.listenTo(this.core, Events.CORE_ACTIVE_CONTAINER_CHANGED, this.onContainerChanged);
|
|
98
97
|
}
|
|
99
98
|
onCoreReady() {
|
|
@@ -110,7 +109,8 @@ export class ClosedCaptions extends UICorePlugin {
|
|
|
110
109
|
});
|
|
111
110
|
}
|
|
112
111
|
onContainerChanged() {
|
|
113
|
-
this.listenTo(this.core.activeContainer, Events.CONTAINER_FULLSCREEN, this.
|
|
112
|
+
this.listenTo(this.core.activeContainer, Events.CONTAINER_FULLSCREEN, this.onContainerResize);
|
|
113
|
+
this.listenTo(this.core.activeContainer, Events.CONTAINER_RESIZE, this.onContainerResize);
|
|
114
114
|
this.listenTo(this.core.activeContainer, 'container:advertisement:start', this.onStartAd);
|
|
115
115
|
this.listenTo(this.core.activePlayback, Events.PLAYBACK_SUBTITLE_AVAILABLE, this.onSubtitleAvailable);
|
|
116
116
|
this.listenTo(this.core.activePlayback, Events.PLAYBACK_SUBTITLE_CHANGED, this.onSubtitleChanged);
|
|
@@ -187,8 +187,7 @@ export class ClosedCaptions extends UICorePlugin {
|
|
|
187
187
|
this.show();
|
|
188
188
|
this.stopListening(this.core.activeContainer, 'container:advertisement:finish', this.onFinishAd);
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
trace(`${T} playerResize`);
|
|
190
|
+
onContainerResize() {
|
|
192
191
|
const shouldShow = this.core.activeContainer &&
|
|
193
192
|
isFullscreen(this.core.activeContainer.el) &&
|
|
194
193
|
this.track &&
|
package/package.json
CHANGED
|
@@ -129,7 +129,6 @@ export class ClosedCaptions extends UICorePlugin {
|
|
|
129
129
|
*/
|
|
130
130
|
override bindEvents() {
|
|
131
131
|
this.listenTo(this.core, Events.CORE_READY, this.onCoreReady)
|
|
132
|
-
this.listenTo(this.core, Events.CORE_RESIZE, this.playerResize)
|
|
133
132
|
this.listenTo(
|
|
134
133
|
this.core,
|
|
135
134
|
Events.CORE_ACTIVE_CONTAINER_CHANGED,
|
|
@@ -159,7 +158,12 @@ export class ClosedCaptions extends UICorePlugin {
|
|
|
159
158
|
this.listenTo(
|
|
160
159
|
this.core.activeContainer,
|
|
161
160
|
Events.CONTAINER_FULLSCREEN,
|
|
162
|
-
this.
|
|
161
|
+
this.onContainerResize,
|
|
162
|
+
)
|
|
163
|
+
this.listenTo(
|
|
164
|
+
this.core.activeContainer,
|
|
165
|
+
Events.CONTAINER_RESIZE,
|
|
166
|
+
this.onContainerResize,
|
|
163
167
|
)
|
|
164
168
|
this.listenTo(
|
|
165
169
|
this.core.activeContainer,
|
|
@@ -265,8 +269,7 @@ export class ClosedCaptions extends UICorePlugin {
|
|
|
265
269
|
)
|
|
266
270
|
}
|
|
267
271
|
|
|
268
|
-
private
|
|
269
|
-
trace(`${T} playerResize`)
|
|
272
|
+
private onContainerResize() {
|
|
270
273
|
const shouldShow =
|
|
271
274
|
this.core.activeContainer &&
|
|
272
275
|
isFullscreen(this.core.activeContainer.el) &&
|
|
@@ -61,7 +61,7 @@ describe('ClosedCaptions', () => {
|
|
|
61
61
|
width: 320,
|
|
62
62
|
height: 260,
|
|
63
63
|
})
|
|
64
|
-
core.emit(Events.CORE_RESIZE, { width: 320, height: 260 })
|
|
64
|
+
// core.emit(Events.CORE_RESIZE, { width: 320, height: 260 })
|
|
65
65
|
})
|
|
66
66
|
it('should clamp popup height', () => {
|
|
67
67
|
expect(cc.$el.find('#gplayer-cc-menu').css('max-height')).toBe('197px')
|