@gcorevideo/player 2.22.5 → 2.22.8
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/assets/media-control/media-control.ejs +1 -2
- package/dist/core.js +7 -2
- package/dist/index.css +881 -881
- package/dist/index.js +132 -91
- package/dist/plugins/index.css +418 -418
- package/dist/plugins/index.js +123 -86
- package/lib/playback/dash-playback/DashPlayback.d.ts.map +1 -1
- package/lib/playback/dash-playback/DashPlayback.js +6 -1
- package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
- package/lib/plugins/bottom-gear/BottomGear.js +2 -2
- package/lib/plugins/media-control/MediaControl.d.ts +37 -6
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.js +54 -36
- package/lib/plugins/playback-rate/PlaybackRate.d.ts +5 -4
- package/lib/plugins/playback-rate/PlaybackRate.d.ts.map +1 -1
- package/lib/plugins/playback-rate/PlaybackRate.js +46 -24
- package/lib/plugins/subtitles/ClosedCaptions.js +1 -1
- package/lib/plugins/utils/fullscreen.d.ts +4 -0
- package/lib/plugins/utils/fullscreen.d.ts.map +1 -0
- package/lib/plugins/utils/fullscreen.js +30 -0
- package/lib/plugins/utils.d.ts +0 -1
- package/lib/plugins/utils.d.ts.map +1 -1
- package/lib/plugins/utils.js +0 -28
- package/lib/utils/fullscreen.d.ts +3 -0
- package/lib/utils/fullscreen.d.ts.map +1 -0
- package/lib/utils/fullscreen.js +2 -0
- package/package.json +1 -1
- package/src/playback/dash-playback/DashPlayback.ts +6 -4
- package/src/plugins/bottom-gear/BottomGear.ts +2 -2
- package/src/plugins/bottom-gear/__tests__/BottomGear.test.ts +15 -3
- package/src/plugins/media-control/MediaControl.ts +111 -62
- package/src/plugins/media-control/__tests__/MediaControl.test.ts +118 -8
- package/src/plugins/media-control/__tests__/__snapshots__/MediaControl.test.ts.snap +149 -5
- package/src/plugins/playback-rate/PlaybackRate.ts +48 -26
- package/src/plugins/playback-rate/__tests__/PlaybackRate.test.ts +125 -55
- package/src/plugins/playback-rate/__tests__/__snapshots__/PlaybackRate.test.ts.snap +1 -1
- package/src/plugins/subtitles/ClosedCaptions.ts +1 -1
- package/src/plugins/utils/fullscreen.ts +34 -0
- package/src/plugins/utils.ts +0 -31
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
<div class="media-control-multicamera" data-<%= name %>></div>
|
|
47
47
|
<% }; %>
|
|
48
48
|
<% var renderClipsText = function(name) { %>
|
|
49
|
-
|
|
50
49
|
<div class="media-clip-container gcore-skin-text-color" data-<%= name %>>
|
|
51
50
|
<div class="media-clip-point gcore-skin-text-color" data-<%= name %>>•</div>
|
|
52
51
|
<div class="media-clip-text gcore-skin-text-color" data-<%= name %>></div>
|
|
@@ -57,7 +56,7 @@
|
|
|
57
56
|
<% }; %>
|
|
58
57
|
<% var renderButton = function(name) { %>
|
|
59
58
|
<button type="button" class="media-control-button media-control-icon gcore-skin-button-color" data-<%= name %>
|
|
60
|
-
|
|
59
|
+
aria-label="<%= name %>"></button>
|
|
61
60
|
<% }; %>
|
|
62
61
|
|
|
63
62
|
<% var templates = {
|
package/dist/core.js
CHANGED
|
@@ -12950,6 +12950,11 @@ class DashPlayback extends BasePlayback {
|
|
|
12950
12950
|
trace(`${T$3} dvrEnable no dash player instance`);
|
|
12951
12951
|
return false;
|
|
12952
12952
|
}
|
|
12953
|
+
trace(`${T$3} get.dvrEnabled`, {
|
|
12954
|
+
dvrWindowSize: this._dash?.getDVRWindowSize(),
|
|
12955
|
+
minDvrSize: this._minDvrSize,
|
|
12956
|
+
playbackType: this.getPlaybackType(),
|
|
12957
|
+
});
|
|
12953
12958
|
return (this._dash?.getDVRWindowSize() >= this._minDvrSize &&
|
|
12954
12959
|
this.getPlaybackType() === Playback.LIVE);
|
|
12955
12960
|
}
|
|
@@ -13005,8 +13010,8 @@ class DashPlayback extends BasePlayback {
|
|
|
13005
13010
|
return super.destroy();
|
|
13006
13011
|
}
|
|
13007
13012
|
_updatePlaybackType() {
|
|
13008
|
-
assert.ok(this._dash, 'An instance of dashjs MediaPlayer is required to update the playback type');
|
|
13009
13013
|
const prevPlaybackType = this._playbackType;
|
|
13014
|
+
// @ts-ignore
|
|
13010
13015
|
this._playbackType = this._dash.isDynamic() ? Playback.LIVE : Playback.VOD;
|
|
13011
13016
|
if (prevPlaybackType !== this._playbackType) {
|
|
13012
13017
|
this._updateSettings();
|
|
@@ -43213,7 +43218,7 @@ class Player {
|
|
|
43213
43218
|
}
|
|
43214
43219
|
}
|
|
43215
43220
|
|
|
43216
|
-
var version$1 = "2.22.
|
|
43221
|
+
var version$1 = "2.22.8";
|
|
43217
43222
|
|
|
43218
43223
|
var packages = {
|
|
43219
43224
|
"node_modules/@clappr/core": {
|