@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
package/docs/api/player.md
CHANGED
|
@@ -45,7 +45,7 @@ Description
|
|
|
45
45
|
</th></tr></thead>
|
|
46
46
|
<tbody><tr><td>
|
|
47
47
|
|
|
48
|
-
[
|
|
48
|
+
[AudioTracks](./player.audiotracks.md)
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
</td><td>
|
|
@@ -75,17 +75,6 @@ Description
|
|
|
75
75
|
**_(BETA)_** `PLUGIN` that adds a button to extend the media controls UI with extra options.
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
</td></tr>
|
|
79
|
-
<tr><td>
|
|
80
|
-
|
|
81
|
-
[ClapprNerdStats](./player.clapprnerdstats.md)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
</td><td>
|
|
85
|
-
|
|
86
|
-
**_(BETA)_** `PLUGIN` that displays useful network-related statistics.
|
|
87
|
-
|
|
88
|
-
|
|
89
78
|
</td></tr>
|
|
90
79
|
<tr><td>
|
|
91
80
|
|
|
@@ -94,7 +83,7 @@ Description
|
|
|
94
83
|
|
|
95
84
|
</td><td>
|
|
96
85
|
|
|
97
|
-
**_(BETA)_** `PLUGIN` that
|
|
86
|
+
**_(BETA)_** `PLUGIN` that measures data about playback, which can be useful for analyzing performance and UX.
|
|
98
87
|
|
|
99
88
|
|
|
100
89
|
</td></tr>
|
|
@@ -111,12 +100,12 @@ Description
|
|
|
111
100
|
</td></tr>
|
|
112
101
|
<tr><td>
|
|
113
102
|
|
|
114
|
-
[
|
|
103
|
+
[Clips](./player.clips.md)
|
|
115
104
|
|
|
116
105
|
|
|
117
106
|
</td><td>
|
|
118
107
|
|
|
119
|
-
**_(BETA)_** `PLUGIN` that
|
|
108
|
+
**_(BETA)_** `PLUGIN` that allows marking up the timeline of the video
|
|
120
109
|
|
|
121
110
|
|
|
122
111
|
</td></tr>
|
|
@@ -188,45 +177,45 @@ Description
|
|
|
188
177
|
</td></tr>
|
|
189
178
|
<tr><td>
|
|
190
179
|
|
|
191
|
-
[
|
|
180
|
+
[Logo](./player.logo.md)
|
|
192
181
|
|
|
193
182
|
|
|
194
183
|
</td><td>
|
|
195
184
|
|
|
196
|
-
**_(BETA)_** `PLUGIN` that
|
|
185
|
+
**_(BETA)_** `PLUGIN` that adds custom logo to the player.
|
|
197
186
|
|
|
198
187
|
|
|
199
188
|
</td></tr>
|
|
200
189
|
<tr><td>
|
|
201
190
|
|
|
202
|
-
[
|
|
191
|
+
[MediaControl](./player.mediacontrol.md)
|
|
203
192
|
|
|
204
193
|
|
|
205
194
|
</td><td>
|
|
206
195
|
|
|
207
|
-
**_(BETA)_** `PLUGIN` that
|
|
196
|
+
**_(BETA)_** `PLUGIN` that provides basic playback controls UI and a foundation for developing custom UI.
|
|
208
197
|
|
|
209
198
|
|
|
210
199
|
</td></tr>
|
|
211
200
|
<tr><td>
|
|
212
201
|
|
|
213
|
-
[
|
|
202
|
+
[MultiCamera](./player.multicamera.md)
|
|
214
203
|
|
|
215
204
|
|
|
216
205
|
</td><td>
|
|
217
206
|
|
|
218
|
-
**_(BETA)_** `PLUGIN` that
|
|
207
|
+
**_(BETA)_** `PLUGIN` that adds support for loading multiple streams and switching between them using the media control UI.
|
|
219
208
|
|
|
220
209
|
|
|
221
210
|
</td></tr>
|
|
222
211
|
<tr><td>
|
|
223
212
|
|
|
224
|
-
[
|
|
213
|
+
[NerdStats](./player.nerdstats.md)
|
|
225
214
|
|
|
226
215
|
|
|
227
216
|
</td><td>
|
|
228
217
|
|
|
229
|
-
**_(BETA)_** `PLUGIN` that
|
|
218
|
+
**_(BETA)_** `PLUGIN` that displays useful network-related statistics.
|
|
230
219
|
|
|
231
220
|
|
|
232
221
|
</td></tr>
|
|
@@ -273,6 +262,17 @@ Description
|
|
|
273
262
|
**_(BETA)_** `PLUGIN` that displays a poster image in the background and a big play button on top when playback is stopped
|
|
274
263
|
|
|
275
264
|
|
|
265
|
+
</td></tr>
|
|
266
|
+
<tr><td>
|
|
267
|
+
|
|
268
|
+
[QualityLevels](./player.qualitylevels.md)
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
</td><td>
|
|
272
|
+
|
|
273
|
+
**_(BETA)_** `PLUGIN` that provides a UI to select the desired quality level of the playback.
|
|
274
|
+
|
|
275
|
+
|
|
276
276
|
</td></tr>
|
|
277
277
|
<tr><td>
|
|
278
278
|
|
|
@@ -491,7 +491,7 @@ Description
|
|
|
491
491
|
|
|
492
492
|
</td><td>
|
|
493
493
|
|
|
494
|
-
**_(BETA)_** Configuration options for the
|
|
494
|
+
**_(BETA)_** Configuration options for the plugin.
|
|
495
495
|
|
|
496
496
|
|
|
497
497
|
</td></tr>
|
|
@@ -530,56 +530,56 @@ Description
|
|
|
530
530
|
</td></tr>
|
|
531
531
|
<tr><td>
|
|
532
532
|
|
|
533
|
-
[
|
|
533
|
+
[PlaybackError](./player.playbackerror.md)
|
|
534
534
|
|
|
535
535
|
|
|
536
536
|
</td><td>
|
|
537
537
|
|
|
538
|
-
|
|
538
|
+
An error occurred during the playback.
|
|
539
539
|
|
|
540
540
|
|
|
541
541
|
</td></tr>
|
|
542
542
|
<tr><td>
|
|
543
543
|
|
|
544
|
-
[
|
|
544
|
+
[PlayerConfig](./player.playerconfig.md)
|
|
545
545
|
|
|
546
546
|
|
|
547
547
|
</td><td>
|
|
548
548
|
|
|
549
|
-
|
|
549
|
+
Configuration options for the player
|
|
550
550
|
|
|
551
551
|
|
|
552
552
|
</td></tr>
|
|
553
553
|
<tr><td>
|
|
554
554
|
|
|
555
|
-
[
|
|
555
|
+
[PlayerMediaSourceDesc](./player.playermediasourcedesc.md)
|
|
556
556
|
|
|
557
557
|
|
|
558
558
|
</td><td>
|
|
559
559
|
|
|
560
|
-
|
|
560
|
+
Describes a media source with its MIME type and URL.
|
|
561
561
|
|
|
562
562
|
|
|
563
563
|
</td></tr>
|
|
564
564
|
<tr><td>
|
|
565
565
|
|
|
566
|
-
[
|
|
566
|
+
[QualityLevel](./player.qualitylevel.md)
|
|
567
567
|
|
|
568
568
|
|
|
569
569
|
</td><td>
|
|
570
570
|
|
|
571
|
-
|
|
571
|
+
A level of quality within a media source/representation.
|
|
572
572
|
|
|
573
573
|
|
|
574
574
|
</td></tr>
|
|
575
575
|
<tr><td>
|
|
576
576
|
|
|
577
|
-
[
|
|
577
|
+
[QualityLevelsPluginSettings](./player.qualitylevelspluginsettings.md)
|
|
578
578
|
|
|
579
579
|
|
|
580
580
|
</td><td>
|
|
581
581
|
|
|
582
|
-
|
|
582
|
+
**_(BETA)_** Configuration options for the [QualityLevels](./player.qualitylevels.md) plugin.
|
|
583
583
|
|
|
584
584
|
|
|
585
585
|
</td></tr>
|
|
@@ -655,6 +655,15 @@ Description
|
|
|
655
655
|
</th></tr></thead>
|
|
656
656
|
<tbody><tr><td>
|
|
657
657
|
|
|
658
|
+
[ClapprStatsSettings](./player.clapprstatssettings.md)
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
</td><td>
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
</td></tr>
|
|
665
|
+
<tr><td>
|
|
666
|
+
|
|
658
667
|
[ClosedCaptionsPluginSettings](./player.closedcaptionspluginsettings.md)
|
|
659
668
|
|
|
660
669
|
|
|
@@ -759,7 +768,62 @@ An ISO 639-1 language code.
|
|
|
759
768
|
|
|
760
769
|
</td><td>
|
|
761
770
|
|
|
762
|
-
**_(BETA)_**
|
|
771
|
+
**_(BETA)_** Built-in media control elements.
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
</td></tr>
|
|
775
|
+
<tr><td>
|
|
776
|
+
|
|
777
|
+
[MediaControlLayerElement](./player.mediacontrollayerelement.md)
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
</td><td>
|
|
781
|
+
|
|
782
|
+
**_(BETA)_** Media control elements that appear in main layer, spanning the entire width of the player.
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
</td></tr>
|
|
786
|
+
<tr><td>
|
|
787
|
+
|
|
788
|
+
[MediaControlLeftElement](./player.mediacontrolleftelement.md)
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
</td><td>
|
|
792
|
+
|
|
793
|
+
**_(BETA)_** Media control elements that appear in the left area.
|
|
794
|
+
|
|
795
|
+
|
|
796
|
+
</td></tr>
|
|
797
|
+
<tr><td>
|
|
798
|
+
|
|
799
|
+
[MediaControlRightElement](./player.mediacontrolrightelement.md)
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
</td><td>
|
|
803
|
+
|
|
804
|
+
**_(BETA)_** Media control elements that appear in the right area.
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
</td></tr>
|
|
808
|
+
<tr><td>
|
|
809
|
+
|
|
810
|
+
[MediaControlSettings](./player.mediacontrolsettings.md)
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
</td><td>
|
|
814
|
+
|
|
815
|
+
**_(BETA)_** Specifies the allowed media control elements in each area. Can be used to restrict rendered media control elements.
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
</td></tr>
|
|
819
|
+
<tr><td>
|
|
820
|
+
|
|
821
|
+
[MenuOption](./player.menuoption.md)
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
</td><td>
|
|
825
|
+
|
|
826
|
+
**_(BETA)_**
|
|
763
827
|
|
|
764
828
|
|
|
765
829
|
</td></tr>
|
|
@@ -940,7 +1004,7 @@ A media source to fetch the media data from
|
|
|
940
1004
|
|
|
941
1005
|
</td><td>
|
|
942
1006
|
|
|
943
|
-
**_(BETA)_**
|
|
1007
|
+
**_(BETA)_** Time progress information indicated by Clappr CONTAINER\_PROGRESS and PLAYBACK\_PROGRESS events.
|
|
944
1008
|
|
|
945
1009
|
|
|
946
1010
|
</td></tr>
|
|
@@ -962,7 +1026,7 @@ A media source to fetch the media data from
|
|
|
962
1026
|
|
|
963
1027
|
</td><td>
|
|
964
1028
|
|
|
965
|
-
Playback time in seconds since the beginning of the stream
|
|
1029
|
+
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
|
|
966
1030
|
|
|
967
1031
|
|
|
968
1032
|
</td></tr>
|
|
@@ -20,6 +20,14 @@ export declare class MediaControl extends UICorePlugin
|
|
|
20
20
|
|
|
21
21
|
The methods exposed are to be used by the other plugins that extend the media control UI.
|
|
22
22
|
|
|
23
|
+
Configuration options:
|
|
24
|
+
|
|
25
|
+
- `mediaControl`<!-- -->: [MediaControlSettings](./player.mediacontrolsettings.md) - specifies the allowed media control elements in each area
|
|
26
|
+
|
|
27
|
+
- `persistConfig`<!-- -->: boolean - `common` option, makes the plugin persist the media control settings
|
|
28
|
+
|
|
29
|
+
- `chromeless`<!-- -->: boolean
|
|
30
|
+
|
|
23
31
|
## Constructors
|
|
24
32
|
|
|
25
33
|
<table><thead><tr><th>
|
|
@@ -218,7 +226,7 @@ Description
|
|
|
218
226
|
</td></tr>
|
|
219
227
|
<tr><td>
|
|
220
228
|
|
|
221
|
-
[
|
|
229
|
+
[mount(name, element)](./player.mediacontrol.mount.md)
|
|
222
230
|
|
|
223
231
|
|
|
224
232
|
</td><td>
|
|
@@ -229,20 +237,6 @@ Description
|
|
|
229
237
|
**_(BETA)_** Get a media control element DOM node
|
|
230
238
|
|
|
231
239
|
|
|
232
|
-
</td></tr>
|
|
233
|
-
<tr><td>
|
|
234
|
-
|
|
235
|
-
[handleCustomArea(handler)](./player.mediacontrol.handlecustomarea.md)
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
</td><td>
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
</td><td>
|
|
242
|
-
|
|
243
|
-
**_(BETA)_**
|
|
244
|
-
|
|
245
|
-
|
|
246
240
|
</td></tr>
|
|
247
241
|
<tr><td>
|
|
248
242
|
|
|
@@ -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) > [MediaControl](./player.mediacontrol.md) > [
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [MediaControl](./player.mediacontrol.md) > [mount](./player.mediacontrol.mount.md)
|
|
4
4
|
|
|
5
|
-
## MediaControl.
|
|
5
|
+
## MediaControl.mount() method
|
|
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
|
>
|
|
@@ -17,7 +17,7 @@ Get a media control element DOM node
|
|
|
17
17
|
**Signature:**
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
20
|
-
|
|
20
|
+
mount(name: MediaControlElement, element: ZeptoResult): void;
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Parameters
|
|
@@ -53,11 +53,25 @@ name
|
|
|
53
53
|
The name of the media control element
|
|
54
54
|
|
|
55
55
|
|
|
56
|
+
</td></tr>
|
|
57
|
+
<tr><td>
|
|
58
|
+
|
|
59
|
+
element
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
</td><td>
|
|
63
|
+
|
|
64
|
+
[ZeptoResult](./player.zeptoresult.md)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
</td><td>
|
|
68
|
+
|
|
69
|
+
|
|
56
70
|
</td></tr>
|
|
57
71
|
</tbody></table>
|
|
58
72
|
**Returns:**
|
|
59
73
|
|
|
60
|
-
|
|
74
|
+
void
|
|
61
75
|
|
|
62
76
|
The DOM node to render to or extend
|
|
63
77
|
|
|
@@ -71,9 +85,8 @@ Use this method to render custom media control UI in a plugin
|
|
|
71
85
|
```ts
|
|
72
86
|
class MyPlugin extends UICorePlugin {
|
|
73
87
|
override render() {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
clipText?.el.text('Here we go')
|
|
88
|
+
this.$el.html('<div data-clips>Here we go</div>')
|
|
89
|
+
this.core.getPlugin('media_control').mount('clips', this.$el)
|
|
77
90
|
return this
|
|
78
91
|
}
|
|
79
92
|
}
|
|
@@ -7,10 +7,12 @@
|
|
|
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
|
+
Built-in media control elements.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
export type MediaControlElement =
|
|
15
|
+
export type MediaControlElement = MediaControlLeftElement | MediaControlLayerElement | MediaControlRightElement;
|
|
16
16
|
```
|
|
17
|
+
**References:** [MediaControlLeftElement](./player.mediacontrolleftelement.md)<!-- -->, [MediaControlLayerElement](./player.mediacontrollayerelement.md)<!-- -->, [MediaControlRightElement](./player.mediacontrolrightelement.md)
|
|
18
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [MediaControlLayerElement](./player.mediacontrollayerelement.md)
|
|
4
|
+
|
|
5
|
+
## MediaControlLayerElement type
|
|
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
|
+
Media control elements that appear in main layer, spanning the entire width of the player.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type MediaControlLayerElement = 'seekbar' | 'seekBarContainer';
|
|
16
|
+
```
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [MediaControlLeftElement](./player.mediacontrolleftelement.md)
|
|
4
|
+
|
|
5
|
+
## MediaControlLeftElement type
|
|
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
|
+
Media control elements that appear in the left area.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type MediaControlLeftElement = 'clipText' | 'duration' | 'dvr' | 'playpause' | 'playstop' | 'position' | 'volume' | 'clips';
|
|
16
|
+
```
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [MediaControlRightElement](./player.mediacontrolrightelement.md)
|
|
4
|
+
|
|
5
|
+
## MediaControlRightElement type
|
|
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
|
+
Media control elements that appear in the right area.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type MediaControlRightElement = 'audiotracks' | 'cc' | 'fullscreen' | 'hd-indicator' | 'gear' | 'multicamera' | 'pip' | 'vr';
|
|
16
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [MediaControlSettings](./player.mediacontrolsettings.md)
|
|
4
|
+
|
|
5
|
+
## MediaControlSettings type
|
|
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
|
+
Specifies the allowed media control elements in each area. Can be used to restrict rendered media control elements.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type MediaControlSettings = {
|
|
16
|
+
left: MediaControlLeftElement[];
|
|
17
|
+
right: MediaControlRightElement[];
|
|
18
|
+
default: MediaControlLayerElement[];
|
|
19
|
+
seekEnabled: boolean;
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
**References:** [MediaControlLeftElement](./player.mediacontrolleftelement.md)<!-- -->, [MediaControlRightElement](./player.mediacontrolrightelement.md)<!-- -->, [MediaControlLayerElement](./player.mediacontrollayerelement.md)
|
|
23
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [MenuOption](./player.menuoption.md)
|
|
4
|
+
|
|
5
|
+
## MenuOption type
|
|
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
|
+
|
|
11
|
+
**Signature:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
export type MenuOption = {
|
|
15
|
+
label?: string;
|
|
16
|
+
labelKey?: string;
|
|
17
|
+
name: string;
|
|
18
|
+
handler?: () => void;
|
|
19
|
+
icon?: string;
|
|
20
|
+
};
|
|
21
|
+
```
|
package/docs/api/{player.clapprnerdstats._constructor_.md → player.nerdstats._constructor_.md}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
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) > [NerdStats](./player.nerdstats.md) > [(constructor)](./player.nerdstats._constructor_.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## NerdStats.(constructor)
|
|
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
|
-
Constructs a new instance of the `
|
|
10
|
+
Constructs a new instance of the `NerdStats` class
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
@@ -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) > [NerdStats](./player.nerdstats.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## NerdStats 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 NerdStats extends UICorePlugin
|
|
16
16
|
```
|
|
17
17
|
**Extends:** UICorePlugin
|
|
18
18
|
|
|
@@ -48,7 +48,7 @@ Description
|
|
|
48
48
|
</th></tr></thead>
|
|
49
49
|
<tbody><tr><td>
|
|
50
50
|
|
|
51
|
-
[(constructor)(core)](./player.
|
|
51
|
+
[(constructor)(core)](./player.nerdstats._constructor_.md)
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
</td><td>
|
|
@@ -56,7 +56,7 @@ Description
|
|
|
56
56
|
|
|
57
57
|
</td><td>
|
|
58
58
|
|
|
59
|
-
**_(BETA)_** Constructs a new instance of the `
|
|
59
|
+
**_(BETA)_** Constructs a new instance of the `NerdStats` class
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
</td></tr>
|
|
@@ -199,7 +199,7 @@ _(Optional)_ Mute the audio output in order to comply with browsers' autoplay po
|
|
|
199
199
|
|
|
200
200
|
</td><td>
|
|
201
201
|
|
|
202
|
-
_(Optional)_
|
|
202
|
+
_(Optional)_ Stream type. Should only be set if known in advance, as it should not change once determined. Otherwise it might cause inconsistencies in the UI plugins behavior, for instance, glitches with rendering of the DVR controls or seek bar.
|
|
203
203
|
|
|
204
204
|
|
|
205
205
|
</td></tr>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## PlayerConfig.playbackType property
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Stream type. Should only be set if known in advance, as it should not change once determined. Otherwise it might cause inconsistencies in the UI plugins behavior, for instance, glitches with rendering of the DVR controls or seek bar.
|
|
8
8
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## QualityLevel interface
|
|
6
6
|
|
|
7
|
-
A level of quality within a media source.
|
|
7
|
+
A level of quality within a media source/representation.
|
|
8
8
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
@@ -69,7 +69,7 @@ number
|
|
|
69
69
|
|
|
70
70
|
</td><td>
|
|
71
71
|
|
|
72
|
-
Height of the video, pixels.
|
|
72
|
+
Height of the video frame, pixels.
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
</td></tr>
|
|
@@ -88,7 +88,7 @@ number
|
|
|
88
88
|
|
|
89
89
|
</td><td>
|
|
90
90
|
|
|
91
|
-
Zero-based index of the quality level.
|
|
91
|
+
Zero-based index of the quality level. Quality levels go from low to high
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
</td></tr>
|
|
@@ -107,7 +107,7 @@ number
|
|
|
107
107
|
|
|
108
108
|
</td><td>
|
|
109
109
|
|
|
110
|
-
Width of the video, pixels.
|
|
110
|
+
Width of the video frame, pixels.
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
</td></tr>
|
|
@@ -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) > [events](./player.qualitylevels.events.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## QualityLevels.events 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
|
>
|