@gcorevideo/player 2.22.13 → 2.22.14
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/bottom-gear/gear.scss +20 -13
- package/assets/clappr-nerd-stats/button.ejs +2 -2
- package/assets/clappr-nerd-stats/clappr-nerd-stats.scss +0 -43
- package/assets/level-selector/button.ejs +3 -3
- package/assets/level-selector/style.scss +0 -5
- package/assets/playback-rate/button.ejs +2 -2
- package/dist/core.js +22 -1
- package/dist/index.css +599 -630
- package/dist/index.js +56 -40
- package/dist/plugins/index.css +1485 -1516
- package/dist/plugins/index.js +35 -40
- package/lib/playback/hls-playback/HlsPlayback.d.ts.map +1 -1
- package/lib/playback/hls-playback/HlsPlayback.js +21 -0
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.d.ts +4 -1
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.js +30 -14
- package/lib/plugins/playback-rate/PlaybackRate.d.ts.map +1 -1
- package/lib/plugins/playback-rate/PlaybackRate.js +1 -22
- package/package.json +1 -1
- package/src/playback/hls-playback/HlsPlayback.ts +22 -0
- package/src/plugins/clappr-nerd-stats/ClapprNerdStats.ts +0 -1
- package/src/plugins/level-selector/__tests__/__snapshots__/QualityLevels.test.ts.snap +3 -3
- package/src/plugins/media-control/MediaControl.ts +36 -15
- package/src/plugins/media-control/__tests__/MediaControl.test.ts +43 -10
- package/src/plugins/media-control/__tests__/__snapshots__/MediaControl.test.ts.snap +20 -20
- package/src/plugins/playback-rate/PlaybackRate.ts +1 -24
- package/src/plugins/playback-rate/__tests__/PlaybackRate.test.ts +2 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/assets/clappr-nerd-stats/options-list.ejs +0 -9
- package/assets/clappr-nerd-stats/settings.ejs +0 -12
|
@@ -16,11 +16,6 @@
|
|
|
16
16
|
.gear-options-list {
|
|
17
17
|
padding: 8px 0;
|
|
18
18
|
|
|
19
|
-
svg {
|
|
20
|
-
float: left;
|
|
21
|
-
margin-right: 10px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
19
|
.gear-option {
|
|
25
20
|
margin: 0;
|
|
26
21
|
text-align: left;
|
|
@@ -28,19 +23,31 @@
|
|
|
28
23
|
padding: 5px 14px;
|
|
29
24
|
width: 250px;
|
|
30
25
|
font-size: 12px;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: flex-start;
|
|
29
|
+
gap: 8px;
|
|
30
|
+
|
|
31
|
+
&_icon {
|
|
32
|
+
flex: 24px 0 0;
|
|
33
|
+
height: 24px;
|
|
34
|
+
&.hidden {
|
|
35
|
+
visibility: hidden;
|
|
36
|
+
display: inline-block;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
31
39
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
margin-right: -14px;
|
|
40
|
+
&_label {
|
|
41
|
+
flex: 0 1 100%;
|
|
35
42
|
}
|
|
36
43
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
&_arrow-right-icon {
|
|
45
|
+
flex: 0 0 14px;
|
|
46
|
+
height: 24px;
|
|
40
47
|
}
|
|
41
48
|
|
|
42
|
-
|
|
43
|
-
|
|
49
|
+
&_value {
|
|
50
|
+
flex: 1 0 auto;
|
|
44
51
|
}
|
|
45
52
|
}
|
|
46
53
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<button class='nerd-button gplayer-lite-btn gcore-skin-text-color gear-option' id="nerd-stats-button">
|
|
2
|
-
<span class="
|
|
3
|
-
<span><%= i18n.t('statistics') %></span>
|
|
2
|
+
<span class="gear-option_icon"><%= icon %></span>
|
|
3
|
+
<span class="gear-option_label"><%= i18n.t('statistics') %></span>
|
|
4
4
|
</button>
|
|
@@ -223,49 +223,6 @@
|
|
|
223
223
|
padding: 0;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
.settings-options-list {
|
|
227
|
-
position: absolute;
|
|
228
|
-
right: 16px;
|
|
229
|
-
bottom: 52px;
|
|
230
|
-
background: var(--primary-background-color);
|
|
231
|
-
width: 250px;
|
|
232
|
-
height: 48px;
|
|
233
|
-
z-index: 9999;
|
|
234
|
-
border-radius: 4px;
|
|
235
|
-
|
|
236
|
-
svg {
|
|
237
|
-
float: left;
|
|
238
|
-
margin-right: 10px;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.settings-speedtest-option {
|
|
242
|
-
color: var(--primary-text-color);
|
|
243
|
-
margin: 0;
|
|
244
|
-
text-align: left;
|
|
245
|
-
height: 24px;
|
|
246
|
-
line-height: 22px;
|
|
247
|
-
padding: 14px;
|
|
248
|
-
width: 250px;
|
|
249
|
-
font-size: 12px;
|
|
250
|
-
|
|
251
|
-
&:hover {
|
|
252
|
-
color: var(--hover-text-color);
|
|
253
|
-
|
|
254
|
-
svg {
|
|
255
|
-
path {
|
|
256
|
-
fill: var(--hover-text-color);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
svg {
|
|
262
|
-
path {
|
|
263
|
-
fill: var(--primary-text-color);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
226
|
.speedtest-summary {
|
|
270
227
|
width: 100%;
|
|
271
228
|
border-top: 1px solid var(--secondary-background-color) !important;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<button class='gplayer-lite-btn gcore-skin-text-color gear-option' aria-haspopup="menu">
|
|
2
|
-
<span class="gear-
|
|
3
|
-
<span><%= i18n.t('quality') %></span>
|
|
4
|
-
<span class="gear-option_arrow-right-icon"><%= arrowRightIcon %></span>
|
|
2
|
+
<span class="gear-option_icon<%= isHd ? '' : ' hidden' %>"><%= hdIcon %></span>
|
|
3
|
+
<span class="gear-option_label"><%= i18n.t('quality') %></span>
|
|
5
4
|
<span class='gear-option_value'><%= currentText %></span>
|
|
5
|
+
<span class="gear-option_arrow-right-icon"><%= arrowRightIcon %></span>
|
|
6
6
|
</button>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<button class='gplayer-lite-btn gcore-skin-text-color gear-option' id="playback-rate-button">
|
|
2
|
-
<span class="gear-option_speed-icon"><%= speedIcon %></span>
|
|
2
|
+
<span class="gear-option_speed-icon gear-option_icon"><%= speedIcon %></span>
|
|
3
3
|
<span class="gear-option_label"><%= i18n.t('playback_rate') %></span>
|
|
4
|
-
<span class="gear-option_arrow-right-icon"><%= arrowRightIcon %></span>
|
|
5
4
|
<span class='gear-option_value'><%= title %></span>
|
|
5
|
+
<span class="gear-option_arrow-right-icon"><%= arrowRightIcon %></span>
|
|
6
6
|
</button>
|
package/dist/core.js
CHANGED
|
@@ -42133,6 +42133,16 @@ class HlsPlayback extends BasePlayback {
|
|
|
42133
42133
|
this.seek(seekTo);
|
|
42134
42134
|
}
|
|
42135
42135
|
seek(time) {
|
|
42136
|
+
// trace(`${T} seek`, {
|
|
42137
|
+
// time,
|
|
42138
|
+
// duration: this._duration,
|
|
42139
|
+
// startTime: this._startTime,
|
|
42140
|
+
// currentTimestamp: this.currentTimestamp,
|
|
42141
|
+
// playbackType: this.getPlaybackType(),
|
|
42142
|
+
// dvrEnabled: this.dvrEnabled,
|
|
42143
|
+
// durationExcludesAfterLiveSyncPoint: this._durationExcludesAfterLiveSyncPoint,
|
|
42144
|
+
// minDvrSize: this._minDvrSize,
|
|
42145
|
+
// })
|
|
42136
42146
|
if (time < 0) {
|
|
42137
42147
|
Log.warn('Attempt to seek to a negative time. Resetting to live point. Use seekToLivePoint() to seek to the live point.');
|
|
42138
42148
|
time = this.getDuration();
|
|
@@ -42284,6 +42294,11 @@ class HlsPlayback extends BasePlayback {
|
|
|
42284
42294
|
return;
|
|
42285
42295
|
}
|
|
42286
42296
|
this._lastTimeUpdate = update;
|
|
42297
|
+
// trace(`${T} _onTimeUpdate`, {
|
|
42298
|
+
// current: update.current,
|
|
42299
|
+
// total: update.total,
|
|
42300
|
+
// firstFragDateTime: update.firstFragDateTime,
|
|
42301
|
+
// })
|
|
42287
42302
|
this.trigger(Events$1.PLAYBACK_TIMEUPDATE, update, this.name);
|
|
42288
42303
|
}
|
|
42289
42304
|
_onDurationChange() {
|
|
@@ -42554,6 +42569,12 @@ class HlsPlayback extends BasePlayback {
|
|
|
42554
42569
|
this.trigger(Events$1.PLAYBACK_LEVEL_SWITCH_END);
|
|
42555
42570
|
}
|
|
42556
42571
|
get dvrEnabled() {
|
|
42572
|
+
// trace(`${T} dvrEnabled`, {
|
|
42573
|
+
// durationExcludesAfterLiveSyncPoint: this._durationExcludesAfterLiveSyncPoint,
|
|
42574
|
+
// duration: this._duration,
|
|
42575
|
+
// minDvrSize: this._minDvrSize,
|
|
42576
|
+
// playbackType: this.getPlaybackType(),
|
|
42577
|
+
// })
|
|
42557
42578
|
// enabled when:
|
|
42558
42579
|
// - the duration does not include content after hlsjs's live sync point
|
|
42559
42580
|
// - the playable region duration is longer than the configured duration to enable dvr after
|
|
@@ -43218,7 +43239,7 @@ class Player {
|
|
|
43218
43239
|
}
|
|
43219
43240
|
}
|
|
43220
43241
|
|
|
43221
|
-
var version$1 = "2.22.
|
|
43242
|
+
var version$1 = "2.22.14";
|
|
43222
43243
|
|
|
43223
43244
|
var packages = {
|
|
43224
43245
|
"node_modules/@clappr/core": {
|