@gcorevideo/player 2.22.15 → 2.22.16
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 +1 -1
- package/dist/index.css +602 -602
- package/dist/index.js +252 -229
- package/dist/player.d.ts +211 -144
- package/dist/plugins/index.css +1198 -1198
- package/dist/plugins/index.js +185 -167
- package/docs/api/{player.audioselector.md → player.audiotracks.md} +3 -3
- package/docs/api/player.contextmenu.md +2 -0
- package/docs/api/player.contextmenupluginsettings.md +2 -40
- package/docs/api/{player.contextmenupluginsettings.label.md → player.contextmenupluginsettings.options.md} +3 -3
- package/docs/api/player.md +78 -23
- package/docs/api/player.mediacontrol.md +8 -14
- package/docs/api/player.mediacontrolelement.md +4 -2
- package/docs/api/{player.contextmenupluginsettings.preventshowcontextmenu.md → player.mediacontrollayerelement.md} +5 -3
- 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.contextmenupluginsettings.url.md → player.menuoption.md} +10 -3
- 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.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/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.map +1 -1
- package/lib/testUtils.js +2 -5
- package/package.json +1 -1
- 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/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/utils.ts +9 -7
- package/src/plugins/vast-ads/loaderxml.ts +2 -2
- package/src/testUtils.ts +2 -5
- package/temp/player.api.json +332 -262
- package/tsconfig.tsbuildinfo +1 -1
- 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) > [AudioTracks](./player.audiotracks.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## AudioTracks 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 AudioTracks extends UICorePlugin
|
|
16
16
|
```
|
|
17
17
|
**Extends:** UICorePlugin
|
|
18
18
|
|
|
@@ -20,6 +20,8 @@ export declare class ContextMenu extends UIContainerPlugin
|
|
|
20
20
|
|
|
21
21
|
Configuration options - [ContextMenuPluginSettings](./player.contextmenupluginsettings.md)
|
|
22
22
|
|
|
23
|
+
Should not be used together with [ClickToPause](./player.clicktopause.md) plugin
|
|
24
|
+
|
|
23
25
|
## Constructors
|
|
24
26
|
|
|
25
27
|
<table><thead><tr><th>
|
|
@@ -40,7 +40,7 @@ Description
|
|
|
40
40
|
</th></tr></thead>
|
|
41
41
|
<tbody><tr><td>
|
|
42
42
|
|
|
43
|
-
[
|
|
43
|
+
[options?](./player.contextmenupluginsettings.options.md)
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
</td><td>
|
|
@@ -48,45 +48,7 @@ Description
|
|
|
48
48
|
|
|
49
49
|
</td><td>
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
**_(BETA)_** _(Optional)_
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td></tr>
|
|
60
|
-
<tr><td>
|
|
61
|
-
|
|
62
|
-
[preventShowContextMenu?](./player.contextmenupluginsettings.preventshowcontextmenu.md)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
</td><td>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
</td><td>
|
|
69
|
-
|
|
70
|
-
boolean
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
</td><td>
|
|
74
|
-
|
|
75
|
-
**_(BETA)_** _(Optional)_
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
</td></tr>
|
|
79
|
-
<tr><td>
|
|
80
|
-
|
|
81
|
-
[url?](./player.contextmenupluginsettings.url.md)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
</td><td>
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
</td><td>
|
|
88
|
-
|
|
89
|
-
string
|
|
51
|
+
[MenuOption](./player.menuoption.md)<!-- -->\[\]
|
|
90
52
|
|
|
91
53
|
|
|
92
54
|
</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) > [ContextMenuPluginSettings](./player.contextmenupluginsettings.md) > [
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [ContextMenuPluginSettings](./player.contextmenupluginsettings.md) > [options](./player.contextmenupluginsettings.options.md)
|
|
4
4
|
|
|
5
|
-
## ContextMenuPluginSettings.
|
|
5
|
+
## ContextMenuPluginSettings.options 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
|
>
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
**Signature:**
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
|
|
13
|
+
options?: MenuOption[];
|
|
14
14
|
```
|
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>
|
|
@@ -185,17 +185,6 @@ Description
|
|
|
185
185
|
**_(BETA)_** `PLUGIN` that integrates with Google Analytics
|
|
186
186
|
|
|
187
187
|
|
|
188
|
-
</td></tr>
|
|
189
|
-
<tr><td>
|
|
190
|
-
|
|
191
|
-
[LevelSelector](./player.levelselector.md)
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
</td><td>
|
|
195
|
-
|
|
196
|
-
**_(BETA)_** `PLUGIN` that provides a UI to select the desired quality level of the playback.
|
|
197
|
-
|
|
198
|
-
|
|
199
188
|
</td></tr>
|
|
200
189
|
<tr><td>
|
|
201
190
|
|
|
@@ -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
|
|
|
@@ -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.
|
|
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>
|
|
@@ -759,7 +759,62 @@ An ISO 639-1 language code.
|
|
|
759
759
|
|
|
760
760
|
</td><td>
|
|
761
761
|
|
|
762
|
-
**_(BETA)_**
|
|
762
|
+
**_(BETA)_** Built-in media control elements.
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
</td></tr>
|
|
766
|
+
<tr><td>
|
|
767
|
+
|
|
768
|
+
[MediaControlLayerElement](./player.mediacontrollayerelement.md)
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
</td><td>
|
|
772
|
+
|
|
773
|
+
**_(BETA)_** Media control elements that appear in main layer, spanning the entire width of the player.
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
</td></tr>
|
|
777
|
+
<tr><td>
|
|
778
|
+
|
|
779
|
+
[MediaControlLeftElement](./player.mediacontrolleftelement.md)
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
</td><td>
|
|
783
|
+
|
|
784
|
+
**_(BETA)_** Media control elements that appear in the left area.
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
</td></tr>
|
|
788
|
+
<tr><td>
|
|
789
|
+
|
|
790
|
+
[MediaControlRightElement](./player.mediacontrolrightelement.md)
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
</td><td>
|
|
794
|
+
|
|
795
|
+
**_(BETA)_** Media control elements that appear in the right area.
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
</td></tr>
|
|
799
|
+
<tr><td>
|
|
800
|
+
|
|
801
|
+
[MediaControlSettings](./player.mediacontrolsettings.md)
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
</td><td>
|
|
805
|
+
|
|
806
|
+
**_(BETA)_** Specifies the allowed media control elements in each area. Can be used to restrict rendered media control elements.
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
</td></tr>
|
|
810
|
+
<tr><td>
|
|
811
|
+
|
|
812
|
+
[MenuOption](./player.menuoption.md)
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
</td><td>
|
|
816
|
+
|
|
817
|
+
**_(BETA)_**
|
|
763
818
|
|
|
764
819
|
|
|
765
820
|
</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>
|
|
@@ -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
|
|
|
@@ -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
|
+
|
|
@@ -1,14 +1,16 @@
|
|
|
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) > [MediaControlLayerElement](./player.mediacontrollayerelement.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## MediaControlLayerElement type
|
|
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
|
+
Media control elements that appear in main layer, spanning the entire width of the player.
|
|
11
|
+
|
|
10
12
|
**Signature:**
|
|
11
13
|
|
|
12
14
|
```typescript
|
|
13
|
-
|
|
15
|
+
export type MediaControlLayerElement = 'seekbar' | 'seekBarContainer';
|
|
14
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';
|
|
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
|
+
|
|
@@ -1,14 +1,21 @@
|
|
|
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) > [MenuOption](./player.menuoption.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## MenuOption type
|
|
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
|
+
|
|
10
11
|
**Signature:**
|
|
11
12
|
|
|
12
13
|
```typescript
|
|
13
|
-
|
|
14
|
+
export type MenuOption = {
|
|
15
|
+
label?: string;
|
|
16
|
+
labelKey?: string;
|
|
17
|
+
name: string;
|
|
18
|
+
handler?: () => void;
|
|
19
|
+
icon?: string;
|
|
20
|
+
};
|
|
14
21
|
```
|
|
@@ -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
|
|
|
@@ -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
|
>
|
|
@@ -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
|
>
|
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
import { UICorePlugin } from '@clappr/core';
|
|
2
2
|
import '../../../assets/clips/clips.scss';
|
|
3
3
|
/**
|
|
4
|
-
* Configuration options for the {@link ClipsPlugin
|
|
4
|
+
* Configuration options for the {@link ClipsPlugin} plugin.
|
|
5
5
|
* @beta
|
|
6
6
|
*/
|
|
7
7
|
export interface ClipsPluginSettings {
|
|
8
8
|
/**
|
|
9
|
-
* The text
|
|
9
|
+
* The compiled text of the clips description, one clip per line in format :
|
|
10
|
+
* `HH:MM:SS text` or `MM:SS text` or `SS text`
|
|
10
11
|
*/
|
|
11
12
|
text: string;
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
|
-
* `PLUGIN` that
|
|
15
|
+
* `PLUGIN` that allows marking up the timeline of the video
|
|
15
16
|
* @beta
|
|
16
17
|
* @remarks
|
|
18
|
+
* The plugin decorates the seekbar with notches to indicate the clips of the video and displays current clip text in the left panel
|
|
19
|
+
*
|
|
17
20
|
* Depends on:
|
|
18
21
|
*
|
|
19
22
|
* - {@link MediaControl}
|
|
20
23
|
*
|
|
21
24
|
* Configuration options - {@link ClipsPluginSettings}
|
|
22
25
|
*/
|
|
23
|
-
export declare class
|
|
26
|
+
export declare class Clips extends UICorePlugin {
|
|
27
|
+
private barStyle;
|
|
24
28
|
private clips;
|
|
25
|
-
private
|
|
26
|
-
private durationGetting;
|
|
27
|
-
private _oldContainer;
|
|
29
|
+
private oldContainer;
|
|
28
30
|
private svgMask;
|
|
31
|
+
private static readonly template;
|
|
29
32
|
/**
|
|
30
33
|
* @internal
|
|
31
34
|
*/
|
|
@@ -36,22 +39,24 @@ export declare class ClipsPlugin extends UICorePlugin {
|
|
|
36
39
|
get attributes(): {
|
|
37
40
|
class: string;
|
|
38
41
|
};
|
|
42
|
+
get version(): string;
|
|
43
|
+
get supportedVersion(): {
|
|
44
|
+
min: string;
|
|
45
|
+
};
|
|
39
46
|
/**
|
|
40
47
|
* @internal
|
|
41
48
|
*/
|
|
42
49
|
bindEvents(): void;
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
render(): this;
|
|
51
|
+
destroy(): import("@clappr/core").UIObject;
|
|
52
|
+
disable(): void;
|
|
53
|
+
enable(): void;
|
|
54
|
+
private onCoreReady;
|
|
55
|
+
private onMcRender;
|
|
56
|
+
private onContainerChanged;
|
|
45
57
|
private playerResize;
|
|
46
|
-
private _bindContainerEvents;
|
|
47
58
|
private onTimeUpdate;
|
|
48
59
|
private parseClips;
|
|
49
|
-
/**
|
|
50
|
-
* Returns the text of the current clip.
|
|
51
|
-
* @param time - The current time of the player.
|
|
52
|
-
* @returns The text of the current clip.
|
|
53
|
-
*/
|
|
54
|
-
getText(time: number): string;
|
|
55
60
|
private makeSvg;
|
|
56
61
|
private setSVGMask;
|
|
57
62
|
private setClipText;
|