@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.
Files changed (65) hide show
  1. package/assets/clips/clips.ejs +1 -0
  2. package/assets/clips/clips.scss +23 -3
  3. package/assets/level-selector/list.ejs +9 -3
  4. package/assets/media-control/media-control.ejs +1 -9
  5. package/assets/media-control/media-control.scss +0 -25
  6. package/assets/media-control/width370.scss +4 -4
  7. package/dist/core.js +1 -1
  8. package/dist/index.css +602 -602
  9. package/dist/index.js +252 -229
  10. package/dist/player.d.ts +211 -144
  11. package/dist/plugins/index.css +1198 -1198
  12. package/dist/plugins/index.js +185 -167
  13. package/docs/api/{player.audioselector.md → player.audiotracks.md} +3 -3
  14. package/docs/api/player.contextmenu.md +2 -0
  15. package/docs/api/player.contextmenupluginsettings.md +2 -40
  16. package/docs/api/{player.contextmenupluginsettings.label.md → player.contextmenupluginsettings.options.md} +3 -3
  17. package/docs/api/player.md +78 -23
  18. package/docs/api/player.mediacontrol.md +8 -14
  19. package/docs/api/player.mediacontrolelement.md +4 -2
  20. package/docs/api/{player.contextmenupluginsettings.preventshowcontextmenu.md → player.mediacontrollayerelement.md} +5 -3
  21. package/docs/api/player.mediacontrolleftelement.md +16 -0
  22. package/docs/api/player.mediacontrolrightelement.md +16 -0
  23. package/docs/api/player.mediacontrolsettings.md +23 -0
  24. package/docs/api/{player.contextmenupluginsettings.url.md → player.menuoption.md} +10 -3
  25. package/docs/api/player.playbackrate.md +1 -1
  26. package/docs/api/player.playerconfig.md +1 -1
  27. package/docs/api/player.playerconfig.playbacktype.md +1 -1
  28. package/docs/api/{player.levelselector.events.md → player.qualitylevels.events.md} +2 -2
  29. package/docs/api/{player.levelselector.md → player.qualitylevels.md} +6 -6
  30. package/docs/api/{player.levelselectorpluginsettings.labels.md → player.qualitylevelspluginsettings.labels.md} +2 -2
  31. package/docs/api/{player.levelselectorpluginsettings.md → player.qualitylevelspluginsettings.md} +6 -6
  32. package/docs/api/{player.levelselectorpluginsettings.restrictresolution.md → player.qualitylevelspluginsettings.restrictresolution.md} +2 -2
  33. package/lib/plugins/clips/Clips.d.ts +21 -16
  34. package/lib/plugins/clips/Clips.d.ts.map +1 -1
  35. package/lib/plugins/clips/Clips.js +96 -98
  36. package/lib/plugins/clips/types.d.ts +19 -0
  37. package/lib/plugins/clips/types.d.ts.map +1 -0
  38. package/lib/plugins/clips/types.js +1 -0
  39. package/lib/plugins/clips/utils.d.ts +4 -0
  40. package/lib/plugins/clips/utils.d.ts.map +1 -0
  41. package/lib/plugins/clips/utils.js +36 -0
  42. package/lib/plugins/media-control/MediaControl.d.ts +4 -7
  43. package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
  44. package/lib/plugins/media-control/MediaControl.js +19 -31
  45. package/lib/plugins/utils.d.ts +9 -1
  46. package/lib/plugins/utils.d.ts.map +1 -1
  47. package/lib/plugins/utils.js +9 -10
  48. package/lib/plugins/vast-ads/loaderxml.js +2 -2
  49. package/lib/testUtils.d.ts.map +1 -1
  50. package/lib/testUtils.js +2 -5
  51. package/package.json +1 -1
  52. package/src/plugins/clips/Clips.ts +116 -135
  53. package/src/plugins/clips/__tests__/Clips.test.ts +72 -0
  54. package/src/plugins/clips/__tests__/__snapshots__/Clips.test.ts.snap +14 -0
  55. package/src/plugins/clips/types.ts +22 -0
  56. package/src/plugins/clips/utils.ts +54 -0
  57. package/src/plugins/level-selector/__tests__/__snapshots__/QualityLevels.test.ts.snap +18 -18
  58. package/src/plugins/media-control/MediaControl.ts +31 -58
  59. package/src/plugins/media-control/__tests__/__snapshots__/MediaControl.test.ts.snap +7 -35
  60. package/src/plugins/utils.ts +9 -7
  61. package/src/plugins/vast-ads/loaderxml.ts +2 -2
  62. package/src/testUtils.ts +2 -5
  63. package/temp/player.api.json +332 -262
  64. package/tsconfig.tsbuildinfo +1 -1
  65. 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) &gt; [@gcorevideo/player](./player.md) &gt; [AudioSelector](./player.audioselector.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [AudioTracks](./player.audiotracks.md)
4
4
 
5
- ## AudioSelector class
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 AudioSelector extends UICorePlugin
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
- [label?](./player.contextmenupluginsettings.label.md)
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
- string
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) &gt; [@gcorevideo/player](./player.md) &gt; [ContextMenuPluginSettings](./player.contextmenupluginsettings.md) &gt; [label](./player.contextmenupluginsettings.label.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [ContextMenuPluginSettings](./player.contextmenupluginsettings.md) &gt; [options](./player.contextmenupluginsettings.options.md)
4
4
 
5
- ## ContextMenuPluginSettings.label property
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
- label?: string;
13
+ options?: MenuOption[];
14
14
  ```
@@ -45,7 +45,7 @@ Description
45
45
  </th></tr></thead>
46
46
  <tbody><tr><td>
47
47
 
48
- [AudioSelector](./player.audioselector.md)
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
- [LevelSelectorPluginSettings](./player.levelselectorpluginsettings.md)
533
+ [PlaybackError](./player.playbackerror.md)
534
534
 
535
535
 
536
536
  </td><td>
537
537
 
538
- **_(BETA)_** Configuration options for the [level selector](./player.levelselector.md) plugin.
538
+ An error occurred during the playback.
539
539
 
540
540
 
541
541
  </td></tr>
542
542
  <tr><td>
543
543
 
544
- [PlaybackError](./player.playbackerror.md)
544
+ [PlayerConfig](./player.playerconfig.md)
545
545
 
546
546
 
547
547
  </td><td>
548
548
 
549
- An error occurred during the playback.
549
+ Configuration options for the player
550
550
 
551
551
 
552
552
  </td></tr>
553
553
  <tr><td>
554
554
 
555
- [PlayerConfig](./player.playerconfig.md)
555
+ [PlayerMediaSourceDesc](./player.playermediasourcedesc.md)
556
556
 
557
557
 
558
558
  </td><td>
559
559
 
560
- Configuration options for the player
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
- [PlayerMediaSourceDesc](./player.playermediasourcedesc.md)
566
+ [QualityLevel](./player.qualitylevel.md)
567
567
 
568
568
 
569
569
  </td><td>
570
570
 
571
- Describes a media source with its MIME type and URL.
571
+ A level of quality within a media source.
572
572
 
573
573
 
574
574
  </td></tr>
575
575
  <tr><td>
576
576
 
577
- [QualityLevel](./player.qualitylevel.md)
577
+ [QualityLevelsPluginSettings](./player.qualitylevelspluginsettings.md)
578
578
 
579
579
 
580
580
  </td><td>
581
581
 
582
- A level of quality within a media source.
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)_** Media control elements, mount points for additional plugins
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
- Media control elements, mount points for additional plugins
10
+ Built-in media control elements.
11
11
 
12
12
  **Signature:**
13
13
 
14
14
  ```typescript
15
- export type MediaControlElement = 'audiotracks' | 'cc' | 'clipText' | 'dvr' | 'duration' | 'fullscreen' | 'gear' | 'multicamera' | 'pip' | 'playbackRate' | 'position' | 'seekBarContainer' | 'vr' | 'volume';
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) &gt; [@gcorevideo/player](./player.md) &gt; [ContextMenuPluginSettings](./player.contextmenupluginsettings.md) &gt; [preventShowContextMenu](./player.contextmenupluginsettings.preventshowcontextmenu.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [MediaControlLayerElement](./player.mediacontrollayerelement.md)
4
4
 
5
- ## ContextMenuPluginSettings.preventShowContextMenu property
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
- preventShowContextMenu?: boolean;
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) &gt; [@gcorevideo/player](./player.md) &gt; [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) &gt; [@gcorevideo/player](./player.md) &gt; [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) &gt; [@gcorevideo/player](./player.md) &gt; [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) &gt; [@gcorevideo/player](./player.md) &gt; [ContextMenuPluginSettings](./player.contextmenupluginsettings.md) &gt; [url](./player.contextmenupluginsettings.url.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [MenuOption](./player.menuoption.md)
4
4
 
5
- ## ContextMenuPluginSettings.url property
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
- url?: string;
14
+ export type MenuOption = {
15
+ label?: string;
16
+ labelKey?: string;
17
+ name: string;
18
+ handler?: () => void;
19
+ icon?: string;
20
+ };
14
21
  ```
@@ -41,7 +41,7 @@ const player = new Player({
41
41
  { value: 1, label: '1x' },
42
42
  ],
43
43
  defaultValue: 1,
44
- } as PlaybackRateSettings,
44
+ },
45
45
  })
46
46
  ```
47
47
 
@@ -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)_ The type of playback (live stream or video on demand).
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
- The type of playback (live stream or video on demand).
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) &gt; [@gcorevideo/player](./player.md) &gt; [LevelSelector](./player.levelselector.md) &gt; [events](./player.levelselector.events.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [QualityLevels](./player.qualitylevels.md) &gt; [events](./player.qualitylevels.events.md)
4
4
 
5
- ## LevelSelector.events property
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) &gt; [@gcorevideo/player](./player.md) &gt; [LevelSelector](./player.levelselector.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [QualityLevels](./player.qualitylevels.md)
4
4
 
5
- ## LevelSelector class
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 LevelSelector extends UICorePlugin
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 - [LevelSelectorPluginSettings](./player.levelselectorpluginsettings.md)
29
+ Configuration options - [QualityLevelsPluginSettings](./player.qualitylevelspluginsettings.md)
30
30
 
31
31
  ## Example
32
32
 
33
33
 
34
34
  ```ts
35
35
  new Player({
36
- levelSelector: {
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.levelselector.events.md)
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) &gt; [@gcorevideo/player](./player.md) &gt; [LevelSelectorPluginSettings](./player.levelselectorpluginsettings.md) &gt; [labels](./player.levelselectorpluginsettings.labels.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [QualityLevelsPluginSettings](./player.qualitylevelspluginsettings.md) &gt; [labels](./player.qualitylevelspluginsettings.labels.md)
4
4
 
5
- ## LevelSelectorPluginSettings.labels property
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
  >
@@ -1,18 +1,18 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [LevelSelectorPluginSettings](./player.levelselectorpluginsettings.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [QualityLevelsPluginSettings](./player.qualitylevelspluginsettings.md)
4
4
 
5
- ## LevelSelectorPluginSettings interface
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 [level selector](./player.levelselector.md) plugin.
10
+ Configuration options for the [QualityLevels](./player.qualitylevels.md) plugin.
11
11
 
12
12
  **Signature:**
13
13
 
14
14
  ```typescript
15
- export interface LevelSelectorPluginSettings
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.levelselectorpluginsettings.labels.md)
43
+ [labels?](./player.qualitylevelspluginsettings.labels.md)
44
44
 
45
45
 
46
46
  </td><td>
@@ -59,7 +59,7 @@ Record&lt;number, string&gt;
59
59
  </td></tr>
60
60
  <tr><td>
61
61
 
62
- [restrictResolution?](./player.levelselectorpluginsettings.restrictresolution.md)
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) &gt; [@gcorevideo/player](./player.md) &gt; [LevelSelectorPluginSettings](./player.levelselectorpluginsettings.md) &gt; [restrictResolution](./player.levelselectorpluginsettings.restrictresolution.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [QualityLevelsPluginSettings](./player.qualitylevelspluginsettings.md) &gt; [restrictResolution](./player.qualitylevelspluginsettings.restrictresolution.md)
4
4
 
5
- ## LevelSelectorPluginSettings.restrictResolution property
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 | clips} plugin.
4
+ * Configuration options for the {@link ClipsPlugin} plugin.
5
5
  * @beta
6
6
  */
7
7
  export interface ClipsPluginSettings {
8
8
  /**
9
- * The text to display over the seekbar.
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 shows text over the seekbar to indicate the current clip.
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 ClipsPlugin extends UICorePlugin {
26
+ export declare class Clips extends UICorePlugin {
27
+ private barStyle;
24
28
  private clips;
25
- private duration;
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
- private _onCoreReady;
44
- private _onMediaControlContainerChanged;
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;