@gcorevideo/player 2.22.1 → 2.22.3

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 (84) hide show
  1. package/dist/core.js +1 -1
  2. package/dist/index.css +1427 -1427
  3. package/dist/index.js +111 -33
  4. package/dist/player.d.ts +243 -95
  5. package/dist/plugins/index.css +350 -350
  6. package/dist/plugins/index.js +111 -33
  7. package/docs/api/player.bottomgear.additem.md +95 -0
  8. package/docs/api/player.bottomgear.md +63 -19
  9. package/docs/api/player.bottomgear.refresh.md +5 -1
  10. package/docs/api/player.clapprnerdstats.md +0 -2
  11. package/docs/api/player.clicktopause.md +1 -1
  12. package/docs/api/player.closedcaptions.md +2 -2
  13. package/docs/api/player.closedcaptionspluginsettings.md +5 -0
  14. package/docs/api/player.errorscreen.md +18 -4
  15. package/docs/api/player.errorscreenpluginsettings.md +1 -4
  16. package/docs/api/player.errorscreensettings.md +15 -0
  17. package/docs/api/{player.mediacontrolevents.md → player.gearevents.md} +7 -7
  18. package/docs/api/player.levelselector.events.md +0 -1
  19. package/docs/api/player.levelselector.md +1 -1
  20. package/docs/api/player.md +33 -36
  21. package/docs/api/{player.bottomgear.setcontent.md → player.mediacontrol.handlecustomarea.md} +5 -9
  22. package/docs/api/player.mediacontrol.md +15 -1
  23. package/docs/api/player.mediacontrol.putelement.md +2 -2
  24. package/docs/api/player.mediacontrol.toggleelement.md +2 -4
  25. package/docs/api/player.mediacontrolelement.md +1 -1
  26. package/docs/api/player.playbackrate.md +22 -3
  27. package/docs/api/{player.gearoptionsitem.md → player.playbackrateoption.md} +6 -4
  28. package/docs/api/player.playbackratesettings.md +20 -0
  29. package/docs/api/player.sourcecontroller._constructor_.md +49 -0
  30. package/docs/api/player.sourcecontroller.md +70 -7
  31. package/docs/api/player.spinnerevents.md +1 -4
  32. package/docs/api/player.spinnerthreebounce._constructor_.md +0 -3
  33. package/docs/api/player.spinnerthreebounce.hide.md +0 -3
  34. package/docs/api/player.spinnerthreebounce.md +6 -9
  35. package/docs/api/player.spinnerthreebounce.show.md +2 -5
  36. package/lib/index.plugins.d.ts +1 -0
  37. package/lib/index.plugins.d.ts.map +1 -1
  38. package/lib/index.plugins.js +1 -0
  39. package/lib/internal.types.d.ts +5 -0
  40. package/lib/internal.types.d.ts.map +1 -1
  41. package/lib/playback.types.d.ts +0 -5
  42. package/lib/playback.types.d.ts.map +1 -1
  43. package/lib/plugins/bottom-gear/BottomGear.d.ts +35 -13
  44. package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
  45. package/lib/plugins/bottom-gear/BottomGear.js +35 -3
  46. package/lib/plugins/click-to-pause/ClickToPause.d.ts +1 -1
  47. package/lib/plugins/click-to-pause/ClickToPause.d.ts.map +1 -1
  48. package/lib/plugins/click-to-pause/ClickToPause.js +3 -2
  49. package/lib/plugins/error-screen/ErrorScreen.d.ts +29 -4
  50. package/lib/plugins/error-screen/ErrorScreen.d.ts.map +1 -1
  51. package/lib/plugins/error-screen/ErrorScreen.js +17 -2
  52. package/lib/plugins/media-control/MediaControl.d.ts +0 -11
  53. package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
  54. package/lib/plugins/media-control/MediaControl.js +0 -12
  55. package/lib/plugins/source-controller/SourceController.d.ts +40 -4
  56. package/lib/plugins/source-controller/SourceController.d.ts.map +1 -1
  57. package/lib/plugins/source-controller/SourceController.js +41 -4
  58. package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.d.ts +9 -6
  59. package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.d.ts.map +1 -1
  60. package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.js +11 -6
  61. package/lib/plugins/subtitles/ClosedCaptions.d.ts +7 -7
  62. package/lib/plugins/subtitles/ClosedCaptions.d.ts.map +1 -1
  63. package/lib/plugins/subtitles/ClosedCaptions.js +2 -2
  64. package/package.json +1 -1
  65. package/src/index.plugins.ts +1 -0
  66. package/src/internal.types.ts +6 -0
  67. package/src/playback.types.ts +0 -5
  68. package/src/plugins/bottom-gear/BottomGear.ts +35 -16
  69. package/src/plugins/click-to-pause/ClickToPause.ts +3 -2
  70. package/src/plugins/error-screen/ErrorScreen.ts +30 -4
  71. package/src/plugins/media-control/MediaControl.ts +0 -12
  72. package/src/plugins/source-controller/SourceController.ts +41 -4
  73. package/src/plugins/spinner-three-bounce/SpinnerThreeBounce.ts +11 -6
  74. package/src/plugins/subtitles/ClosedCaptions.ts +8 -9
  75. package/temp/player.api.json +260 -299
  76. package/tsconfig.tsbuildinfo +1 -1
  77. package/assets/bottom-gear/bottomgear copy.ejs +0 -10
  78. package/docs/api/player.bottomgear.getelement.md +0 -56
  79. package/docs/api/player.gearitemelement.md +0 -18
  80. package/docs/api/player.subtitlespluginsettings.md +0 -18
  81. package/docs/api/player.texttrackitem.id.md +0 -11
  82. package/docs/api/player.texttrackitem.md +0 -87
  83. package/docs/api/player.texttrackitem.name.md +0 -11
  84. package/docs/api/player.texttrackitem.track.md +0 -11
@@ -1,10 +0,0 @@
1
- <button type="button" class="button-gear media-control-button gplayer-lite-btn gcore-skin-button-color gear-icon" data-gear-button="-1" id="gear-button">
2
- <%= icon %>
3
- </button>
4
- <div class="gear-wrapper gcore-skin-bg-color">
5
- <ul class="gear-options-list" id="gear-options">
6
- <% for (const item of items) { %>
7
- <li data-<%= item %>></li>
8
- <% } %>
9
- </ul>
10
- </div>
@@ -1,56 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [BottomGear](./player.bottomgear.md) &gt; [getElement](./player.bottomgear.getelement.md)
4
-
5
- ## BottomGear.getElement() method
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
- **Signature:**
11
-
12
- ```typescript
13
- getElement(name: GearOptionsItem): ZeptoResult | null;
14
- ```
15
-
16
- ## Parameters
17
-
18
- <table><thead><tr><th>
19
-
20
- Parameter
21
-
22
-
23
- </th><th>
24
-
25
- Type
26
-
27
-
28
- </th><th>
29
-
30
- Description
31
-
32
-
33
- </th></tr></thead>
34
- <tbody><tr><td>
35
-
36
- name
37
-
38
-
39
- </td><td>
40
-
41
- [GearOptionsItem](./player.gearoptionsitem.md)
42
-
43
-
44
- </td><td>
45
-
46
- Name of a gear menu placeholder item to attach custom UI
47
-
48
-
49
- </td></tr>
50
- </tbody></table>
51
- **Returns:**
52
-
53
- [ZeptoResult](./player.zeptoresult.md) \| null
54
-
55
- Zepto result of the element
56
-
@@ -1,18 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@gcorevideo/player](./player.md) &gt; [GearItemElement](./player.gearitemelement.md)
4
-
5
- ## GearItemElement type
6
-
7
- > Warning: This API is now obsolete.
8
- >
9
- > Use [GearOptionsItem](./player.gearoptionsitem.md) instead
10
- >
11
-
12
- **Signature:**
13
-
14
- ```typescript
15
- export type GearItemElement = GearOptionsItem;
16
- ```
17
- **References:** [GearOptionsItem](./player.gearoptionsitem.md)
18
-
@@ -1,18 +0,0 @@
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
-
@@ -1,11 +0,0 @@
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
- ```
@@ -1,87 +0,0 @@
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>
@@ -1,11 +0,0 @@
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
- ```
@@ -1,11 +0,0 @@
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
- ```