@gcorevideo/player 2.21.3 → 2.21.6

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 (98) hide show
  1. package/assets/audio-selector/style.scss +1 -1
  2. package/assets/audio-selector/track-selector.ejs +3 -3
  3. package/assets/bottom-gear/bottomgear.ejs +2 -2
  4. package/assets/dvr-controls/dvr_controls.scss +7 -25
  5. package/assets/dvr-controls/index.ejs +2 -2
  6. package/assets/media-control/container.scss +1 -1
  7. package/assets/media-control/media-control.ejs +1 -6
  8. package/assets/media-control/media-control.scss +14 -7
  9. package/assets/media-control/width270.scss +1 -1
  10. package/assets/media-control/width370.scss +5 -5
  11. package/assets/playback-rate/button.ejs +2 -2
  12. package/assets/playback-rate/list.ejs +4 -4
  13. package/assets/style/theme.scss +1 -1
  14. package/assets/subtitles/combobox.ejs +5 -5
  15. package/assets/subtitles/string.ejs +1 -1
  16. package/assets/subtitles/style.scss +2 -2
  17. package/dist/core.js +2 -1
  18. package/dist/index.css +993 -993
  19. package/dist/index.js +199 -178
  20. package/dist/player.d.ts +141 -119
  21. package/dist/plugins/index.css +1118 -1118
  22. package/dist/plugins/index.js +191 -173
  23. package/docs/api/player.bottomgear.getelement.md +2 -2
  24. package/docs/api/player.bottomgear.md +1 -1
  25. package/docs/api/{player.subtitles.hide.md → player.closedcaptions.hide.md} +2 -2
  26. package/docs/api/{player.subtitles.md → player.closedcaptions.md} +11 -11
  27. package/docs/api/{player.subtitles.show.md → player.closedcaptions.show.md} +2 -2
  28. package/docs/api/player.closedcaptionspluginsettings.md +13 -0
  29. package/docs/api/player.gearitemelement.md +6 -4
  30. package/docs/api/player.gearoptionsitem.md +16 -0
  31. package/docs/api/player.md +48 -12
  32. package/docs/api/player.mediacontrol.putelement.md +2 -2
  33. package/docs/api/player.mediacontrolelement.md +1 -1
  34. package/docs/api/player.playbackrate.md +1 -1
  35. package/docs/api/player.subtitlespluginsettings.md +18 -0
  36. package/docs/api/player.texttrackitem.id.md +11 -0
  37. package/docs/api/player.texttrackitem.md +87 -0
  38. package/docs/api/player.texttrackitem.name.md +11 -0
  39. package/docs/api/player.texttrackitem.track.md +11 -0
  40. package/lib/index.d.ts +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/index.plugins.d.ts +2 -1
  43. package/lib/index.plugins.d.ts.map +1 -1
  44. package/lib/index.plugins.js +2 -1
  45. package/lib/playback/dash-playback/DashPlayback.d.ts.map +1 -1
  46. package/lib/playback/dash-playback/DashPlayback.js +1 -0
  47. package/lib/plugins/audio-selector/AudioSelector.d.ts +2 -3
  48. package/lib/plugins/audio-selector/AudioSelector.d.ts.map +1 -1
  49. package/lib/plugins/audio-selector/AudioSelector.js +6 -7
  50. package/lib/plugins/bottom-gear/BottomGear.d.ts +6 -2
  51. package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
  52. package/lib/plugins/bottom-gear/BottomGear.js +2 -1
  53. package/lib/plugins/dvr-controls/DvrControls.d.ts +0 -3
  54. package/lib/plugins/dvr-controls/DvrControls.d.ts.map +1 -1
  55. package/lib/plugins/dvr-controls/DvrControls.js +13 -38
  56. package/lib/plugins/media-control/MediaControl.d.ts +14 -18
  57. package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
  58. package/lib/plugins/media-control/MediaControl.js +105 -72
  59. package/lib/plugins/picture-in-picture/PictureInPicture.d.ts +1 -0
  60. package/lib/plugins/picture-in-picture/PictureInPicture.d.ts.map +1 -1
  61. package/lib/plugins/picture-in-picture/PictureInPicture.js +4 -4
  62. package/lib/plugins/playback-rate/PlaybackRate.d.ts +0 -1
  63. package/lib/plugins/playback-rate/PlaybackRate.d.ts.map +1 -1
  64. package/lib/plugins/playback-rate/PlaybackRate.js +23 -14
  65. package/lib/plugins/subtitles/ClosedCaptions.d.ts +118 -0
  66. package/lib/plugins/subtitles/ClosedCaptions.d.ts.map +1 -0
  67. package/lib/plugins/subtitles/ClosedCaptions.js +348 -0
  68. package/lib/plugins/subtitles/Subtitles.d.ts +12 -9
  69. package/lib/plugins/subtitles/Subtitles.d.ts.map +1 -1
  70. package/lib/plugins/subtitles/Subtitles.js +31 -32
  71. package/lib/testUtils.d.ts +26 -19
  72. package/lib/testUtils.d.ts.map +1 -1
  73. package/lib/testUtils.js +30 -45
  74. package/package.json +1 -1
  75. package/src/index.plugins.ts +2 -1
  76. package/src/index.ts +1 -1
  77. package/src/playback/dash-playback/DashPlayback.ts +1 -0
  78. package/src/plugins/audio-selector/AudioSelector.ts +9 -8
  79. package/src/plugins/bottom-gear/BottomGear.ts +11 -4
  80. package/src/plugins/bottom-gear/__tests__/BottomGear.test.ts +1 -1
  81. package/src/plugins/bottom-gear/__tests__/__snapshots__/BottomGear.test.ts.snap +2 -2
  82. package/src/plugins/dvr-controls/DvrControls.ts +16 -44
  83. package/src/plugins/dvr-controls/__tests__/DvrControls.test.ts +18 -22
  84. package/src/plugins/dvr-controls/__tests__/__snapshots__/DvrControls.test.ts.snap +6 -30
  85. package/src/plugins/media-control/MediaControl.ts +130 -85
  86. package/src/plugins/media-control/__tests__/MediaControl.test.ts +132 -0
  87. package/src/plugins/media-control/__tests__/__snapshots__/MediaControl.test.ts.snap +299 -0
  88. package/src/plugins/picture-in-picture/PictureInPicture.ts +5 -5
  89. package/src/plugins/playback-rate/PlaybackRate.ts +142 -100
  90. package/src/plugins/playback-rate/__tests__/PlaybackRate.test.ts +65 -0
  91. package/src/plugins/playback-rate/__tests__/__snapshots__/PlaybackRate.test.ts.snap +11 -0
  92. package/src/plugins/subtitles/{Subtitles.ts → ClosedCaptions.ts} +42 -34
  93. package/src/plugins/subtitles/__tests__/ClosedCaptions.test.ts +58 -0
  94. package/src/plugins/subtitles/__tests__/__snapshots__/ClosedCaptions.test.ts.snap +25 -0
  95. package/src/testUtils.ts +30 -45
  96. package/temp/player.api.json +269 -89
  97. package/tsconfig.tsbuildinfo +1 -1
  98. package/src/plugins/index.ts +0 -39
@@ -10,7 +10,7 @@
10
10
  **Signature:**
11
11
 
12
12
  ```typescript
13
- getElement(name: GearItemElement): ZeptoResult | null;
13
+ getElement(name: GearOptionsItem): ZeptoResult | null;
14
14
  ```
15
15
 
16
16
  ## Parameters
@@ -38,7 +38,7 @@ name
38
38
 
39
39
  </td><td>
40
40
 
41
- [GearItemElement](./player.gearitemelement.md)
41
+ [GearOptionsItem](./player.gearoptionsitem.md)
42
42
 
43
43
 
44
44
  </td><td>
@@ -22,7 +22,7 @@ The plugins provides a base for attaching custom settings UI in the gear menu
22
22
 
23
23
  Depends on:
24
24
 
25
- - [media\_control](./player.mediacontrol.md)
25
+ - [MediaControl](./player.mediacontrol.md)
26
26
 
27
27
  ## Methods
28
28
 
@@ -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; [Subtitles](./player.subtitles.md) &gt; [hide](./player.subtitles.hide.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [ClosedCaptions](./player.closedcaptions.md) &gt; [hide](./player.closedcaptions.hide.md)
4
4
 
5
- ## Subtitles.hide() method
5
+ ## ClosedCaptions.hide() 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
  >
@@ -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; [Subtitles](./player.subtitles.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [ClosedCaptions](./player.closedcaptions.md)
4
4
 
5
- ## Subtitles class
5
+ ## ClosedCaptions 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,31 +12,31 @@
12
12
  **Signature:**
13
13
 
14
14
  ```typescript
15
- export declare class Subtitles extends UICorePlugin
15
+ export declare class ClosedCaptions extends UICorePlugin
16
16
  ```
17
17
  **Extends:** UICorePlugin
18
18
 
19
19
  ## Remarks
20
20
 
21
+ The plugin is activated when closed captions tracks are provided with the media source. It shows a familiar "CC" button with a dropdown menu to select the subtitles language.
22
+
21
23
  Depends on:
22
24
 
23
25
  - [MediaControl](./player.mediacontrol.md)
24
26
 
25
- Configuration options:
26
-
27
- - subtitles.language - The language of the subtitles to select by default.
27
+ Configuration options - [ClosedCaptionsPluginSettings](./player.closedcaptionspluginsettings.md)
28
28
 
29
29
  ## Example
30
30
 
31
31
 
32
32
  ```ts
33
- import { Subtitles } from '@gcorevideo/player'
33
+ import { ClosedCaptions } from '@gcorevideo/player'
34
34
 
35
- Player.registerPlugin(Subtitles)
35
+ Player.registerPlugin(ClosedCaptions)
36
36
 
37
37
  new Player({
38
38
  ...
39
- subtitles: {
39
+ cc: {
40
40
  language: 'en',
41
41
  },
42
42
  })
@@ -62,7 +62,7 @@ Description
62
62
  </th></tr></thead>
63
63
  <tbody><tr><td>
64
64
 
65
- [hide()](./player.subtitles.hide.md)
65
+ [hide()](./player.closedcaptions.hide.md)
66
66
 
67
67
 
68
68
  </td><td>
@@ -76,7 +76,7 @@ Description
76
76
  </td></tr>
77
77
  <tr><td>
78
78
 
79
- [show()](./player.subtitles.show.md)
79
+ [show()](./player.closedcaptions.show.md)
80
80
 
81
81
 
82
82
  </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; [Subtitles](./player.subtitles.md) &gt; [show](./player.subtitles.show.md)
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [ClosedCaptions](./player.closedcaptions.md) &gt; [show](./player.closedcaptions.show.md)
4
4
 
5
- ## Subtitles.show() method
5
+ ## ClosedCaptions.show() 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
  >
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [ClosedCaptionsPluginSettings](./player.closedcaptionspluginsettings.md)
4
+
5
+ ## ClosedCaptionsPluginSettings type
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ export type ClosedCaptionsPluginSettings = {
11
+ language?: string;
12
+ };
13
+ ```
@@ -4,13 +4,15 @@
4
4
 
5
5
  ## GearItemElement 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.
7
+ > Warning: This API is now obsolete.
8
+ >
9
+ > Use [GearOptionsItem](./player.gearoptionsitem.md) instead
8
10
  >
9
-
10
- An element inside the gear menu
11
11
 
12
12
  **Signature:**
13
13
 
14
14
  ```typescript
15
- export type GearItemElement = 'quality' | 'rate' | 'nerd';
15
+ export type GearItemElement = GearOptionsItem;
16
16
  ```
17
+ **References:** [GearOptionsItem](./player.gearoptionsitem.md)
18
+
@@ -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; [GearOptionsItem](./player.gearoptionsitem.md)
4
+
5
+ ## GearOptionsItem 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
+ An element inside the gear menu
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ export type GearOptionsItem = 'quality' | 'rate' | 'nerd';
16
+ ```
@@ -10,7 +10,7 @@ Video player for the Gcore streaming platform
10
10
 
11
11
  This package provides a video player for the Gcore streaming platform. It is built on top of the [Clappr](https://github.com/clappr/clappr) library and provides a framework for building custom integrations. Start with [Player](./player.player.md) for more information.
12
12
 
13
- Various plugins (marked with `PLUGIN` keyword) are available to extend the player with additional features.
13
+ Various plugins (marked with `PLUGIN` keyword) are available to extend the core functionality with additional features.
14
14
 
15
15
  ## Example
16
16
 
@@ -119,6 +119,17 @@ Description
119
119
  **_(BETA)_** `PLUGIN` that shows text over the seekbar to indicate the current clip.
120
120
 
121
121
 
122
+ </td></tr>
123
+ <tr><td>
124
+
125
+ [ClosedCaptions](./player.closedcaptions.md)
126
+
127
+
128
+ </td><td>
129
+
130
+ **_(BETA)_** `PLUGIN` that provides a UI to select the subtitles when available.
131
+
132
+
122
133
  </td></tr>
123
134
  <tr><td>
124
135
 
@@ -317,17 +328,6 @@ Description
317
328
  **_(BETA)_** `PLUGIN` that shows a pending operation indicator when playback is buffering or in a similar state
318
329
 
319
330
 
320
- </td></tr>
321
- <tr><td>
322
-
323
- [Subtitles](./player.subtitles.md)
324
-
325
-
326
- </td><td>
327
-
328
- **_(BETA)_** `PLUGIN` that provides a UI to select the subtitles when available.
329
-
330
-
331
331
  </td></tr>
332
332
  <tr><td>
333
333
 
@@ -615,6 +615,15 @@ A level of quality within a media source.
615
615
  **_(BETA)_** Plugin settings
616
616
 
617
617
 
618
+ </td></tr>
619
+ <tr><td>
620
+
621
+ [TextTrackItem](./player.texttrackitem.md)
622
+
623
+
624
+ </td><td>
625
+
626
+
618
627
  </td></tr>
619
628
  <tr><td>
620
629
 
@@ -655,6 +664,15 @@ Description
655
664
  </th></tr></thead>
656
665
  <tbody><tr><td>
657
666
 
667
+ [ClosedCaptionsPluginSettings](./player.closedcaptionspluginsettings.md)
668
+
669
+
670
+ </td><td>
671
+
672
+
673
+ </td></tr>
674
+ <tr><td>
675
+
658
676
  [ContainerPluginConstructor](./player.containerpluginconstructor.md)
659
677
 
660
678
 
@@ -724,6 +742,15 @@ Levels of severity of errors. Non-fatal errors usually can be ignored.
724
742
  [GearItemElement](./player.gearitemelement.md)
725
743
 
726
744
 
745
+ </td><td>
746
+
747
+
748
+ </td></tr>
749
+ <tr><td>
750
+
751
+ [GearOptionsItem](./player.gearoptionsitem.md)
752
+
753
+
727
754
  </td><td>
728
755
 
729
756
  **_(BETA)_** An element inside the gear menu
@@ -855,6 +882,15 @@ A media source to fetch the media data from
855
882
 
856
883
 
857
884
 
885
+ </td></tr>
886
+ <tr><td>
887
+
888
+ [SubtitlesPluginSettings](./player.subtitlespluginsettings.md)
889
+
890
+
891
+ </td><td>
892
+
893
+
858
894
  </td></tr>
859
895
  <tr><td>
860
896
 
@@ -10,7 +10,7 @@
10
10
  **Signature:**
11
11
 
12
12
  ```typescript
13
- putElement(name: MediaControlElement, element: ZeptoResult): void;
13
+ putElement(name: MediaControlElement, element: HTMLElement): void;
14
14
  ```
15
15
 
16
16
  ## Parameters
@@ -52,7 +52,7 @@ element
52
52
 
53
53
  </td><td>
54
54
 
55
- [ZeptoResult](./player.zeptoresult.md)
55
+ HTMLElement
56
56
 
57
57
 
58
58
  </td><td>
@@ -12,5 +12,5 @@ Media control elements, mount points for additional plugins
12
12
  **Signature:**
13
13
 
14
14
  ```typescript
15
- export type MediaControlElement = 'audioTracksSelector' | 'clipText' | 'gear' | 'pip' | 'playbackRate' | 'seekBarContainer' | 'subtitlesSelector';
15
+ export type MediaControlElement = 'audiotracks' | 'clipText' | 'gear' | 'pip' | 'playbackRate' | 'seekBarContainer' | 'cc';
16
16
  ```
@@ -24,7 +24,7 @@ Depends on:
24
24
 
25
25
  - [bottom\_gear](./player.bottomgear.md)
26
26
 
27
- It renders a button in the gear menu, which opens a dropdown with the options to change the playback rate.
27
+ It renders a button in the gear menu, which opens a dropdown with the options to change the playback rate. Note that the playback rate change is supported only for VOD or DVR enabled live streams.
28
28
 
29
29
  ## Constructors
30
30
 
@@ -0,0 +1,18 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [SubtitlesPluginSettings](./player.subtitlespluginsettings.md)
4
+
5
+ ## SubtitlesPluginSettings type
6
+
7
+ > Warning: This API is now obsolete.
8
+ >
9
+ > Use [ClosedCaptionsPluginSettings](./player.closedcaptionspluginsettings.md) instead.
10
+ >
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ export type SubtitlesPluginSettings = ClosedCaptionsPluginSettings;
16
+ ```
17
+ **References:** [ClosedCaptionsPluginSettings](./player.closedcaptionspluginsettings.md)
18
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [TextTrackItem](./player.texttrackitem.md) &gt; [id](./player.texttrackitem.id.md)
4
+
5
+ ## TextTrackItem.id property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ id: number;
11
+ ```
@@ -0,0 +1,87 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [TextTrackItem](./player.texttrackitem.md)
4
+
5
+ ## TextTrackItem interface
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ export interface TextTrackItem
11
+ ```
12
+
13
+ ## Properties
14
+
15
+ <table><thead><tr><th>
16
+
17
+ Property
18
+
19
+
20
+ </th><th>
21
+
22
+ Modifiers
23
+
24
+
25
+ </th><th>
26
+
27
+ Type
28
+
29
+
30
+ </th><th>
31
+
32
+ Description
33
+
34
+
35
+ </th></tr></thead>
36
+ <tbody><tr><td>
37
+
38
+ [id](./player.texttrackitem.id.md)
39
+
40
+
41
+ </td><td>
42
+
43
+
44
+ </td><td>
45
+
46
+ number
47
+
48
+
49
+ </td><td>
50
+
51
+
52
+ </td></tr>
53
+ <tr><td>
54
+
55
+ [name](./player.texttrackitem.name.md)
56
+
57
+
58
+ </td><td>
59
+
60
+
61
+ </td><td>
62
+
63
+ string
64
+
65
+
66
+ </td><td>
67
+
68
+
69
+ </td></tr>
70
+ <tr><td>
71
+
72
+ [track](./player.texttrackitem.track.md)
73
+
74
+
75
+ </td><td>
76
+
77
+
78
+ </td><td>
79
+
80
+ TextTrack
81
+
82
+
83
+ </td><td>
84
+
85
+
86
+ </td></tr>
87
+ </tbody></table>
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [TextTrackItem](./player.texttrackitem.md) &gt; [name](./player.texttrackitem.name.md)
4
+
5
+ ## TextTrackItem.name property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ name: string;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [TextTrackItem](./player.texttrackitem.md) &gt; [track](./player.texttrackitem.track.md)
4
+
5
+ ## TextTrackItem.track property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ track: TextTrack;
11
+ ```
package/lib/index.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * It is built on top of the {@link https://github.com/clappr/clappr | Clappr} library and provides a framework for building custom integrations.
7
7
  * Start with {@link Player} for more information.
8
8
  *
9
- * Various plugins (marked with `PLUGIN` keyword) are available to extend the player with additional features.
9
+ * Various plugins (marked with `PLUGIN` keyword) are available to extend the core functionality with additional features.
10
10
  * @example
11
11
  * ```ts
12
12
  * import { Player, MediaControl, ErrorScreen } from '@gcorevideo/player'
package/lib/index.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * It is built on top of the {@link https://github.com/clappr/clappr | Clappr} library and provides a framework for building custom integrations.
7
7
  * Start with {@link Player} for more information.
8
8
  *
9
- * Various plugins (marked with `PLUGIN` keyword) are available to extend the player with additional features.
9
+ * Various plugins (marked with `PLUGIN` keyword) are available to extend the core functionality with additional features.
10
10
  * @example
11
11
  * ```ts
12
12
  * import { Player, MediaControl, ErrorScreen } from '@gcorevideo/player'
@@ -23,7 +23,8 @@ export * from "./plugins/share/Share.js";
23
23
  export * from "./plugins/skip-time/SkipTime.js";
24
24
  export * from "./plugins/spinner-three-bounce/SpinnerThreeBounce.js";
25
25
  export * from "./plugins/source-controller/SourceController.js";
26
- export * from "./plugins/subtitles/Subtitles.js";
26
+ export * from "./plugins/subtitles/ClosedCaptions.js";
27
+ export { ClosedCaptions as Subtitles } from "./plugins/subtitles/ClosedCaptions.js";
27
28
  export * from "./plugins/telemetry/Telemetry.js";
28
29
  export * from "./plugins/thumbnails/Thumbnails.js";
29
30
  export * from "./plugins/volume-fade/VolumeFade.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.plugins.d.ts","sourceRoot":"","sources":["../src/index.plugins.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAEnC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAE7C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wBAAwB,CAAC;AACvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sDAAsD,CAAC;AACrE,cAAc,iDAAiD,CAAC;AAChE,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AAGnD,cAAc,qCAAqC,CAAC"}
1
+ {"version":3,"file":"index.plugins.d.ts","sourceRoot":"","sources":["../src/index.plugins.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAEnC,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8BAA8B,CAAC;AAE7C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wBAAwB,CAAC;AACvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sDAAsD,CAAC;AACrE,cAAc,iDAAiD,CAAC;AAChE,cAAc,uCAAuC,CAAC;AACtD,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACpF,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AAGnD,cAAc,qCAAqC,CAAC"}
@@ -24,7 +24,8 @@ export * from "./plugins/share/Share.js";
24
24
  export * from "./plugins/skip-time/SkipTime.js";
25
25
  export * from "./plugins/spinner-three-bounce/SpinnerThreeBounce.js";
26
26
  export * from "./plugins/source-controller/SourceController.js";
27
- export * from "./plugins/subtitles/Subtitles.js";
27
+ export * from "./plugins/subtitles/ClosedCaptions.js";
28
+ export { ClosedCaptions as Subtitles } from "./plugins/subtitles/ClosedCaptions.js"; // TODO remove in future versions
28
29
  export * from "./plugins/telemetry/Telemetry.js";
29
30
  export * from "./plugins/thumbnails/Thumbnails.js";
30
31
  // _ vast-ads
@@ -1 +1 @@
1
- {"version":3,"file":"DashPlayback.d.ts","sourceRoot":"","sources":["../../../src/playback/dash-playback/DashPlayback.ts"],"names":[],"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BX,aAAa;IAqBb,iBAAiB;IAW1B,IAAI,UAAU,YASb;IAEQ,WAAW;IAmBX,IAAI;IAUJ,KAAK;IAUL,IAAI;IASJ,OAAO;IAkBhB,mBAAmB;IAYnB,WAAW,CAAC,MAAM,EAAE,eAAe,EAAE;IAarC,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,gBAAgB;IAQxB,eAAe;IAIf,aAAa;IAIb,OAAO,CAAC,QAAQ;IAMhB,eAAe,CAAC,IAAI,EAAE,MAAM;IAI5B,IAAI,WAAW,IAAI,UAAU,EAAE,CAK9B;IAGD,IAAI,iBAAiB,IAAI,UAAU,GAAG,IAAI,CAQzC;IAED,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAQlC,OAAO,CAAC,gBAAgB;CAOzB"}
@@ -268,6 +268,7 @@ export default class DashPlayback extends BasePlayback {
268
268
  this.trigger(Events.PLAYBACK_DVR, status);
269
269
  this.trigger(Events.PLAYBACK_STATS_ADD, { dvr: status });
270
270
  }
271
+ // TODO move to the base class
271
272
  _updateSettings() {
272
273
  if (this._playbackType === Playback.VOD) {
273
274
  // @ts-expect-error
@@ -33,14 +33,13 @@ export declare class AudioSelector extends UICorePlugin {
33
33
  */
34
34
  get attributes(): {
35
35
  class: string;
36
- 'data-track-selector': string;
37
36
  };
38
37
  /**
39
38
  * @internal
40
39
  */
41
40
  get events(): {
42
- 'click [data-track-selector-select]': string;
43
- 'click [data-track-selector-button]': string;
41
+ 'click [data-audiotracks-select]': string;
42
+ 'click [data-audiotracks-button]': string;
44
43
  };
45
44
  /**
46
45
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"AudioSelector.d.ts","sourceRoot":"","sources":["../../../src/plugins/audio-selector/AudioSelector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,YAAY,EAAY,MAAM,cAAc,CAAA;AAQ7D,OAAO,2CAA2C,CAAA;AAQlD;;;;;;;;;GASG;AACH,qBAAa,aAAc,SAAQ,YAAY;IAC7C,O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H,IAAI,gBAAgB;;MAEnB;IAED;;OAEG;IACH,MAAM,KAAK,OAAO,WAEjB;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAuB;IAEvD;;OAEG;IACH,IAAa,UAAU;;MAKtB;IAED;;OAEG;IACH,IAAa,MAAM;;;MAKlB;IAED;;OAEG;IACM,UAAU;IASnB,OAAO,CAAC,WAAW;IAYnB,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,wBAAwB;IAyBhC,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,wBAAwB;IAKhC,OAAO,CAAC,YAAY;IAWpB;;OAEG;IACM,MAAM;IAkBf,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,qBAAqB;CAW9B"}
@@ -44,8 +44,7 @@ export class AudioSelector extends UICorePlugin {
44
44
  */
45
45
  get attributes() {
46
46
  return {
47
- class: 'media-control-audio-tracks',
48
- 'data-track-selector': '',
47
+ class: 'media-control-audiotracks',
49
48
  };
50
49
  }
51
50
  /**
@@ -53,8 +52,8 @@ export class AudioSelector extends UICorePlugin {
53
52
  */
54
53
  get events() {
55
54
  return {
56
- 'click [data-track-selector-select]': 'onTrackSelect',
57
- 'click [data-track-selector-button]': 'onShowLevelSelectMenu',
55
+ 'click [data-audiotracks-select]': 'onTrackSelect',
56
+ 'click [data-audiotracks-button]': 'onShowLevelSelectMenu',
58
57
  };
59
58
  }
60
59
  /**
@@ -117,7 +116,7 @@ export class AudioSelector extends UICorePlugin {
117
116
  const mediaControl = this.core.getPlugin('media_control');
118
117
  this.$el.html(AudioSelector.template({ tracks: this.tracks, title: this.getTitle() }));
119
118
  this.$('.audio-arrow').append(audioArrow);
120
- mediaControl.putElement('audioTracksSelector', this.$el);
119
+ mediaControl.putElement('audiotracks', this.el);
121
120
  this.updateText();
122
121
  this.highlightCurrentTrack();
123
122
  return this;
@@ -130,7 +129,7 @@ export class AudioSelector extends UICorePlugin {
130
129
  return this.tracks.find((track) => track.id === id);
131
130
  }
132
131
  onTrackSelect(event) {
133
- const id = event.target?.dataset?.trackSelectorSelect;
132
+ const id = event.target?.dataset?.audiotracksSelect;
134
133
  if (id) {
135
134
  this.selectAudioTrack(id);
136
135
  }
@@ -162,7 +161,7 @@ export class AudioSelector extends UICorePlugin {
162
161
  }
163
162
  trackElement(id) {
164
163
  return this.$('ul a' +
165
- (id !== undefined ? '[data-track-selector-select="' + id + '"]' : '')).parent();
164
+ (id !== undefined ? '[data-audiotracks-select="' + id + '"]' : '')).parent();
166
165
  }
167
166
  getTitle() {
168
167
  return this.currentTrack?.label || '';
@@ -6,7 +6,11 @@ import { ZeptoResult } from '../../types.js';
6
6
  * An element inside the gear menu
7
7
  * @beta
8
8
  */
9
- export type GearItemElement = 'quality' | 'rate' | 'nerd';
9
+ export type GearOptionsItem = 'quality' | 'rate' | 'nerd';
10
+ /**
11
+ * @deprecated Use {@link GearOptionsItem} instead
12
+ */
13
+ export type GearItemElement = GearOptionsItem;
10
14
  /**
11
15
  * `PLUGIN` that adds the gear button with an extra options menu on the right side of the {@link MediaControl | media control} UI
12
16
  * @beta
@@ -54,7 +58,7 @@ export declare class BottomGear extends UICorePlugin {
54
58
  * @param name - Name of a gear menu placeholder item to attach custom UI
55
59
  * @returns Zepto result of the element
56
60
  */
57
- getElement(name: GearItemElement): ZeptoResult | null;
61
+ getElement(name: GearOptionsItem): ZeptoResult | null;
58
62
  /**
59
63
  * Replaces the content of the gear menu
60
64
  * @param content - Zepto result of the element
@@ -1 +1 @@
1
- {"version":3,"file":"BottomGear.d.ts","sourceRoot":"","sources":["../../../src/plugins/bottom-gear/BottomGear.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoC,MAAM,cAAc,CAAC;AAO9E,OAAO,uCAAuC,CAAC;AAC/C,OAAO,gDAAgD,CAAC;AAGxD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAO7C;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAI1D;;;;;;;;;GASG;AACH,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,CAAC,IAAI,CAAS;IAErB;;OAEG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,gBAAgB;;MAEnB;IAED;;OAEG;IACH,MAAM,KAAK,OAAO,WAEjB;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAuB;IAEvD;;OAEG;IACH,IAAa,UAAU;;MAItB;IAED;;OAEG;IACH,IAAa,MAAM;;MAIlB;IAED;;OAEG;IACM,UAAU;IAKnB;;;OAGG;IACH,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,WAAW,GAAG,IAAI;IAIrD;;;OAGG;IACH,UAAU,CAAC,OAAO,EAAE,WAAW;IAI/B,OAAO,CAAC,wBAAwB;IAKhC,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,oBAAoB;IAM5B;;OAEG;IACM,MAAM;IAiBf;;;;OAIG;IACH,OAAO;IAKP,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,WAAW;CAMpB"}
1
+ {"version":3,"file":"BottomGear.d.ts","sourceRoot":"","sources":["../../../src/plugins/bottom-gear/BottomGear.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAoC,MAAM,cAAc,CAAC;AAO9E,OAAO,uCAAuC,CAAC;AAC/C,OAAO,gDAAgD,CAAC;AAGxD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAO7C;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;AAI9C;;;;;;;;;GASG;AACH,qBAAa,UAAW,SAAQ,YAAY;IAC1C,OAAO,CAAC,IAAI,CAAS;IAErB;;OAEG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,gBAAgB;;MAEnB;IAED;;OAEG;IACH,MAAM,KAAK,OAAO,WAEjB;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAuB;IAEvD;;OAEG;IACH,IAAa,UAAU;;MAItB;IAED;;OAEG;IACH,IAAa,MAAM;;MAIlB;IAED;;OAEG;IACM,UAAU;IAKnB;;;OAGG;IACH,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,WAAW,GAAG,IAAI;IAMrD;;;OAGG;IACH,UAAU,CAAC,OAAO,EAAE,WAAW;IAI/B,OAAO,CAAC,wBAAwB;IAKhC,OAAO,CAAC,mBAAmB;IAK3B,OAAO,CAAC,oBAAoB;IAM5B;;OAEG;IACM,MAAM;IAiBf;;;;OAIG;IACH,OAAO;IAKP,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,WAAW;CAMpB"}
@@ -72,6 +72,7 @@ export class BottomGear extends UICorePlugin {
72
72
  getElement(name) {
73
73
  return this.$el.find(`.gear-options-list [data-${name}]`);
74
74
  }
75
+ // TODO implement putElement/addElement method
75
76
  /**
76
77
  * Replaces the content of the gear menu
77
78
  * @param content - Zepto result of the element
@@ -105,7 +106,7 @@ export class BottomGear extends UICorePlugin {
105
106
  ];
106
107
  const icon = this.isHd ? gearHdIcon : gearIcon;
107
108
  this.$el.html(BottomGear.template({ icon, items }));
108
- mediaControl.putElement('gear', this.$el);
109
+ mediaControl.putElement('gear', this.el);
109
110
  mediaControl.trigger(MediaControlEvents.MEDIACONTROL_GEAR_RENDERED);
110
111
  return this;
111
112
  }