@gcorevideo/player 2.22.15 → 2.22.17
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/clips/clips.ejs +1 -0
- package/assets/clips/clips.scss +23 -3
- package/assets/level-selector/list.ejs +9 -3
- package/assets/media-control/media-control.ejs +1 -9
- package/assets/media-control/media-control.scss +0 -25
- package/assets/media-control/width370.scss +4 -4
- package/dist/core.js +6 -8
- package/dist/index.css +855 -855
- package/dist/index.js +609 -664
- package/dist/player.d.ts +426 -302
- package/dist/plugins/index.css +551 -551
- package/dist/plugins/index.js +648 -703
- package/docs/api/{player.audioselector.md → player.audiotracks.md} +3 -3
- package/docs/api/player.clapprstats.exportmetrics.md +1 -1
- package/docs/api/player.clapprstats.md +5 -15
- package/docs/api/player.clapprstatssettings.md +13 -0
- package/docs/api/{player.contextmenupluginsettings.preventshowcontextmenu.md → player.clips.destroy.md} +7 -3
- package/docs/api/{player.contextmenupluginsettings.label.md → player.clips.disable.md} +7 -3
- package/docs/api/player.clips.enable.md +18 -0
- package/docs/api/player.clips.md +170 -0
- package/docs/api/player.clips.render.md +18 -0
- package/docs/api/player.clips.supportedversion.md +16 -0
- package/docs/api/player.clips.version.md +14 -0
- package/docs/api/player.clipspluginsettings.md +2 -2
- package/docs/api/player.clipspluginsettings.text.md +1 -1
- package/docs/api/player.contextmenu.md +2 -0
- package/docs/api/player.contextmenupluginsettings.md +2 -40
- package/docs/api/{player.contextmenupluginsettings.url.md → player.contextmenupluginsettings.options.md} +3 -3
- package/docs/api/player.md +101 -37
- package/docs/api/player.mediacontrol.md +9 -15
- package/docs/api/{player.mediacontrol.getelement.md → player.mediacontrol.mount.md} +20 -7
- package/docs/api/player.mediacontrolelement.md +4 -2
- package/docs/api/player.mediacontrollayerelement.md +16 -0
- package/docs/api/player.mediacontrolleftelement.md +16 -0
- package/docs/api/player.mediacontrolrightelement.md +16 -0
- package/docs/api/player.mediacontrolsettings.md +23 -0
- package/docs/api/player.menuoption.md +21 -0
- package/docs/api/{player.clapprnerdstats._constructor_.md → player.nerdstats._constructor_.md} +3 -3
- package/docs/api/{player.clapprnerdstats.md → player.nerdstats.md} +5 -5
- package/docs/api/player.playbackrate.md +1 -1
- package/docs/api/player.playerconfig.md +1 -1
- package/docs/api/player.playerconfig.playbacktype.md +1 -1
- package/docs/api/player.qualitylevel.height.md +1 -1
- package/docs/api/player.qualitylevel.level.md +1 -1
- package/docs/api/player.qualitylevel.md +4 -4
- package/docs/api/player.qualitylevel.width.md +1 -1
- package/docs/api/{player.levelselector.events.md → player.qualitylevels.events.md} +2 -2
- package/docs/api/{player.levelselector.md → player.qualitylevels.md} +6 -6
- package/docs/api/{player.levelselectorpluginsettings.labels.md → player.qualitylevelspluginsettings.labels.md} +2 -2
- package/docs/api/{player.levelselectorpluginsettings.md → player.qualitylevelspluginsettings.md} +6 -6
- package/docs/api/{player.levelselectorpluginsettings.restrictresolution.md → player.qualitylevelspluginsettings.restrictresolution.md} +2 -2
- package/docs/api/player.timeposition.current.md +1 -1
- package/docs/api/player.timeposition.md +2 -2
- package/docs/api/player.timeposition.total.md +1 -1
- package/docs/api/player.timeprogress.md +6 -4
- package/docs/api/player.timevalue.md +1 -1
- package/lib/index.plugins.d.ts +2 -1
- package/lib/index.plugins.d.ts.map +1 -1
- package/lib/index.plugins.js +2 -1
- package/lib/playback/dash-playback/DashPlayback.d.ts.map +1 -1
- package/lib/playback/dash-playback/DashPlayback.js +5 -7
- package/lib/playback.types.d.ts +22 -9
- package/lib/playback.types.d.ts.map +1 -1
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts +4 -0
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts.map +1 -1
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.js +20 -23
- package/lib/plugins/clappr-nerd-stats/NerdStats.d.ts +83 -0
- package/lib/plugins/clappr-nerd-stats/NerdStats.d.ts.map +1 -0
- package/lib/plugins/clappr-nerd-stats/NerdStats.js +339 -0
- package/lib/plugins/clappr-stats/ClapprStats.d.ts +27 -32
- package/lib/plugins/clappr-stats/ClapprStats.d.ts.map +1 -1
- package/lib/plugins/clappr-stats/ClapprStats.js +94 -202
- package/lib/plugins/clappr-stats/types.d.ts +65 -24
- package/lib/plugins/clappr-stats/types.d.ts.map +1 -1
- package/lib/plugins/clappr-stats/types.js +37 -2
- package/lib/plugins/clappr-stats/utils.d.ts.map +1 -1
- package/lib/plugins/clappr-stats/utils.js +1 -2
- package/lib/plugins/clips/Clips.d.ts +21 -16
- package/lib/plugins/clips/Clips.d.ts.map +1 -1
- package/lib/plugins/clips/Clips.js +96 -98
- package/lib/plugins/clips/types.d.ts +19 -0
- package/lib/plugins/clips/types.d.ts.map +1 -0
- package/lib/plugins/clips/types.js +1 -0
- package/lib/plugins/clips/utils.d.ts +4 -0
- package/lib/plugins/clips/utils.d.ts.map +1 -0
- package/lib/plugins/clips/utils.js +36 -0
- package/lib/plugins/media-control/MediaControl.d.ts +4 -7
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.js +19 -31
- package/lib/plugins/utils.d.ts +9 -1
- package/lib/plugins/utils.d.ts.map +1 -1
- package/lib/plugins/utils.js +9 -10
- package/lib/plugins/vast-ads/loaderxml.js +2 -2
- package/lib/testUtils.d.ts +2 -1
- package/lib/testUtils.d.ts.map +1 -1
- package/lib/testUtils.js +5 -7
- package/package.json +1 -1
- package/src/index.plugins.ts +2 -1
- package/src/playback/dash-playback/DashPlayback.ts +5 -8
- package/src/playback.types.ts +23 -8
- package/src/plugins/clappr-nerd-stats/{ClapprNerdStats.ts → NerdStats.ts} +25 -30
- package/src/plugins/clappr-stats/ClapprStats.ts +242 -306
- package/src/plugins/clappr-stats/__tests__/ClapprStats.test.ts +133 -0
- package/src/plugins/clappr-stats/types.ts +72 -25
- package/src/plugins/clappr-stats/utils.ts +1 -2
- package/src/plugins/clips/Clips.ts +116 -135
- package/src/plugins/clips/__tests__/Clips.test.ts +72 -0
- package/src/plugins/clips/__tests__/__snapshots__/Clips.test.ts.snap +14 -0
- package/src/plugins/clips/types.ts +22 -0
- package/src/plugins/clips/utils.ts +54 -0
- package/src/plugins/error-screen/__tests__/ErrorScreen.test.ts +3 -4
- package/src/plugins/level-selector/__tests__/__snapshots__/QualityLevels.test.ts.snap +18 -18
- package/src/plugins/media-control/MediaControl.ts +31 -58
- package/src/plugins/media-control/__tests__/__snapshots__/MediaControl.test.ts.snap +7 -35
- package/src/plugins/subtitles/__tests__/ClosedCaptions.test.ts +1 -0
- package/src/plugins/utils.ts +9 -7
- package/src/plugins/vast-ads/loaderxml.ts +2 -2
- package/src/testUtils.ts +5 -7
- package/temp/player.api.json +693 -471
- package/tsconfig.tsbuildinfo +1 -1
- package/docs/api/player.clapprstats.setupdatemetrics.md +0 -56
- package/docs/api/player.clipsplugin.gettext.md +0 -58
- package/docs/api/player.clipsplugin.md +0 -59
- package/docs/api/player.mediacontrol.handlecustomarea.md +0 -52
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
2
|
|
|
3
|
-
[Home](./index.md) > [@gcorevideo/player](./player.md) > [
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [QualityLevels](./player.qualitylevels.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## QualityLevels class
|
|
6
6
|
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
8
|
>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
export declare class
|
|
15
|
+
export declare class QualityLevels extends UICorePlugin
|
|
16
16
|
```
|
|
17
17
|
**Extends:** UICorePlugin
|
|
18
18
|
|
|
@@ -26,14 +26,14 @@ Depends on:
|
|
|
26
26
|
|
|
27
27
|
The plugin is rendered as an item in the gear menu, which, when clicked, shows a list of quality levels to choose from.
|
|
28
28
|
|
|
29
|
-
Configuration options - [
|
|
29
|
+
Configuration options - [QualityLevelsPluginSettings](./player.qualitylevelspluginsettings.md)
|
|
30
30
|
|
|
31
31
|
## Example
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
```ts
|
|
35
35
|
new Player({
|
|
36
|
-
|
|
36
|
+
qualityLevels: {
|
|
37
37
|
restrictResolution: 360,
|
|
38
38
|
labels: { 360: 'SD', 720: 'HD' },
|
|
39
39
|
},
|
|
@@ -65,7 +65,7 @@ Description
|
|
|
65
65
|
</th></tr></thead>
|
|
66
66
|
<tbody><tr><td>
|
|
67
67
|
|
|
68
|
-
[events](./player.
|
|
68
|
+
[events](./player.qualitylevels.events.md)
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
</td><td>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
2
|
|
|
3
|
-
[Home](./index.md) > [@gcorevideo/player](./player.md) > [
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [QualityLevelsPluginSettings](./player.qualitylevelspluginsettings.md) > [labels](./player.qualitylevelspluginsettings.labels.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## QualityLevelsPluginSettings.labels property
|
|
6
6
|
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
8
|
>
|
package/docs/api/{player.levelselectorpluginsettings.md → player.qualitylevelspluginsettings.md}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
2
|
|
|
3
|
-
[Home](./index.md) > [@gcorevideo/player](./player.md) > [
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [QualityLevelsPluginSettings](./player.qualitylevelspluginsettings.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## QualityLevelsPluginSettings interface
|
|
6
6
|
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
8
|
>
|
|
9
9
|
|
|
10
|
-
Configuration options for the [
|
|
10
|
+
Configuration options for the [QualityLevels](./player.qualitylevels.md) plugin.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
export interface
|
|
15
|
+
export interface QualityLevelsPluginSettings
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Properties
|
|
@@ -40,7 +40,7 @@ Description
|
|
|
40
40
|
</th></tr></thead>
|
|
41
41
|
<tbody><tr><td>
|
|
42
42
|
|
|
43
|
-
[labels?](./player.
|
|
43
|
+
[labels?](./player.qualitylevelspluginsettings.labels.md)
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
</td><td>
|
|
@@ -59,7 +59,7 @@ Record<number, string>
|
|
|
59
59
|
</td></tr>
|
|
60
60
|
<tr><td>
|
|
61
61
|
|
|
62
|
-
[restrictResolution?](./player.
|
|
62
|
+
[restrictResolution?](./player.qualitylevelspluginsettings.restrictresolution.md)
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
</td><td>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
2
|
|
|
3
|
-
[Home](./index.md) > [@gcorevideo/player](./player.md) > [
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [QualityLevelsPluginSettings](./player.qualitylevelspluginsettings.md) > [restrictResolution](./player.qualitylevelspluginsettings.restrictresolution.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## QualityLevelsPluginSettings.restrictResolution property
|
|
6
6
|
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
8
|
>
|
|
@@ -50,7 +50,7 @@ Description
|
|
|
50
50
|
|
|
51
51
|
</td><td>
|
|
52
52
|
|
|
53
|
-
Current playback time, 0..duration
|
|
53
|
+
Current playback time, 0..duration
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
</td></tr>
|
|
@@ -69,7 +69,7 @@ Current playback time, 0..duration, seconds.
|
|
|
69
69
|
|
|
70
70
|
</td><td>
|
|
71
71
|
|
|
72
|
-
Total duration of the media
|
|
72
|
+
Total duration of the media content (or DVR window size or segment duration for live streams)
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
</td></tr>
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
8
|
>
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Time progress information indicated by Clappr CONTAINER\_PROGRESS and PLAYBACK\_PROGRESS events.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
export type TimeProgress =
|
|
16
|
-
start:
|
|
15
|
+
export type TimeProgress = {
|
|
16
|
+
start: TimeValue;
|
|
17
|
+
current: TimeValue;
|
|
18
|
+
total: TimeValue;
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
|
-
**References:** [
|
|
21
|
+
**References:** [TimeValue](./player.timevalue.md)
|
|
20
22
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## TimeValue type
|
|
6
6
|
|
|
7
|
-
Playback time in seconds since the beginning of the stream
|
|
7
|
+
Playback time position in seconds since the beginning of the stream. For the live streams this is limited to the length of a segment. When DVR is enabled, this refers to the
|
|
8
8
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
package/lib/index.plugins.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ export * from "./plugins/audio-selector/AudioSelector.js";
|
|
|
3
3
|
export { AudioTracks as AudioSelector } from "./plugins/audio-selector/AudioSelector.js";
|
|
4
4
|
export * from "./plugins/big-mute-button/BigMuteButton.js";
|
|
5
5
|
export * from "./plugins/bottom-gear/BottomGear.js";
|
|
6
|
-
export * from "./plugins/clappr-nerd-stats/ClapprNerdStats.js";
|
|
7
6
|
export * from "./plugins/clappr-stats/ClapprStats.js";
|
|
7
|
+
export * from "./plugins/clappr-nerd-stats/NerdStats.js";
|
|
8
|
+
export { NerdStats as ClapprNerdStats } from "./plugins/clappr-nerd-stats/NerdStats.js";
|
|
8
9
|
export * from "./plugins/click-to-pause/ClickToPause.js";
|
|
9
10
|
export * from "./plugins/clips/Clips.js";
|
|
10
11
|
export * from "./plugins/context-menu/ContextMenu.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.plugins.d.ts","sourceRoot":"","sources":["../src/index.plugins.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAEnC,cAAc,2CAA2C,CAAC;AAC1D,OAAO,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,2CAA2C,CAAC;AACzF,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.plugins.d.ts","sourceRoot":"","sources":["../src/index.plugins.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAEnC,cAAc,2CAA2C,CAAC;AAC1D,OAAO,EAAE,WAAW,IAAI,aAAa,EAAE,MAAM,2CAA2C,CAAC;AACzF,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,OAAO,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,0CAA0C,CAAC;AACxF,cAAc,0CAA0C,CAAC;AACzD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAE7C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,wBAAwB,CAAC;AACvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2CAA2C,CAAC;AAC1D,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC3F,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sDAAsD,CAAC;AACrE,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,sDAAsD,CAAC;AACrG,cAAc,iDAAiD,CAAC;AAChE,cAAc,uCAAuC,CAAC;AACtD,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACpF,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AAGnD,cAAc,qCAAqC,CAAC"}
|
package/lib/index.plugins.js
CHANGED
|
@@ -3,8 +3,9 @@ export * from "./plugins/audio-selector/AudioSelector.js";
|
|
|
3
3
|
export { AudioTracks as AudioSelector } from "./plugins/audio-selector/AudioSelector.js";
|
|
4
4
|
export * from "./plugins/big-mute-button/BigMuteButton.js";
|
|
5
5
|
export * from "./plugins/bottom-gear/BottomGear.js";
|
|
6
|
-
export * from "./plugins/clappr-nerd-stats/ClapprNerdStats.js";
|
|
7
6
|
export * from "./plugins/clappr-stats/ClapprStats.js";
|
|
7
|
+
export * from "./plugins/clappr-nerd-stats/NerdStats.js";
|
|
8
|
+
export { NerdStats as ClapprNerdStats } from "./plugins/clappr-nerd-stats/NerdStats.js";
|
|
8
9
|
export * from "./plugins/click-to-pause/ClickToPause.js";
|
|
9
10
|
export * from "./plugins/clips/Clips.js";
|
|
10
11
|
export * from "./plugins/context-menu/ContextMenu.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashPlayback.d.ts","sourceRoot":"","sources":["../../../src/playback/dash-playback/DashPlayback.ts"],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AAgB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAQlC,OAAO,CAAC,gBAAgB;CAOzB"}
|
|
@@ -377,13 +377,11 @@ export default class DashPlayback extends BasePlayback {
|
|
|
377
377
|
this.getPlaybackType() === Playback.LIVE);
|
|
378
378
|
}
|
|
379
379
|
_onProgress() {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
buffer = this._dash.getDashMetrics().getCurrentBufferLevel('audio');
|
|
386
|
-
}
|
|
380
|
+
const buffer =
|
|
381
|
+
// @ts-expect-error
|
|
382
|
+
this._dash.getDashMetrics().getCurrentBufferLevel('video') ||
|
|
383
|
+
// @ts-expect-error
|
|
384
|
+
this._dash.getDashMetrics().getCurrentBufferLevel('audio');
|
|
387
385
|
const progress = {
|
|
388
386
|
start: this.getCurrentTime(),
|
|
389
387
|
current: this.getCurrentTime() + buffer,
|
package/lib/playback.types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Playback time in seconds since the beginning of the stream
|
|
2
|
+
* Playback time position in seconds since the beginning of the stream.
|
|
3
|
+
* For the live streams this is limited to the length of a segment. When DVR is enabled, this refers to the
|
|
3
4
|
* @public
|
|
4
5
|
*/
|
|
5
6
|
export type TimeValue = number;
|
|
@@ -9,20 +10,31 @@ export type TimeValue = number;
|
|
|
9
10
|
*/
|
|
10
11
|
export interface TimePosition {
|
|
11
12
|
/**
|
|
12
|
-
* Current playback time, 0..duration
|
|
13
|
+
* Current playback time, 0..duration
|
|
13
14
|
*/
|
|
14
15
|
current: TimeValue;
|
|
15
16
|
/**
|
|
16
|
-
* Total duration of the media
|
|
17
|
+
* Total duration of the media content (or DVR window size or segment duration for live streams)
|
|
17
18
|
*/
|
|
18
19
|
total: TimeValue;
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
+
* Time progress information indicated by Clappr CONTAINER_PROGRESS and PLAYBACK_PROGRESS events.
|
|
22
23
|
* @beta
|
|
23
24
|
*/
|
|
24
|
-
export type TimeProgress =
|
|
25
|
-
|
|
25
|
+
export type TimeProgress = {
|
|
26
|
+
/**
|
|
27
|
+
* Current playback time
|
|
28
|
+
*/
|
|
29
|
+
start: TimeValue;
|
|
30
|
+
/**
|
|
31
|
+
* Current buffer length beginning from the start (=current) time
|
|
32
|
+
*/
|
|
33
|
+
current: TimeValue;
|
|
34
|
+
/**
|
|
35
|
+
* Total duration of the media content
|
|
36
|
+
*/
|
|
37
|
+
total: TimeValue;
|
|
26
38
|
};
|
|
27
39
|
/**
|
|
28
40
|
* For the plugin development
|
|
@@ -32,20 +44,21 @@ export type TimeUpdate = TimePosition & {
|
|
|
32
44
|
firstFragDateTime: number;
|
|
33
45
|
};
|
|
34
46
|
/**
|
|
35
|
-
* A level of quality within a media source.
|
|
47
|
+
* A level of quality within a media source/representation.
|
|
36
48
|
* @public
|
|
37
49
|
*/
|
|
38
50
|
export interface QualityLevel {
|
|
39
51
|
/**
|
|
40
52
|
* Zero-based index of the quality level.
|
|
53
|
+
* Quality levels go from low to high
|
|
41
54
|
*/
|
|
42
55
|
level: number;
|
|
43
56
|
/**
|
|
44
|
-
* Width of the video, pixels.
|
|
57
|
+
* Width of the video frame, pixels.
|
|
45
58
|
*/
|
|
46
59
|
width: number;
|
|
47
60
|
/**
|
|
48
|
-
* Height of the video, pixels.
|
|
61
|
+
* Height of the video frame, pixels.
|
|
49
62
|
*/
|
|
50
63
|
height: number;
|
|
51
64
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playback.types.d.ts","sourceRoot":"","sources":["../src/playback.types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"playback.types.d.ts","sourceRoot":"","sources":["../src/playback.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAA;AAE9B;;;GAGG;AACH,MAAM,WAAW,YAAY;IA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AE,MAAM,CAAA;QACb,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClapprNerdStats.d.ts","sourceRoot":"","sources":["../../../src/plugins/clappr-nerd-stats/ClapprNerdStats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoB,IAAI,EAAa,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"ClapprNerdStats.d.ts","sourceRoot":"","sources":["../../../src/plugins/clappr-nerd-stats/ClapprNerdStats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoB,IAAI,EAAa,MAAM,cAAc,CAAA;AAuB9E,OAAO,0DAA0D,CAAA;AA8FjE;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,eAAgB,SAAQ,YAAY;IAC/C,OAAO,CAAC,SAAS,CAAyB;IAE1C,OAAO,CAAC,aAAa,CAIpB;IAED,OAAO,CAAC,OAAO,CAAwB;IAEvC,OAAO,CAAC,OAAO,CAAQ;IAEvB,OAAO,CAAC,QAAQ,CAAU;IAE1B,OAAO,CAAC,YAAY,CAAc;IAElC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAuB;IAE7D;;OAEG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,gBAAgB;;MAEnB;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAuB;IAEvD;;OAEG;IACH,IAAa,UAAU;;;MAKtB;IAED;;OAEG;IACH,IAAa,MAAM;;;;MAMlB;IAED,OAAO,KAAK,YAAY,GAEvB;IAED,OAAO,KAAK,sBAAsB,GAEjC;IAED,OAAO,KAAK,WAAW,GAEtB;IAED,OAAO,KAAK,YAAY,GAEvB;gBAEW,IAAI,EAAE,IAAI;IAgBtB;;OAEG;IACM,UAAU;IAInB,OAAO,CAAC,WAAW;IAoBnB;;OAEG;IACM,OAAO;IAKhB,OAAO,CAAC,MAAM,CAMb;IAED,OAAO,CAAC,IAAI;IAeZ,OAAO,CAAC,IAAI;IAMZ,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,gBAAgB;IA+BxB,OAAO,CAAC,aAAa;IA4BrB,OAAO,CAAC,eAAe;IAUvB;;OAEG;IACM,MAAM;IASf,OAAO,CAAC,eAAe;IAiBvB,OAAO,CAAC,kBAAkB;IAY1B,OAAO,CAAC,gBAAgB;CAWzB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UICorePlugin, Events, template } from '@clappr/core';
|
|
2
2
|
import { reportError, trace } from '@gcorevideo/utils';
|
|
3
3
|
import Mousetrap from 'mousetrap';
|
|
4
|
+
import assert from 'assert';
|
|
4
5
|
import { CLAPPR_VERSION } from '../../build.js';
|
|
5
6
|
import { ClapprStatsEvents, } from '../clappr-stats/types.js';
|
|
6
7
|
import { newMetrics as newBaseMetrics } from '../clappr-stats/utils.js';
|
|
@@ -11,7 +12,6 @@ import pluginHtml from '../../../assets/clappr-nerd-stats/clappr-nerd-stats.ejs'
|
|
|
11
12
|
import buttonHtml from '../../../assets/clappr-nerd-stats/button.ejs';
|
|
12
13
|
import statsIcon from '../../../assets/icons/new/stats.svg';
|
|
13
14
|
import { GearEvents } from '../bottom-gear/BottomGear.js';
|
|
14
|
-
import assert from 'assert';
|
|
15
15
|
const qualityClasses = [
|
|
16
16
|
'speedtest-quality-value-1',
|
|
17
17
|
'speedtest-quality-value-2',
|
|
@@ -79,7 +79,7 @@ const drawSummary = (customMetrics, vodContainer, liveContainer) => {
|
|
|
79
79
|
vodContainer.html(vodHtml);
|
|
80
80
|
liveContainer.html(liveHtml);
|
|
81
81
|
};
|
|
82
|
-
const T = 'plugins.
|
|
82
|
+
const T = 'plugins.nerd_stats';
|
|
83
83
|
/**
|
|
84
84
|
* `PLUGIN` that displays useful network-related statistics.
|
|
85
85
|
* @beta
|
|
@@ -179,32 +179,29 @@ export class ClapprNerdStats extends UICorePlugin {
|
|
|
179
179
|
this.listenTo(bottomGear, GearEvents.RENDERED, this.addToBottomGear);
|
|
180
180
|
this.container = this.core.activeContainer;
|
|
181
181
|
const clapprStats = this.container?.getPlugin('clappr_stats');
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
Mousetrap.bind(this.shortcut, () => this.toggle());
|
|
192
|
-
this.listenTo(this.core, Events.CORE_RESIZE, this.onPlayerResize);
|
|
193
|
-
// TODO: fix
|
|
194
|
-
this.listenTo(clapprStats, ClapprStatsEvents.REPORT_EVENT, this.updateMetrics);
|
|
195
|
-
clapprStats.setUpdateMetrics(this.updateMetrics.bind(this));
|
|
196
|
-
this.updateMetrics(clapprStats.exportMetrics());
|
|
197
|
-
this.render();
|
|
198
|
-
}
|
|
182
|
+
assert(clapprStats, 'clappr-stats not available. Please, include it as a plugin of your Clappr instance.\n' +
|
|
183
|
+
'For more info, visit: https://github.com/clappr/clappr-stats.');
|
|
184
|
+
Mousetrap.bind(this.shortcut, this.toggle);
|
|
185
|
+
this.listenTo(this.core, Events.CORE_RESIZE, this.onPlayerResize);
|
|
186
|
+
this.listenTo(clapprStats, ClapprStatsEvents.REPORT, this.updateMetrics);
|
|
187
|
+
this.updateMetrics(clapprStats.exportMetrics());
|
|
188
|
+
this.render();
|
|
199
189
|
}
|
|
200
|
-
|
|
190
|
+
/**
|
|
191
|
+
* @internal
|
|
192
|
+
*/
|
|
193
|
+
destroy() {
|
|
194
|
+
Mousetrap.unbind(this.shortcut);
|
|
195
|
+
return super.destroy();
|
|
196
|
+
}
|
|
197
|
+
toggle = () => {
|
|
201
198
|
if (this.showing) {
|
|
202
199
|
this.hide();
|
|
203
200
|
}
|
|
204
201
|
else {
|
|
205
202
|
this.show();
|
|
206
203
|
}
|
|
207
|
-
}
|
|
204
|
+
};
|
|
208
205
|
show() {
|
|
209
206
|
this.core.$el.find(this.statsBoxElem).show();
|
|
210
207
|
this.showing = true;
|
|
@@ -297,8 +294,8 @@ export class ClapprNerdStats extends UICorePlugin {
|
|
|
297
294
|
addToBottomGear() {
|
|
298
295
|
trace(`${T} addToBottomGear`);
|
|
299
296
|
const gear = this.core.getPlugin('bottom_gear');
|
|
300
|
-
|
|
301
|
-
.addItem('
|
|
297
|
+
gear
|
|
298
|
+
.addItem('nerd_stats')
|
|
302
299
|
.html(ClapprNerdStats.buttonTemplate({
|
|
303
300
|
icon: statsIcon,
|
|
304
301
|
i18n: this.core.i18n,
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { UICorePlugin, Core } from '@clappr/core';
|
|
2
|
+
import '../../../assets/clappr-nerd-stats/clappr-nerd-stats.scss';
|
|
3
|
+
/**
|
|
4
|
+
* `PLUGIN` that displays useful network-related statistics.
|
|
5
|
+
* @beta
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Depends on:
|
|
9
|
+
*
|
|
10
|
+
* - {@link BottomGear}
|
|
11
|
+
*
|
|
12
|
+
* - {@link ClapprStats}
|
|
13
|
+
*
|
|
14
|
+
* The plugin is rendered as an item in the gear menu.
|
|
15
|
+
*
|
|
16
|
+
* When clicked, it shows an overlay window with the information about the network speed, latency, etc,
|
|
17
|
+
* and recommended quality level.
|
|
18
|
+
*/
|
|
19
|
+
export declare class NerdStats extends UICorePlugin {
|
|
20
|
+
private container;
|
|
21
|
+
private customMetrics;
|
|
22
|
+
private metrics;
|
|
23
|
+
private showing;
|
|
24
|
+
private shortcut;
|
|
25
|
+
private iconPosition;
|
|
26
|
+
private static readonly buttonTemplate;
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
get name(): string;
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
get supportedVersion(): {
|
|
35
|
+
min: string;
|
|
36
|
+
};
|
|
37
|
+
private static readonly template;
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
get attributes(): {
|
|
42
|
+
'data-clappr-nerd-stats': string;
|
|
43
|
+
class: string;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
get events(): {
|
|
49
|
+
'click [data-show-stats-button]': string;
|
|
50
|
+
'click [data-close-button]': string;
|
|
51
|
+
'click [data-refresh-button]': string;
|
|
52
|
+
};
|
|
53
|
+
private get statsBoxElem();
|
|
54
|
+
private get statsBoxWidthThreshold();
|
|
55
|
+
private get playerWidth();
|
|
56
|
+
private get playerHeight();
|
|
57
|
+
constructor(core: Core);
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
bindEvents(): void;
|
|
62
|
+
private onCoreReady;
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
destroy(): import("@clappr/core").UIObject;
|
|
67
|
+
private toggle;
|
|
68
|
+
private show;
|
|
69
|
+
private hide;
|
|
70
|
+
private onPlayerResize;
|
|
71
|
+
private addGeneralMetrics;
|
|
72
|
+
private addCustomMetrics;
|
|
73
|
+
private updateMetrics;
|
|
74
|
+
private setStatsBoxSize;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
render(): this;
|
|
79
|
+
private addToBottomGear;
|
|
80
|
+
private clearCustomMetrics;
|
|
81
|
+
private refreshSpeedTest;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=NerdStats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NerdStats.d.ts","sourceRoot":"","sources":["../../../src/plugins/clappr-nerd-stats/NerdStats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoB,IAAI,EAAa,MAAM,cAAc,CAAA;AAuB9E,OAAO,0D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