@gcorevideo/player 2.25.10 → 2.26.0
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 -60
- package/dist/index.css +1170 -1170
- package/dist/index.embed.js +50 -130
- package/dist/index.js +79 -230
- package/dist/player.d.ts +2798 -2785
- package/docs/api/player.bigmutebutton.md +0 -3
- package/docs/api/player.bottomgear.additem.md +0 -3
- package/docs/api/player.bottomgear.md +2 -5
- package/docs/api/player.bottomgear.refresh.md +0 -3
- package/docs/api/player.clapprstats._constructor_.md +0 -3
- package/docs/api/player.clapprstats.clearmetrics.md +0 -3
- package/docs/api/player.clapprstats.exportmetrics.md +1 -4
- package/docs/api/player.clapprstats.md +2 -7
- package/docs/api/player.clapprstatsbitratetrack.md +0 -3
- package/docs/api/player.clapprstatschronograph.md +0 -13
- package/docs/api/player.clapprstatscounter.md +0 -25
- package/docs/api/player.clapprstatsevents.md +1 -4
- package/docs/api/player.clapprstatsmetrics.md +0 -3
- package/docs/api/player.clapprstatssettings.md +1 -4
- package/docs/api/player.clapprstatssettings.runeach.md +0 -3
- package/docs/api/player.clicktopause.md +0 -3
- package/docs/api/player.clips.destroy.md +0 -3
- package/docs/api/player.clips.disable.md +0 -3
- package/docs/api/player.clips.enable.md +0 -3
- package/docs/api/player.clips.gettext.md +0 -3
- package/docs/api/player.clips.md +1 -16
- package/docs/api/player.clips.render.md +0 -3
- package/docs/api/player.clips.supportedversion.md +0 -3
- package/docs/api/player.clips.version.md +0 -3
- package/docs/api/player.clipspluginsettings.md +1 -4
- package/docs/api/player.clipspluginsettings.text.md +0 -3
- package/docs/api/player.closedcaptions.hide.md +0 -3
- package/docs/api/player.closedcaptions.md +6 -5
- package/docs/api/player.closedcaptions.show.md +0 -3
- package/docs/api/player.closedcaptionspluginsettings.md +0 -3
- package/docs/api/player.cmcdconfig._constructor_.md +0 -3
- package/docs/api/player.cmcdconfig.exportids.md +0 -3
- package/docs/api/player.cmcdconfig.md +2 -5
- package/docs/api/player.cmcdconfigoptions.contentid.md +0 -3
- package/docs/api/player.cmcdconfigoptions.md +2 -5
- package/docs/api/player.cmcdconfigoptions.sessionid.md +0 -3
- package/docs/api/player.dvrcontrols.md +0 -3
- package/docs/api/player.extendedevents.md +0 -7
- package/docs/api/player.favicon.md +0 -3
- package/docs/api/player.faviconpluginsettings.faviconcolor.md +0 -3
- package/docs/api/player.faviconpluginsettings.md +1 -4
- package/docs/api/player.gearevents.md +1 -4
- package/docs/api/player.md +24 -43
- package/docs/api/player.mediacontrol.defaultsettings.md +5 -1
- package/docs/api/player.mediacontrol.getavailablepopupheight.md +20 -0
- package/docs/api/player.mediacontrol.md +14 -0
- package/docs/api/player.menuoption.md +0 -3
- package/docs/api/player.nerdstats._constructor_.md +0 -3
- package/docs/api/player.nerdstats.md +1 -4
- package/docs/api/player.pictureinpicture.attributes.md +0 -3
- package/docs/api/player.pictureinpicture.md +2 -7
- package/docs/api/player.playbackrateoption.md +0 -3
- package/docs/api/player.playbackratesettings.md +0 -3
- package/docs/api/player.poster.disable.md +0 -3
- package/docs/api/player.poster.enable.md +0 -3
- package/docs/api/player.poster.md +2 -5
- package/docs/api/player.posterpluginsettings.custom.md +0 -3
- package/docs/api/player.posterpluginsettings.md +4 -7
- package/docs/api/player.posterpluginsettings.showfornoop.md +0 -3
- package/docs/api/player.posterpluginsettings.showonvideoend.md +0 -3
- package/docs/api/player.posterpluginsettings.url.md +0 -3
- package/docs/api/player.qualitylevels.events.md +0 -3
- package/docs/api/player.qualitylevels.md +0 -5
- package/docs/api/player.qualitylevelspluginsettings.labels.md +0 -3
- package/docs/api/player.qualitylevelspluginsettings.md +2 -5
- package/docs/api/player.qualitylevelspluginsettings.restrictresolution.md +0 -3
- package/docs/api/player.skiptime.container.md +0 -3
- package/docs/api/player.skiptime.md +0 -9
- package/docs/api/player.skiptime.name.md +0 -3
- package/docs/api/player.skiptime.supportedversion.md +0 -3
- package/docs/api/player.volumefadeevents.md +0 -5
- package/docs/api/player.volumefadesettings.md +0 -3
- package/docs/api/player.zeptoresult.md +0 -3
- package/lib/Player.d.ts.map +1 -1
- package/lib/Player.js +0 -29
- package/lib/playback/HTML5Video.d.ts.map +1 -1
- package/lib/playback/HTML5Video.js +0 -18
- package/lib/playback/dash-playback/DashPlayback.d.ts.map +1 -1
- package/lib/playback/dash-playback/DashPlayback.js +0 -10
- package/lib/playback/hls-playback/HlsPlayback.d.ts.map +1 -1
- package/lib/playback/hls-playback/HlsPlayback.js +0 -2
- package/lib/plugins/big-mute-button/BigMuteButton.d.ts +1 -1
- package/lib/plugins/big-mute-button/BigMuteButton.d.ts.map +1 -1
- package/lib/plugins/big-mute-button/BigMuteButton.js +1 -3
- package/lib/plugins/bottom-gear/BottomGear.d.ts +2 -2
- package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
- package/lib/plugins/bottom-gear/BottomGear.js +4 -8
- package/lib/plugins/clappr-nerd-stats/NerdStats.d.ts +1 -1
- package/lib/plugins/clappr-nerd-stats/NerdStats.d.ts.map +1 -1
- package/lib/plugins/clappr-nerd-stats/NerdStats.js +3 -5
- package/lib/plugins/clappr-stats/ClapprStats.d.ts +3 -3
- package/lib/plugins/clappr-stats/ClapprStats.js +2 -2
- package/lib/plugins/clappr-stats/types.d.ts +5 -5
- package/lib/plugins/clappr-stats/types.js +3 -3
- package/lib/plugins/click-to-pause/ClickToPause.d.ts +1 -1
- package/lib/plugins/click-to-pause/ClickToPause.d.ts.map +1 -1
- package/lib/plugins/click-to-pause/ClickToPause.js +3 -7
- package/lib/plugins/clips/Clips.d.ts +2 -2
- package/lib/plugins/clips/Clips.d.ts.map +1 -1
- package/lib/plugins/clips/Clips.js +2 -6
- package/lib/plugins/cmcd-config/CmcdConfig.d.ts +2 -2
- package/lib/plugins/cmcd-config/CmcdConfig.js +1 -1
- package/lib/plugins/context-menu/ContextMenu.d.ts +1 -1
- package/lib/plugins/dvr-controls/DvrControls.d.ts +1 -1
- package/lib/plugins/dvr-controls/DvrControls.d.ts.map +1 -1
- package/lib/plugins/dvr-controls/DvrControls.js +3 -4
- package/lib/plugins/error-screen/ErrorScreen.d.ts.map +1 -1
- package/lib/plugins/error-screen/ErrorScreen.js +0 -3
- package/lib/plugins/favicon/Favicon.d.ts +2 -2
- package/lib/plugins/favicon/Favicon.js +1 -1
- package/lib/plugins/level-selector/QualityLevels.d.ts +2 -2
- package/lib/plugins/level-selector/QualityLevels.d.ts.map +1 -1
- package/lib/plugins/level-selector/QualityLevels.js +3 -11
- package/lib/plugins/media-control/MediaControl.d.ts +2 -5
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.js +4 -6
- package/lib/plugins/picture-in-picture/PictureInPicture.d.ts +3 -3
- package/lib/plugins/picture-in-picture/PictureInPicture.js +3 -3
- package/lib/plugins/playback-rate/PlaybackRate.d.ts +2 -2
- package/lib/plugins/playback-rate/PlaybackRate.d.ts.map +1 -1
- package/lib/plugins/playback-rate/PlaybackRate.js +0 -10
- package/lib/plugins/poster/Poster.d.ts +2 -2
- package/lib/plugins/poster/Poster.d.ts.map +1 -1
- package/lib/plugins/poster/Poster.js +3 -19
- package/lib/plugins/seek-time/SeekTime.d.ts.map +1 -1
- package/lib/plugins/seek-time/SeekTime.js +1 -6
- package/lib/plugins/skip-time/SkipTime.d.ts +1 -1
- package/lib/plugins/skip-time/SkipTime.d.ts.map +1 -1
- package/lib/plugins/skip-time/SkipTime.js +3 -15
- package/lib/plugins/source-controller/SourceController.d.ts.map +1 -1
- package/lib/plugins/source-controller/SourceController.js +0 -5
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.d.ts.map +1 -1
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.js +2 -18
- package/lib/plugins/subtitles/ClosedCaptions.d.ts +2 -2
- package/lib/plugins/subtitles/ClosedCaptions.js +1 -1
- package/lib/plugins/volume-fade/VolumeFade.d.ts +2 -2
- package/lib/plugins/volume-fade/VolumeFade.js +1 -1
- package/lib/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/Player.ts +0 -29
- package/src/playback/HTML5Video.ts +0 -18
- package/src/playback/dash-playback/DashPlayback.ts +0 -11
- package/src/playback/hls-playback/HlsPlayback.ts +0 -3
- package/src/plugins/big-mute-button/BigMuteButton.ts +1 -4
- package/src/plugins/bottom-gear/BottomGear.ts +4 -8
- package/src/plugins/clappr-nerd-stats/NerdStats.ts +3 -5
- package/src/plugins/clappr-stats/ClapprStats.ts +3 -3
- package/src/plugins/clappr-stats/types.ts +5 -5
- package/src/plugins/click-to-pause/ClickToPause.ts +3 -8
- package/src/plugins/clips/Clips.ts +4 -7
- package/src/plugins/cmcd-config/CmcdConfig.ts +2 -2
- package/src/plugins/context-menu/ContextMenu.ts +1 -1
- package/src/plugins/dvr-controls/DvrControls.ts +3 -4
- package/src/plugins/error-screen/ErrorScreen.ts +0 -3
- package/src/plugins/favicon/Favicon.ts +2 -2
- package/src/plugins/level-selector/QualityLevels.ts +4 -12
- package/src/plugins/media-control/MediaControl.ts +4 -10
- package/src/plugins/picture-in-picture/PictureInPicture.ts +3 -3
- package/src/plugins/playback-rate/PlaybackRate.ts +2 -14
- package/src/plugins/poster/Poster.ts +4 -21
- package/src/plugins/seek-time/SeekTime.ts +2 -6
- package/src/plugins/skip-time/SkipTime.ts +3 -15
- package/src/plugins/source-controller/SourceController.ts +0 -5
- package/src/plugins/spinner-three-bounce/SpinnerThreeBounce.ts +2 -18
- package/src/plugins/subtitles/ClosedCaptions.ts +2 -2
- package/src/plugins/volume-fade/VolumeFade.ts +2 -2
- package/src/types.ts +1 -1
- package/temp/player.api.json +157 -152
- package/tsconfig.tsbuildinfo +1 -1
- package/docs/api/player.mediacontrolpluginsettings.md +0 -13
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## BigMuteButton class
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
`PLUGIN` that displays a big mute button over the video when it's being played muted.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## BottomGear class
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
`PLUGIN` that adds a button to extend the media controls UI with extra options.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -110,7 +107,7 @@ Description
|
|
|
110
107
|
|
|
111
108
|
</td><td>
|
|
112
109
|
|
|
113
|
-
|
|
110
|
+
Adds a custom option to the gear menu
|
|
114
111
|
|
|
115
112
|
|
|
116
113
|
</td></tr>
|
|
@@ -124,7 +121,7 @@ Description
|
|
|
124
121
|
|
|
125
122
|
</td><td>
|
|
126
123
|
|
|
127
|
-
|
|
124
|
+
Collapses any submenu open back to the gear menu.
|
|
128
125
|
|
|
129
126
|
|
|
130
127
|
</td></tr>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## BottomGear.refresh() method
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
Collapses any submenu open back to the gear menu.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClapprStats.(constructor)
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
Constructs a new instance of the `ClapprStats` class
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClapprStats.exportMetrics() method
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
Returns the collected metrics.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -18,5 +15,5 @@ exportMetrics(): ClapprStatsMetrics;
|
|
|
18
15
|
|
|
19
16
|
[ClapprStatsMetrics](./player.clapprstatsmetrics.md)
|
|
20
17
|
|
|
21
|
-
Measurements collected so far
|
|
18
|
+
[Measurements](./player.clapprstatsmetrics.md) collected so far
|
|
22
19
|
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClapprStats class
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
`PLUGIN` that measures data about playback, which can be useful for analyzing performance and UX.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -48,7 +45,7 @@ Description
|
|
|
48
45
|
|
|
49
46
|
</td><td>
|
|
50
47
|
|
|
51
|
-
|
|
48
|
+
Constructs a new instance of the `ClapprStats` class
|
|
52
49
|
|
|
53
50
|
|
|
54
51
|
</td></tr>
|
|
@@ -82,8 +79,6 @@ Description
|
|
|
82
79
|
|
|
83
80
|
</td><td>
|
|
84
81
|
|
|
85
|
-
**_(BETA)_**
|
|
86
|
-
|
|
87
82
|
|
|
88
83
|
</td></tr>
|
|
89
84
|
<tr><td>
|
|
@@ -96,7 +91,7 @@ Description
|
|
|
96
91
|
|
|
97
92
|
</td><td>
|
|
98
93
|
|
|
99
|
-
|
|
94
|
+
Returns the collected metrics.
|
|
100
95
|
|
|
101
96
|
|
|
102
97
|
</td></tr>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClapprStatsChronograph enum
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
|
|
11
8
|
**Signature:**
|
|
12
9
|
|
|
@@ -44,8 +41,6 @@ Buffering
|
|
|
44
41
|
|
|
45
42
|
</td><td>
|
|
46
43
|
|
|
47
|
-
**_(BETA)_**
|
|
48
|
-
|
|
49
44
|
|
|
50
45
|
</td></tr>
|
|
51
46
|
<tr><td>
|
|
@@ -60,8 +55,6 @@ Pause
|
|
|
60
55
|
|
|
61
56
|
</td><td>
|
|
62
57
|
|
|
63
|
-
**_(BETA)_**
|
|
64
|
-
|
|
65
58
|
|
|
66
59
|
</td></tr>
|
|
67
60
|
<tr><td>
|
|
@@ -76,8 +69,6 @@ Session
|
|
|
76
69
|
|
|
77
70
|
</td><td>
|
|
78
71
|
|
|
79
|
-
**_(BETA)_**
|
|
80
|
-
|
|
81
72
|
|
|
82
73
|
</td></tr>
|
|
83
74
|
<tr><td>
|
|
@@ -92,8 +83,6 @@ Startup
|
|
|
92
83
|
|
|
93
84
|
</td><td>
|
|
94
85
|
|
|
95
|
-
**_(BETA)_**
|
|
96
|
-
|
|
97
86
|
|
|
98
87
|
</td></tr>
|
|
99
88
|
<tr><td>
|
|
@@ -108,8 +97,6 @@ Watch
|
|
|
108
97
|
|
|
109
98
|
</td><td>
|
|
110
99
|
|
|
111
|
-
**_(BETA)_**
|
|
112
|
-
|
|
113
100
|
|
|
114
101
|
</td></tr>
|
|
115
102
|
</tbody></table>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClapprStatsCounter enum
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
|
|
11
8
|
**Signature:**
|
|
12
9
|
|
|
@@ -44,8 +41,6 @@ Buffering
|
|
|
44
41
|
|
|
45
42
|
</td><td>
|
|
46
43
|
|
|
47
|
-
**_(BETA)_**
|
|
48
|
-
|
|
49
44
|
|
|
50
45
|
</td></tr>
|
|
51
46
|
<tr><td>
|
|
@@ -60,8 +55,6 @@ ChangeLevel
|
|
|
60
55
|
|
|
61
56
|
</td><td>
|
|
62
57
|
|
|
63
|
-
**_(BETA)_**
|
|
64
|
-
|
|
65
58
|
|
|
66
59
|
</td></tr>
|
|
67
60
|
<tr><td>
|
|
@@ -76,8 +69,6 @@ DecodedFrames
|
|
|
76
69
|
|
|
77
70
|
</td><td>
|
|
78
71
|
|
|
79
|
-
**_(BETA)_**
|
|
80
|
-
|
|
81
72
|
|
|
82
73
|
</td></tr>
|
|
83
74
|
<tr><td>
|
|
@@ -92,8 +83,6 @@ DroppedFrames
|
|
|
92
83
|
|
|
93
84
|
</td><td>
|
|
94
85
|
|
|
95
|
-
**_(BETA)_**
|
|
96
|
-
|
|
97
86
|
|
|
98
87
|
</td></tr>
|
|
99
88
|
<tr><td>
|
|
@@ -108,8 +97,6 @@ DvrUsage
|
|
|
108
97
|
|
|
109
98
|
</td><td>
|
|
110
99
|
|
|
111
|
-
**_(BETA)_**
|
|
112
|
-
|
|
113
100
|
|
|
114
101
|
</td></tr>
|
|
115
102
|
<tr><td>
|
|
@@ -124,8 +111,6 @@ Error
|
|
|
124
111
|
|
|
125
112
|
</td><td>
|
|
126
113
|
|
|
127
|
-
**_(BETA)_**
|
|
128
|
-
|
|
129
114
|
|
|
130
115
|
</td></tr>
|
|
131
116
|
<tr><td>
|
|
@@ -140,8 +125,6 @@ Fps
|
|
|
140
125
|
|
|
141
126
|
</td><td>
|
|
142
127
|
|
|
143
|
-
**_(BETA)_**
|
|
144
|
-
|
|
145
128
|
|
|
146
129
|
</td></tr>
|
|
147
130
|
<tr><td>
|
|
@@ -156,8 +139,6 @@ Fullscreen
|
|
|
156
139
|
|
|
157
140
|
</td><td>
|
|
158
141
|
|
|
159
|
-
**_(BETA)_**
|
|
160
|
-
|
|
161
142
|
|
|
162
143
|
</td></tr>
|
|
163
144
|
<tr><td>
|
|
@@ -172,8 +153,6 @@ Pause
|
|
|
172
153
|
|
|
173
154
|
</td><td>
|
|
174
155
|
|
|
175
|
-
**_(BETA)_**
|
|
176
|
-
|
|
177
156
|
|
|
178
157
|
</td></tr>
|
|
179
158
|
<tr><td>
|
|
@@ -188,8 +167,6 @@ Play
|
|
|
188
167
|
|
|
189
168
|
</td><td>
|
|
190
169
|
|
|
191
|
-
**_(BETA)_**
|
|
192
|
-
|
|
193
170
|
|
|
194
171
|
</td></tr>
|
|
195
172
|
<tr><td>
|
|
@@ -204,8 +181,6 @@ Seek
|
|
|
204
181
|
|
|
205
182
|
</td><td>
|
|
206
183
|
|
|
207
|
-
**_(BETA)_**
|
|
208
|
-
|
|
209
184
|
|
|
210
185
|
</td></tr>
|
|
211
186
|
</tbody></table>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClapprStatsEvents enum
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
|
|
11
8
|
**Signature:**
|
|
12
9
|
|
|
@@ -44,7 +41,7 @@ REPORT
|
|
|
44
41
|
|
|
45
42
|
</td><td>
|
|
46
43
|
|
|
47
|
-
|
|
44
|
+
Emitted periodically with current measurements.
|
|
48
45
|
|
|
49
46
|
|
|
50
47
|
</td></tr>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClapprStatsSettings interface
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
Config options for the [ClapprStats](./player.clapprstats.md) plugin
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -53,7 +50,7 @@ number
|
|
|
53
50
|
|
|
54
51
|
</td><td>
|
|
55
52
|
|
|
56
|
-
|
|
53
|
+
_(Optional)_ The interval in milliseconds of periodic measurements. The plugin will emit a [ClapprStatsEvents.REPORT](./player.clapprstatsevents.md) event with the collected metrics at the specified interval.
|
|
57
54
|
|
|
58
55
|
|
|
59
56
|
</td></tr>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClapprStatsSettings.runEach property
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
The interval in milliseconds of periodic measurements. The plugin will emit a [ClapprStatsEvents.REPORT](./player.clapprstatsevents.md) event with the collected metrics at the specified interval.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClickToPause class
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
A small `PLUGIN` that toggles the playback state on click over the video container
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
package/docs/api/player.clips.md
CHANGED
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## Clips class
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
`PLUGIN` that allows marking up the timeline of the video
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -66,8 +63,6 @@ Description
|
|
|
66
63
|
|
|
67
64
|
</td><td>
|
|
68
65
|
|
|
69
|
-
**_(BETA)_**
|
|
70
|
-
|
|
71
66
|
|
|
72
67
|
</td></tr>
|
|
73
68
|
<tr><td>
|
|
@@ -87,8 +82,6 @@ string
|
|
|
87
82
|
|
|
88
83
|
</td><td>
|
|
89
84
|
|
|
90
|
-
**_(BETA)_**
|
|
91
|
-
|
|
92
85
|
|
|
93
86
|
</td></tr>
|
|
94
87
|
</tbody></table>
|
|
@@ -121,8 +114,6 @@ Description
|
|
|
121
114
|
|
|
122
115
|
</td><td>
|
|
123
116
|
|
|
124
|
-
**_(BETA)_**
|
|
125
|
-
|
|
126
117
|
|
|
127
118
|
</td></tr>
|
|
128
119
|
<tr><td>
|
|
@@ -135,8 +126,6 @@ Description
|
|
|
135
126
|
|
|
136
127
|
</td><td>
|
|
137
128
|
|
|
138
|
-
**_(BETA)_**
|
|
139
|
-
|
|
140
129
|
|
|
141
130
|
</td></tr>
|
|
142
131
|
<tr><td>
|
|
@@ -149,8 +138,6 @@ Description
|
|
|
149
138
|
|
|
150
139
|
</td><td>
|
|
151
140
|
|
|
152
|
-
**_(BETA)_**
|
|
153
|
-
|
|
154
141
|
|
|
155
142
|
</td></tr>
|
|
156
143
|
<tr><td>
|
|
@@ -163,7 +150,7 @@ Description
|
|
|
163
150
|
|
|
164
151
|
</td><td>
|
|
165
152
|
|
|
166
|
-
|
|
153
|
+
Get the text of the clip at the given time
|
|
167
154
|
|
|
168
155
|
|
|
169
156
|
</td></tr>
|
|
@@ -177,8 +164,6 @@ Description
|
|
|
177
164
|
|
|
178
165
|
</td><td>
|
|
179
166
|
|
|
180
|
-
**_(BETA)_**
|
|
181
|
-
|
|
182
167
|
|
|
183
168
|
</td></tr>
|
|
184
169
|
</tbody></table>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClipsPluginSettings interface
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
Configuration options for the [Clips](./player.clips.md) plugin.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -53,7 +50,7 @@ string
|
|
|
53
50
|
|
|
54
51
|
</td><td>
|
|
55
52
|
|
|
56
|
-
|
|
53
|
+
The compiled text of the clips description, one clip per line in format: `HH:MM:SS text` or `MM:SS text` or `SS text`
|
|
57
54
|
|
|
58
55
|
|
|
59
56
|
</td></tr>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClipsPluginSettings.text property
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
The compiled text of the clips description, one clip per line in format: `HH:MM:SS text` or `MM:SS text` or `SS text`
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClosedCaptions.hide() method
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
Hides the subtitles menu and the subtitles.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClosedCaptions class
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
`PLUGIN` that provides a UI to select the subtitles when available.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -26,6 +23,10 @@ Depends on:
|
|
|
26
23
|
|
|
27
24
|
Configuration options - [ClosedCaptionsPluginSettings](./player.closedcaptionspluginsettings.md)
|
|
28
25
|
|
|
26
|
+
Known issues:
|
|
27
|
+
|
|
28
|
+
1. When media source changes, the subtitles tracks aren't reloaded. Possible solution: use `playback.recycleVideo = false` [main config option](./player.playerconfig.md)<!-- -->, which will force new video element creation every time media source changes. However, this may lead to other issues, such as autoplay not working (after media source has been changed). [related discussion](https://github.com/video-dev/hls.js/issues/2198)
|
|
29
|
+
|
|
29
30
|
## Example
|
|
30
31
|
|
|
31
32
|
|
|
@@ -70,7 +71,7 @@ Description
|
|
|
70
71
|
|
|
71
72
|
</td><td>
|
|
72
73
|
|
|
73
|
-
|
|
74
|
+
Hides the subtitles menu and the subtitles.
|
|
74
75
|
|
|
75
76
|
|
|
76
77
|
</td></tr>
|
|
@@ -84,7 +85,7 @@ Description
|
|
|
84
85
|
|
|
85
86
|
</td><td>
|
|
86
87
|
|
|
87
|
-
|
|
88
|
+
Shows the subtitles menu and the subtitles.
|
|
88
89
|
|
|
89
90
|
|
|
90
91
|
</td></tr>
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClosedCaptions.show() method
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
Shows the subtitles menu and the subtitles.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## ClosedCaptionsPluginSettings type
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
Configuration options for the [ClosedCaptions](./player.closedcaptions.md) plugin.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## CmcdConfig.(constructor)
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
Constructs a new instance of the `CmcdConfig` class
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## CmcdConfig.exportIds() method
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
Returns the current `sid` and `cid` values. Useful when the auto-generated values need to be known.
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
## CmcdConfig class
|
|
6
6
|
|
|
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
|
-
>
|
|
9
|
-
|
|
10
7
|
A `PLUGIN` that configures [CMCD](https://cdn.cta.tech/cta/media/media/resources/standards/pdfs/cta-5004-final.pdf) for playback
|
|
11
8
|
|
|
12
9
|
**Signature:**
|
|
@@ -64,7 +61,7 @@ Description
|
|
|
64
61
|
|
|
65
62
|
</td><td>
|
|
66
63
|
|
|
67
|
-
|
|
64
|
+
Constructs a new instance of the `CmcdConfig` class
|
|
68
65
|
|
|
69
66
|
|
|
70
67
|
</td></tr>
|
|
@@ -98,7 +95,7 @@ Description
|
|
|
98
95
|
|
|
99
96
|
</td><td>
|
|
100
97
|
|
|
101
|
-
|
|
98
|
+
Returns the current `sid` and `cid` values. Useful when the auto-generated values need to be known.
|
|
102
99
|
|
|
103
100
|
|
|
104
101
|
</td></tr>
|