@gcorevideo/player 2.21.6 → 2.22.1

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 (71) hide show
  1. package/assets/bottom-gear/bottomgear copy.ejs +10 -0
  2. package/assets/bottom-gear/bottomgear.ejs +4 -8
  3. package/assets/bottom-gear/gear-sub-menu.scss +0 -1
  4. package/assets/bottom-gear/gear.scss +0 -1
  5. package/assets/clappr-nerd-stats/button.ejs +3 -3
  6. package/assets/level-selector/button.ejs +2 -4
  7. package/assets/level-selector/list.ejs +14 -10
  8. package/assets/level-selector/style.scss +9 -4
  9. package/assets/media-control/media-control.ejs +1 -1
  10. package/assets/playback-rate/list.ejs +5 -5
  11. package/dist/core.js +1 -2
  12. package/dist/index.css +652 -651
  13. package/dist/index.js +3850 -3766
  14. package/dist/player.d.ts +10 -17
  15. package/dist/plugins/index.css +742 -741
  16. package/dist/plugins/index.js +3951 -3868
  17. package/docs/api/player.mediacontrol.md +8 -36
  18. package/docs/api/player.mediacontrol.toggleelement.md +72 -0
  19. package/docs/api/player.mediacontrolelement.md +1 -1
  20. package/lib/playback/dash-playback/DashPlayback.d.ts.map +1 -1
  21. package/lib/playback/dash-playback/DashPlayback.js +0 -1
  22. package/lib/plugins/bottom-gear/BottomGear.d.ts +65 -14
  23. package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
  24. package/lib/plugins/bottom-gear/BottomGear.js +113 -37
  25. package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts +2 -3
  26. package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts.map +1 -1
  27. package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.js +18 -15
  28. package/lib/plugins/dvr-controls/DvrControls.js +1 -1
  29. package/lib/plugins/level-selector/LevelSelector.d.ts +8 -11
  30. package/lib/plugins/level-selector/LevelSelector.d.ts.map +1 -1
  31. package/lib/plugins/level-selector/LevelSelector.js +66 -102
  32. package/lib/plugins/media-control/MediaControl.d.ts +7 -5
  33. package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
  34. package/lib/plugins/media-control/MediaControl.js +40 -20
  35. package/lib/plugins/picture-in-picture/PictureInPicture.d.ts.map +1 -1
  36. package/lib/plugins/picture-in-picture/PictureInPicture.js +7 -2
  37. package/lib/plugins/playback-rate/PlaybackRate.d.ts +42 -14
  38. package/lib/plugins/playback-rate/PlaybackRate.d.ts.map +1 -1
  39. package/lib/plugins/playback-rate/PlaybackRate.js +101 -83
  40. package/lib/plugins/subtitles/ClosedCaptions.js +1 -1
  41. package/lib/testUtils.d.ts +1 -0
  42. package/lib/testUtils.d.ts.map +1 -1
  43. package/lib/testUtils.js +13 -0
  44. package/package.json +1 -1
  45. package/src/playback/dash-playback/DashPlayback.ts +0 -1
  46. package/src/plugins/bottom-gear/BottomGear.ts +162 -72
  47. package/src/plugins/bottom-gear/__tests__/BottomGear.test.ts +21 -5
  48. package/src/plugins/bottom-gear/__tests__/__snapshots__/BottomGear.test.ts.snap +5 -12
  49. package/src/plugins/clappr-nerd-stats/ClapprNerdStats.ts +27 -25
  50. package/src/plugins/dvr-controls/DvrControls.ts +1 -1
  51. package/src/plugins/dvr-controls/__tests__/DvrControls.test.ts +6 -4
  52. package/src/plugins/dvr-controls/__tests__/__snapshots__/DvrControls.test.ts.snap +2 -2
  53. package/src/plugins/level-selector/LevelSelector.ts +80 -120
  54. package/src/plugins/level-selector/__tests__/LevelSelector.test.ts +69 -79
  55. package/src/plugins/level-selector/__tests__/__snapshots__/LevelSelector.test.ts.snap +38 -71
  56. package/src/plugins/media-control/MediaControl.ts +54 -26
  57. package/src/plugins/media-control/__tests__/MediaControl.test.ts +4 -4
  58. package/src/plugins/media-control/__tests__/__snapshots__/MediaControl.test.ts.snap +4 -0
  59. package/src/plugins/picture-in-picture/PictureInPicture.ts +7 -2
  60. package/src/plugins/playback-rate/PlaybackRate.ts +136 -108
  61. package/src/plugins/playback-rate/__tests__/PlaybackRate.test.ts +84 -37
  62. package/src/plugins/playback-rate/__tests__/__snapshots__/PlaybackRate.test.ts.snap +55 -6
  63. package/src/plugins/subtitles/ClosedCaptions.ts +1 -1
  64. package/src/plugins/subtitles/__tests__/ClosedCaptions.test.ts +1 -1
  65. package/src/testUtils.ts +14 -0
  66. package/src/typings/vitest.d.ts +1 -0
  67. package/temp/player.api.json +66 -94
  68. package/tsconfig.tsbuildinfo +1 -1
  69. package/docs/api/player.mediacontrol.getcenterpanel.md +0 -18
  70. package/docs/api/player.mediacontrol.getleftpanel.md +0 -22
  71. package/docs/api/player.mediacontrol.getrightpanel.md +0 -22
@@ -2812,37 +2812,6 @@
2812
2812
  "isAbstract": false,
2813
2813
  "name": "enableControlButton"
2814
2814
  },
2815
- {
2816
- "kind": "Method",
2817
- "canonicalReference": "@gcorevideo/player!MediaControl#getCenterPanel:member(1)",
2818
- "docComment": "",
2819
- "excerptTokens": [
2820
- {
2821
- "kind": "Content",
2822
- "text": "getCenterPanel(): "
2823
- },
2824
- {
2825
- "kind": "Content",
2826
- "text": "any"
2827
- },
2828
- {
2829
- "kind": "Content",
2830
- "text": ";"
2831
- }
2832
- ],
2833
- "isStatic": false,
2834
- "returnTypeTokenRange": {
2835
- "startIndex": 1,
2836
- "endIndex": 2
2837
- },
2838
- "releaseTag": "Beta",
2839
- "isProtected": false,
2840
- "overloadIndex": 1,
2841
- "parameters": [],
2842
- "isOptional": false,
2843
- "isAbstract": false,
2844
- "name": "getCenterPanel"
2845
- },
2846
2815
  {
2847
2816
  "kind": "Method",
2848
2817
  "canonicalReference": "@gcorevideo/player!MediaControl#getElement:member(1)",
@@ -2897,68 +2866,6 @@
2897
2866
  "isAbstract": false,
2898
2867
  "name": "getElement"
2899
2868
  },
2900
- {
2901
- "kind": "Method",
2902
- "canonicalReference": "@gcorevideo/player!MediaControl#getLeftPanel:member(1)",
2903
- "docComment": "/**\n * Get the left panel area to append custom elements to\n *\n * @returns ZeptoSelector of the left panel element\n */\n",
2904
- "excerptTokens": [
2905
- {
2906
- "kind": "Content",
2907
- "text": "getLeftPanel(): "
2908
- },
2909
- {
2910
- "kind": "Content",
2911
- "text": "any"
2912
- },
2913
- {
2914
- "kind": "Content",
2915
- "text": ";"
2916
- }
2917
- ],
2918
- "isStatic": false,
2919
- "returnTypeTokenRange": {
2920
- "startIndex": 1,
2921
- "endIndex": 2
2922
- },
2923
- "releaseTag": "Beta",
2924
- "isProtected": false,
2925
- "overloadIndex": 1,
2926
- "parameters": [],
2927
- "isOptional": false,
2928
- "isAbstract": false,
2929
- "name": "getLeftPanel"
2930
- },
2931
- {
2932
- "kind": "Method",
2933
- "canonicalReference": "@gcorevideo/player!MediaControl#getRightPanel:member(1)",
2934
- "docComment": "/**\n * Get the right panel area to append custom elements to\n *\n * @returns ZeptoSelector of the right panel element\n */\n",
2935
- "excerptTokens": [
2936
- {
2937
- "kind": "Content",
2938
- "text": "getRightPanel(): "
2939
- },
2940
- {
2941
- "kind": "Content",
2942
- "text": "any"
2943
- },
2944
- {
2945
- "kind": "Content",
2946
- "text": ";"
2947
- }
2948
- ],
2949
- "isStatic": false,
2950
- "returnTypeTokenRange": {
2951
- "startIndex": 1,
2952
- "endIndex": 2
2953
- },
2954
- "releaseTag": "Beta",
2955
- "isProtected": false,
2956
- "overloadIndex": 1,
2957
- "parameters": [],
2958
- "isOptional": false,
2959
- "isAbstract": false,
2960
- "name": "getRightPanel"
2961
- },
2962
2869
  {
2963
2870
  "kind": "Property",
2964
2871
  "canonicalReference": "@gcorevideo/player!MediaControl#muted:member",
@@ -3150,6 +3057,71 @@
3150
3057
  "isAbstract": false,
3151
3058
  "name": "setVolume"
3152
3059
  },
3060
+ {
3061
+ "kind": "Method",
3062
+ "canonicalReference": "@gcorevideo/player!MediaControl#toggleElement:member(1)",
3063
+ "docComment": "/**\n * Toggle the visibility of a media control element\n *\n * @param name - The name of the media control element\n *\n * @param show - Whether to show or hide the element\n */\n",
3064
+ "excerptTokens": [
3065
+ {
3066
+ "kind": "Content",
3067
+ "text": "toggleElement(name: "
3068
+ },
3069
+ {
3070
+ "kind": "Reference",
3071
+ "text": "MediaControlElement",
3072
+ "canonicalReference": "@gcorevideo/player!MediaControlElement:type"
3073
+ },
3074
+ {
3075
+ "kind": "Content",
3076
+ "text": ", show: "
3077
+ },
3078
+ {
3079
+ "kind": "Content",
3080
+ "text": "boolean"
3081
+ },
3082
+ {
3083
+ "kind": "Content",
3084
+ "text": "): "
3085
+ },
3086
+ {
3087
+ "kind": "Content",
3088
+ "text": "void"
3089
+ },
3090
+ {
3091
+ "kind": "Content",
3092
+ "text": ";"
3093
+ }
3094
+ ],
3095
+ "isStatic": false,
3096
+ "returnTypeTokenRange": {
3097
+ "startIndex": 5,
3098
+ "endIndex": 6
3099
+ },
3100
+ "releaseTag": "Beta",
3101
+ "isProtected": false,
3102
+ "overloadIndex": 1,
3103
+ "parameters": [
3104
+ {
3105
+ "parameterName": "name",
3106
+ "parameterTypeTokenRange": {
3107
+ "startIndex": 1,
3108
+ "endIndex": 2
3109
+ },
3110
+ "isOptional": false
3111
+ },
3112
+ {
3113
+ "parameterName": "show",
3114
+ "parameterTypeTokenRange": {
3115
+ "startIndex": 3,
3116
+ "endIndex": 4
3117
+ },
3118
+ "isOptional": false
3119
+ }
3120
+ ],
3121
+ "isOptional": false,
3122
+ "isAbstract": false,
3123
+ "name": "toggleElement"
3124
+ },
3153
3125
  {
3154
3126
  "kind": "Property",
3155
3127
  "canonicalReference": "@gcorevideo/player!MediaControl#volume:member",
@@ -3198,7 +3170,7 @@
3198
3170
  },
3199
3171
  {
3200
3172
  "kind": "Content",
3201
- "text": "'audiotracks' | 'clipText' | 'gear' | 'pip' | 'playbackRate' | 'seekBarContainer' | 'cc'"
3173
+ "text": "'audiotracks' | 'cc' | 'clipText' | 'dvr' | 'duration' | 'gear' | 'pip' | 'playbackRate' | 'position' | 'seekBarContainer'"
3202
3174
  },
3203
3175
  {
3204
3176
  "kind": "Content",