@therealtinhtute/baroiplayer 1.2.1 → 2.0.0-beta.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.
- package/README.md +90 -71
- package/dist/components/icons/index.d.ts +36 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/ArrowLeftIcon.d.ts +4 -0
- package/dist/components/icons/svg-icons/ArrowLeftIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/ArrowRightIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/ArrowRightIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/AudioIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/AudioIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/BackwardIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/BackwardIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/CameraIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/CameraIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/CheckIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/CheckIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/EnablePiPIcon.d.ts +4 -0
- package/dist/components/icons/svg-icons/EnablePiPIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/ForwardIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/ForwardIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/FullscreenEnterIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/FullscreenEnterIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/FullscreenExitIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/FullscreenExitIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/LoadingIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/LoadingIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/PauseIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/PauseIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/PlayIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/PlayIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/PlaybackSpeedIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/PlaybackSpeedIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/QualityIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/QualityIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/SettingsIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/SettingsIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/SliderIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/SliderIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/SubtitleIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/SubtitleIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/SubtitleOffIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/SubtitleOffIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/UnPiPIcon.d.ts +4 -0
- package/dist/components/icons/svg-icons/UnPiPIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/VolumeMutedIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/VolumeMutedIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/VolumeOneIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/VolumeOneIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/VolumeThreeIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/VolumeThreeIcon.d.ts.map +1 -0
- package/dist/components/icons/svg-icons/VolumeTwoIcon.d.ts +5 -0
- package/dist/components/icons/svg-icons/VolumeTwoIcon.d.ts.map +1 -0
- package/dist/components/variants/gradient/gradient-audio.d.ts +13 -0
- package/dist/components/variants/gradient/gradient-audio.d.ts.map +1 -0
- package/dist/components/variants/gradient/gradient-controls.d.ts +4 -0
- package/dist/components/variants/gradient/gradient-controls.d.ts.map +1 -0
- package/dist/components/variants/gradient/gradient-glyphs.d.ts +30 -0
- package/dist/components/variants/gradient/gradient-glyphs.d.ts.map +1 -0
- package/dist/components/variants/gradient/gradient-video.d.ts +16 -0
- package/dist/components/variants/gradient/gradient-video.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -41
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +750 -5640
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +3 -0
- package/package.json +110 -114
- package/src/components/variants/gradient/gradient-audio.tsx +47 -0
- package/src/components/variants/gradient/gradient-controls.tsx +254 -0
- package/src/components/variants/gradient/gradient-glyphs.test.tsx +69 -0
- package/src/components/variants/gradient/gradient-glyphs.tsx +129 -0
- package/src/components/variants/gradient/gradient-skin.css +211 -0
- package/src/components/variants/gradient/gradient-video.tsx +70 -0
- package/src/index.ts +5 -198
- package/src/test/accessibility-utils.ts +0 -59
- package/dist/context/media.js +0 -1
- package/dist/context/media.mjs +0 -3
- package/dist/context/store.js +0 -1
- package/dist/context/store.mjs +0 -3
- package/dist/context-Bzd5QCKM.cjs +0 -7
- package/dist/context-Bzd5QCKM.cjs.map +0 -1
- package/dist/context-DD_SH4tT.js +0 -1053
- package/dist/context-DD_SH4tT.js.map +0 -1
- package/dist/core-events-BRnLMB7s.cjs +0 -2
- package/dist/core-events-BRnLMB7s.cjs.map +0 -1
- package/dist/core-events-v_mKdj5p.js +0 -417
- package/dist/core-events-v_mKdj5p.js.map +0 -1
- package/dist/core-plugins-CMBv-yVh.cjs +0 -2
- package/dist/core-plugins-CMBv-yVh.cjs.map +0 -1
- package/dist/core-plugins-CqCxLkbd.js +0 -754
- package/dist/core-plugins-CqCxLkbd.js.map +0 -1
- package/dist/core.js +0 -15
- package/dist/core.js.map +0 -1
- package/dist/core.mjs +0 -960
- package/dist/core.mjs.map +0 -1
- package/dist/enhanced-components-BwjBqSA1.js +0 -2858
- package/dist/enhanced-components-BwjBqSA1.js.map +0 -1
- package/dist/enhanced-components-C-ka-XLp.cjs +0 -2
- package/dist/enhanced-components-C-ka-XLp.cjs.map +0 -1
- package/dist/hooks-B-IIWPJr.js +0 -1842
- package/dist/hooks-B-IIWPJr.js.map +0 -1
- package/dist/hooks-DcHzmBwA.cjs +0 -4
- package/dist/hooks-DcHzmBwA.cjs.map +0 -1
- package/dist/minimal-components-BYsMQde5.js +0 -1610
- package/dist/minimal-components-BYsMQde5.js.map +0 -1
- package/dist/minimal-components-CsxQbDp7.cjs +0 -2
- package/dist/minimal-components-CsxQbDp7.cjs.map +0 -1
- package/dist/minimal-components.css +0 -1
- package/dist/mona-loading.gif +0 -0
- package/dist/performance-monitor-DCSijLJg.js +0 -312
- package/dist/performance-monitor-DCSijLJg.js.map +0 -1
- package/dist/performance-monitor-wNFKmqMr.cjs +0 -2
- package/dist/performance-monitor-wNFKmqMr.cjs.map +0 -1
- package/dist/rolldown-runtime-BmowowmI.js +0 -14
- package/dist/rolldown-runtime-mLOUI7ql.cjs +0 -1
- package/dist/utils-D2gQ7c2R.js +0 -64
- package/dist/utils-D2gQ7c2R.js.map +0 -1
- package/dist/utils-DJaAwiZ9.cjs +0 -2
- package/dist/utils-DJaAwiZ9.cjs.map +0 -1
- package/dist/utils.js +0 -1
- package/dist/utils.mjs +0 -3
- package/src/adapters/videojs-adapter.tsx +0 -470
- package/src/assets/mona-loading.gif +0 -0
- package/src/components/AnimateLoading.tsx +0 -111
- package/src/components/LoadingState.tsx +0 -239
- package/src/components/__tests__/media-player-accessibility.test.tsx +0 -510
- package/src/components/__tests__/media-player-react19.test.tsx +0 -457
- package/src/components/accessibility/keyboard-help-overlay.tsx +0 -207
- package/src/components/audio-player.tsx +0 -85
- package/src/components/basic/index.ts +0 -37
- package/src/components/enhanced/advanced-features.tsx +0 -311
- package/src/components/enhanced/debug-panel.tsx +0 -448
- package/src/components/enhanced/enhanced-controls.tsx +0 -597
- package/src/components/enhanced/enhanced-media-player.tsx +0 -566
- package/src/components/enhanced/error-handling.tsx +0 -338
- package/src/components/enhanced/index.ts +0 -39
- package/src/components/enhanced/media-player-enhanced.tsx +0 -383
- package/src/components/examples/basic-video-player.tsx +0 -50
- package/src/components/examples/custom-controls-example.tsx +0 -63
- package/src/components/examples/enhanced-controls-example.tsx +0 -100
- package/src/components/examples/enhanced-media-player-example.tsx +0 -302
- package/src/components/examples/loading-states-demo.tsx +0 -141
- package/src/components/examples/react-19-demo.tsx +0 -349
- package/src/components/examples/volume-orientation-demo.tsx +0 -105
- package/src/components/icon-demo.tsx +0 -196
- package/src/components/legacy.tsx +0 -87
- package/src/components/media-metadata-display.tsx +0 -99
- package/src/components/media-player-audio.tsx +0 -39
- package/src/components/media-player-controls.tsx +0 -223
- package/src/components/media-player-error.tsx +0 -163
- package/src/components/media-player-fullscreen.tsx +0 -109
- package/src/components/media-player-hls.tsx +0 -111
- package/src/components/media-player-loading.tsx +0 -76
- package/src/components/media-player-play.tsx +0 -75
- package/src/components/media-player-root.tsx +0 -338
- package/src/components/media-player-seek.tsx +0 -168
- package/src/components/media-player-time.tsx +0 -99
- package/src/components/media-player-tooltip.tsx +0 -58
- package/src/components/media-player-video.tsx +0 -54
- package/src/components/media-player-volume.tsx +0 -155
- package/src/components/media-player.tsx +0 -292
- package/src/components/media-suspense.tsx +0 -344
- package/src/components/player-settings-form.tsx +0 -158
- package/src/components/react-player-wrapper.tsx +0 -651
- package/src/components/simple-video-player.tsx +0 -62
- package/src/components/ui/blur-poster.tsx +0 -96
- package/src/components/ui/empty-state.tsx +0 -91
- package/src/components/ui/enhanced-seek-bar.tsx +0 -254
- package/src/components/ui/error-state.tsx +0 -124
- package/src/components/ui/fullscreen-button.tsx +0 -81
- package/src/components/ui/loading-skeleton.tsx +0 -107
- package/src/components/ui/media-resource-preloader.tsx +0 -458
- package/src/components/ui/offline-message.tsx +0 -98
- package/src/components/ui/play-button.tsx +0 -99
- package/src/components/ui/seek-bar.tsx +0 -191
- package/src/components/ui/time-display.tsx +0 -61
- package/src/components/ui/volume-control.tsx +0 -190
- package/src/components/unified/base-media-player.tsx +0 -252
- package/src/components/unified/media-player.tsx +0 -75
- package/src/components/variants/minimal/AccessibleMinimalPlayer.tsx +0 -587
- package/src/components/variants/minimal/EnhancedMinimalMediaPlayer.tsx +0 -573
- package/src/components/variants/minimal/MinimalControls.tsx +0 -124
- package/src/components/variants/minimal/MinimalLoading.tsx +0 -28
- package/src/components/variants/minimal/MinimalMediaPlayer.tsx +0 -318
- package/src/components/variants/minimal/MinimalOverlay.tsx +0 -58
- package/src/components/variants/minimal/MinimalPlayButton.tsx +0 -56
- package/src/components/variants/minimal/MinimalSeekBar.tsx +0 -140
- package/src/components/variants/minimal/MinimalVolumeControl.tsx +0 -75
- package/src/components/variants/minimal/SimpleMinimalPlayer.tsx +0 -206
- package/src/components/variants/minimal/components/CenterPlayButton.tsx +0 -22
- package/src/components/variants/minimal/components/ControlBar.tsx +0 -142
- package/src/components/variants/minimal/components/EnhancedSettingsMenu.tsx +0 -412
- package/src/components/variants/minimal/components/PlaybackControls.tsx +0 -46
- package/src/components/variants/minimal/components/RightControls.tsx +0 -164
- package/src/components/variants/minimal/components/SeekBar.tsx +0 -127
- package/src/components/variants/minimal/components/SettingsDropdown.tsx +0 -68
- package/src/components/variants/minimal/components/SubtitleDisplay.tsx +0 -21
- package/src/components/variants/minimal/components/TimeDisplay.tsx +0 -15
- package/src/components/variants/minimal/components/VideoElement.tsx +0 -35
- package/src/components/variants/minimal/components/VolumeControl.tsx +0 -220
- package/src/components/variants/minimal/index.ts +0 -23
- package/src/components/video-player.tsx +0 -100
- package/src/context/__tests__/media-store.test.ts +0 -509
- package/src/context/error-handling.ts +0 -398
- package/src/context/media-context.tsx +0 -254
- package/src/context/media-provider.tsx +0 -264
- package/src/context/media-store.ts +0 -387
- package/src/context/persistence.ts +0 -462
- package/src/core/events/event-system.ts +0 -448
- package/src/core/events/hooks.ts +0 -325
- package/src/core/events/index.ts +0 -22
- package/src/core/events/middleware.ts +0 -286
- package/src/core/index.ts +0 -22
- package/src/core/optimization/bundle-optimizer.tsx +0 -312
- package/src/core/performance/cicd.ts +0 -98
- package/src/core/performance/index.ts +0 -38
- package/src/core/performance/media-loading-optimizer.ts +0 -545
- package/src/core/performance/performance-budgets.ts +0 -437
- package/src/core/performance/performance-monitor.tsx +0 -488
- package/src/core/performance/performance-testing.ts +0 -461
- package/src/core/plugins/__tests__/registry.test.ts +0 -595
- package/src/core/plugins/base-plugin.ts +0 -225
- package/src/core/plugins/enhanced-plugin-system.ts +0 -435
- package/src/core/plugins/examples/analytics-plugin.ts +0 -241
- package/src/core/plugins/index.ts +0 -39
- package/src/core/plugins/registry.ts +0 -546
- package/src/core/plugins/types.ts +0 -169
- package/src/core/plugins/utils.ts +0 -317
- package/src/core/progressive-loading.tsx +0 -331
- package/src/core/providers/enhanced-hls-provider.ts +0 -307
- package/src/core/providers/lazy-provider.tsx +0 -14
- package/src/core/providers/service-provider.tsx +0 -164
- package/src/core/utils.tsx +0 -34
- package/src/features/media-session/media-session-manager.ts +0 -411
- package/src/features/picture-in-picture/pip-manager.ts +0 -428
- package/src/features/playlist/playlist-manager.ts +0 -626
- package/src/features/subtitles/subtitle-manager.ts +0 -435
- package/src/features/subtitles/subtitle-parser.ts +0 -284
- package/src/features/thumbnails/thumbnail-generator.ts +0 -528
- package/src/hooks/__tests__/currentTime-fix.test.ts +0 -149
- package/src/hooks/__tests__/use-media-player.test.ts +0 -712
- package/src/hooks/__tests__/use-media-state.test.tsx +0 -316
- package/src/hooks/accessibility/index.ts +0 -27
- package/src/hooks/accessibility/use-accessibility-preferences.ts +0 -190
- package/src/hooks/accessibility/use-focus-management.ts +0 -183
- package/src/hooks/accessibility/use-keyboard-shortcuts.ts +0 -152
- package/src/hooks/accessibility/use-screen-reader.ts +0 -212
- package/src/hooks/core/index.ts +0 -47
- package/src/hooks/legacy.ts +0 -21
- package/src/hooks/use-buffer-health.ts +0 -218
- package/src/hooks/use-enhanced-media-player.ts +0 -575
- package/src/hooks/use-focus-trap.tsx +0 -162
- package/src/hooks/use-intelligent-preloading.ts +0 -387
- package/src/hooks/use-keyboard-controls.ts +0 -115
- package/src/hooks/use-keyboard-shortcuts.ts +0 -255
- package/src/hooks/use-media-actions.ts +0 -184
- package/src/hooks/use-media-metadata.ts +0 -91
- package/src/hooks/use-media-optimistic.ts +0 -264
- package/src/hooks/use-media-player.ts +0 -343
- package/src/hooks/use-media-state.ts +0 -194
- package/src/hooks/use-memory-optimization.ts +0 -360
- package/src/hooks/use-network-status.ts +0 -124
- package/src/hooks/use-optimistic-controls.ts +0 -95
- package/src/hooks/use-optimized-media.ts +0 -283
- package/src/hooks/use-smart-preload.ts +0 -229
- package/src/hooks/use-touch-gestures.ts +0 -461
- package/src/hooks/useEnhancedSubtitles.ts +0 -258
- package/src/hooks/useKeyboardShortcuts.ts +0 -106
- package/src/hooks/useMediaControls.ts +0 -52
- package/src/hooks/useScreenshot.ts +0 -77
- package/src/hooks/useSubtitles.ts +0 -91
- package/src/hooks/useVideoPlayer.ts +0 -278
- package/src/icons/components/FullscreenIcon.tsx +0 -36
- package/src/icons/components/SettingsIcon.tsx +0 -37
- package/src/icons/components/animated/LoadingIcon.tsx +0 -27
- package/src/icons/components/animated/PlayPauseIcon.tsx +0 -42
- package/src/icons/components/media/PauseIcon.tsx +0 -38
- package/src/icons/components/media/PlayIcon.tsx +0 -37
- package/src/icons/components/volume/VolumeIcon.tsx +0 -38
- package/src/icons/components/volume/VolumeOffIcon.tsx +0 -38
- package/src/icons/index.ts +0 -56
- package/src/icons/provider.tsx +0 -58
- package/src/icons/types.ts +0 -60
- package/src/index-enhanced.ts +0 -35
- package/src/index-legacy.ts +0 -324
- package/src/index.css +0 -102
- package/src/lib/__tests__/async-utils.test.ts +0 -291
- package/src/lib/async-utils.ts +0 -194
- package/src/lib/deprecation.ts +0 -51
- package/src/lib/format-time.ts +0 -37
- package/src/lib/index.ts +0 -4
- package/src/lib/utils.ts +0 -6
- package/src/styles/globals.css +0 -462
- package/src/styles/minimal-player.css +0 -621
- package/src/styles/pixel-art.css +0 -41
- package/src/styles/videojs.css +0 -100
- package/src/types/assets.d.ts +0 -29
- package/src/types/events.ts +0 -47
- package/src/types/formats.ts +0 -79
- package/src/types/index.ts +0 -203
- package/src/types/videojs-plugins.d.ts +0 -14
package/README.md
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
- 🎬 **Multiple Formats**: MP4, HLS/m3u8, MOV, and audio support
|
|
8
8
|
- 🎨 **Beautiful Design**: Tailwind CSS v4 with OKLCH colors and modern CSS
|
|
9
|
-
- ♿ **Accessible**:
|
|
9
|
+
- ♿ **Accessible**: ARIA attributes, keyboard navigation and screen reader support; the seek and volume controls expose `role="slider"` with the accessible names "Seek" and "Volume" and full keyboard support
|
|
10
10
|
- ⚡ **Performance Optimized**: Bundle splitting, lazy loading, and size monitoring
|
|
11
|
-
- 🔧 **Plugin System**: Extensible
|
|
11
|
+
- 🔧 **Plugin System**: Extensible internal plugin registry (not yet part of the public package exports)
|
|
12
12
|
- 🎯 **React 19 Ready**: Modern concurrent features, suspense boundaries, and optimistic updates
|
|
13
13
|
- 📱 **Responsive**: Mobile-first design with touch gestures
|
|
14
14
|
- 🌙 **Dark Mode**: Built-in dark mode support
|
|
@@ -25,6 +25,24 @@ bun add @therealtinhtute/baroiplayer
|
|
|
25
25
|
yarn add @therealtinhtute/baroiplayer
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
+
## ⚠️ Known limitation
|
|
29
|
+
|
|
30
|
+
**TypeScript consumers cannot type-check this package today.**
|
|
31
|
+
|
|
32
|
+
`package.json` points `types` at `./src/index.ts` in two places — as the top-level `types` field, and inside `exports["."]` ahead of `import`. TypeScript therefore resolves types to raw source, not to `dist`, on a *normal* install; it is not opt-in. That source imports the internal `@rp/ui` package at 15 sites across 10 files, and `@rp/ui` is `private: true` and unpublished.
|
|
33
|
+
|
|
34
|
+
The consequences, measured against a real install (tarball contents in `node_modules`, no workspace symlink, `moduleResolution: "Bundler"`):
|
|
35
|
+
|
|
36
|
+
- **Runtime works.** `dist/` bundles the `@rp/ui` primitives, so `import { SimpleMinimalPlayer } from "@therealtinhtute/baroiplayer"` runs correctly in a JS build.
|
|
37
|
+
- **`tsc` fails** with `TS2307: Cannot find module '@rp/ui/components/button'` (and `/slider`, `/hooks/use-mobile`, …).
|
|
38
|
+
- **`skipLibCheck` does not help**, because `src/index.ts` is a `.ts` file, not a `.d.ts`.
|
|
39
|
+
|
|
40
|
+
The same applies to the `development` export condition and to the deep-import paths (`./components/*`, `./hooks/*`, `./lib/*`, `./types/*`), which all resolve to source by design.
|
|
41
|
+
|
|
42
|
+
Workaround until this is fixed: map the specifier in your own `tsconfig.json`, e.g. `"paths": { "@rp/ui/*": ["./types/rp-ui-shim.d.ts"] }`, or set `"skipDefaultLibCheck"`-style suppression for the package.
|
|
43
|
+
|
|
44
|
+
The real fix is to emit `.d.ts` files and repoint `types` at `dist` — tracked as P0-1 in `docs/plans/active/v2-videojs10-skin-layer.md`.
|
|
45
|
+
|
|
28
46
|
## 🚀 Quick Start
|
|
29
47
|
|
|
30
48
|
### Basic Usage
|
|
@@ -80,24 +98,25 @@ function App() {
|
|
|
80
98
|
### HLS Streaming
|
|
81
99
|
|
|
82
100
|
```jsx
|
|
83
|
-
import {
|
|
101
|
+
import { MediaPlayerHLS } from '@therealtinhtute/baroiplayer';
|
|
84
102
|
|
|
85
103
|
function App() {
|
|
86
104
|
return (
|
|
87
|
-
<
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
crossOrigin: "anonymous"
|
|
93
|
-
}
|
|
105
|
+
<MediaPlayerHLS
|
|
106
|
+
sources={[
|
|
107
|
+
{
|
|
108
|
+
src: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8',
|
|
109
|
+
type: 'application/x-mpegURL'
|
|
94
110
|
}
|
|
95
|
-
}
|
|
111
|
+
]}
|
|
96
112
|
/>
|
|
97
113
|
);
|
|
98
114
|
}
|
|
99
115
|
```
|
|
100
116
|
|
|
117
|
+
`MediaPlayerHLS` takes a `sources` array and plays HLS through the video.js adapter
|
|
118
|
+
(`hlsConfig`, `enableQualitySelector` and `enableSubtitles` are also supported).
|
|
119
|
+
|
|
101
120
|
## 🎨 Styling
|
|
102
121
|
|
|
103
122
|
### Global Styles
|
|
@@ -142,8 +161,6 @@ The easiest way to get started with a beautiful, accessible player:
|
|
|
142
161
|
<SimpleMinimalPlayer
|
|
143
162
|
src="video.mp4"
|
|
144
163
|
poster="poster.jpg"
|
|
145
|
-
autoPlay={false}
|
|
146
|
-
muted={false}
|
|
147
164
|
subtitleTracks={subtitleTracks}
|
|
148
165
|
crossOrigin="anonymous"
|
|
149
166
|
/>
|
|
@@ -151,14 +168,16 @@ The easiest way to get started with a beautiful, accessible player:
|
|
|
151
168
|
|
|
152
169
|
### MediaPlayer
|
|
153
170
|
|
|
154
|
-
|
|
171
|
+
Renders a native `<video>`/`<audio>` element inside an overlay container. It does not
|
|
172
|
+
ship custom play/volume/seek/settings UI: native browser controls are used by default
|
|
173
|
+
(`showControls`, with `customControls={false}`), and the overlay is reserved for loading,
|
|
174
|
+
buffering and error states plus any `children` you pass. It supplies its own media store
|
|
175
|
+
when there is no `MediaProvider` above it, so it renders standalone.
|
|
155
176
|
|
|
156
177
|
```jsx
|
|
157
|
-
import { MediaPlayer
|
|
178
|
+
import { MediaPlayer } from '@therealtinhtute/baroiplayer';
|
|
158
179
|
|
|
159
|
-
<MediaPlayer src="video.mp4"
|
|
160
|
-
<MediaPlayerControls />
|
|
161
|
-
</MediaPlayer>
|
|
180
|
+
<MediaPlayer src="video.mp4" showControls />
|
|
162
181
|
```
|
|
163
182
|
|
|
164
183
|
### AudioPlayer
|
|
@@ -177,13 +196,13 @@ import { AudioPlayer } from '@therealtinhtute/baroiplayer';
|
|
|
177
196
|
|
|
178
197
|
| Prop | Type | Default | Description |
|
|
179
198
|
|------|------|---------|-------------|
|
|
180
|
-
| `src` | `string` | Required | Media source URL |
|
|
199
|
+
| `src` | `string \| string[]` | Required | Media source URL(s) |
|
|
181
200
|
| `poster` | `string` | - | Poster image for video |
|
|
182
201
|
| `autoPlay` | `boolean` | `false` | Auto-play media |
|
|
183
202
|
| `muted` | `boolean` | `false` | Start muted |
|
|
184
203
|
| `loop` | `boolean` | `false` | Loop media |
|
|
185
|
-
| `
|
|
186
|
-
| `subtitleTracks` | `array` | `[]` | Subtitle track objects |
|
|
204
|
+
| `showControls` | `boolean` | `true` | Show controls (`MediaPlayer`, `VideoPlayer`, `AudioPlayer`) |
|
|
205
|
+
| `subtitleTracks` | `array` | `[]` | Subtitle track objects (`SimpleMinimalPlayer`) |
|
|
187
206
|
| `crossOrigin` | `string` | - | CORS setting |
|
|
188
207
|
|
|
189
208
|
### Subtitle Tracks
|
|
@@ -192,8 +211,9 @@ import { AudioPlayer } from '@therealtinhtute/baroiplayer';
|
|
|
192
211
|
interface SubtitleTrack {
|
|
193
212
|
id: string;
|
|
194
213
|
label: string;
|
|
195
|
-
language
|
|
196
|
-
src
|
|
214
|
+
language?: string;
|
|
215
|
+
src?: string;
|
|
216
|
+
kind?: 'subtitles' | 'captions' | 'descriptions' | 'chapters' | 'metadata';
|
|
197
217
|
default?: boolean;
|
|
198
218
|
}
|
|
199
219
|
```
|
|
@@ -202,61 +222,58 @@ interface SubtitleTrack {
|
|
|
202
222
|
|
|
203
223
|
### Custom Controls
|
|
204
224
|
|
|
225
|
+
`useMediaPlayer` returns `{ state, controls, mediaRef, containerRef }`; attach `mediaRef`
|
|
226
|
+
to your own media element and drive it through `controls`:
|
|
227
|
+
|
|
205
228
|
```jsx
|
|
206
|
-
import {
|
|
229
|
+
import { useMediaPlayer } from '@therealtinhtute/baroiplayer';
|
|
207
230
|
|
|
208
|
-
function
|
|
209
|
-
const {
|
|
231
|
+
function CustomPlayer() {
|
|
232
|
+
const { state, controls, mediaRef } = useMediaPlayer({ src: 'video.mp4' });
|
|
210
233
|
|
|
211
234
|
return (
|
|
212
|
-
<div className="
|
|
213
|
-
<
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
235
|
+
<div className="relative">
|
|
236
|
+
<video ref={mediaRef} className="w-full" />
|
|
237
|
+
<div className="flex items-center gap-4">
|
|
238
|
+
<button onClick={controls.toggle}>
|
|
239
|
+
{state.isPlaying ? 'Pause' : 'Play'}
|
|
240
|
+
</button>
|
|
241
|
+
<input
|
|
242
|
+
type="range"
|
|
243
|
+
min={0}
|
|
244
|
+
max={state.duration || 0}
|
|
245
|
+
value={state.currentTime}
|
|
246
|
+
onChange={(e) => controls.seek(parseFloat(e.target.value))}
|
|
247
|
+
/>
|
|
248
|
+
<input
|
|
249
|
+
type="range"
|
|
250
|
+
min={0}
|
|
251
|
+
max={1}
|
|
252
|
+
step={0.1}
|
|
253
|
+
value={state.volume}
|
|
254
|
+
onChange={(e) => controls.setVolume(parseFloat(e.target.value))}
|
|
255
|
+
/>
|
|
256
|
+
</div>
|
|
223
257
|
</div>
|
|
224
258
|
);
|
|
225
259
|
}
|
|
226
|
-
|
|
227
|
-
function App() {
|
|
228
|
-
return (
|
|
229
|
-
<MediaPlayer src="video.mp4">
|
|
230
|
-
<CustomControls />
|
|
231
|
-
</MediaPlayer>
|
|
232
|
-
);
|
|
233
|
-
}
|
|
234
260
|
```
|
|
235
261
|
|
|
236
262
|
### Plugins
|
|
237
263
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
const analytics = new AnalyticsPlugin({
|
|
242
|
-
trackingId: 'your-tracking-id'
|
|
243
|
-
});
|
|
244
|
-
|
|
245
|
-
<MediaPlayer src="video.mp4" plugins={[analytics]} />
|
|
246
|
-
```
|
|
264
|
+
The plugin system (`base-plugin`, registry) is currently internal: plugins are not
|
|
265
|
+
re-exported from the package root, so the player components have no public `plugins`
|
|
266
|
+
prop yet.
|
|
247
267
|
|
|
248
268
|
### Custom Themes
|
|
249
269
|
|
|
250
|
-
|
|
251
|
-
import { SimpleMinimalPlayer } from '@therealtinhtute/baroiplayer';
|
|
270
|
+
Theming is done with CSS custom properties (there is no `theme` object prop):
|
|
252
271
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}}
|
|
259
|
-
/>
|
|
272
|
+
```css
|
|
273
|
+
.player-container {
|
|
274
|
+
--media-primary: oklch(70% 0.15 30); /* Orange */
|
|
275
|
+
--media-bg: oklch(15% 0.01 30); /* Dark orange background */
|
|
276
|
+
}
|
|
260
277
|
```
|
|
261
278
|
|
|
262
279
|
## 🎹 Keyboard Shortcuts
|
|
@@ -290,7 +307,7 @@ The player is fully responsive and adapts to different screen sizes:
|
|
|
290
307
|
|
|
291
308
|
```bash
|
|
292
309
|
# Clone the repository
|
|
293
|
-
git clone https://github.com/
|
|
310
|
+
git clone https://github.com/ryanphanrp/baroiplayer.git
|
|
294
311
|
cd baroiplayer
|
|
295
312
|
|
|
296
313
|
# Install dependencies
|
|
@@ -336,10 +353,12 @@ npm publish
|
|
|
336
353
|
|
|
337
354
|
### Core Components
|
|
338
355
|
|
|
339
|
-
- **MediaPlayer**:
|
|
340
|
-
- **
|
|
356
|
+
- **MediaPlayer**: Native `<video>`/`<audio>` player with overlay states
|
|
357
|
+
- **MediaPlayerRoot**: Headless root that supplies the media store
|
|
358
|
+
- **MediaPlayerHLS**: HLS player built on the video.js adapter
|
|
341
359
|
- **AudioPlayer**: Audio-specific player
|
|
342
|
-
- **SimpleMinimalPlayer**: Easy-to-use minimal player
|
|
360
|
+
- **SimpleMinimalPlayer**: Easy-to-use minimal player with built-in controls
|
|
361
|
+
- **MinimalMediaPlayer**: Configurable minimal player
|
|
343
362
|
|
|
344
363
|
### Features
|
|
345
364
|
|
|
@@ -350,7 +369,7 @@ npm publish
|
|
|
350
369
|
|
|
351
370
|
## 🤝 Contributing
|
|
352
371
|
|
|
353
|
-
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
|
|
372
|
+
We welcome contributions! Please see our [Contributing Guide](../../CONTRIBUTING.md) for details.
|
|
354
373
|
|
|
355
374
|
### Development Workflow
|
|
356
375
|
|
|
@@ -374,9 +393,9 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
374
393
|
|
|
375
394
|
## 📞 Support
|
|
376
395
|
|
|
377
|
-
- 📚 [Documentation](https://github.com/
|
|
378
|
-
- 🐛 [Issue Tracker](https://github.com/
|
|
379
|
-
- 💬 [Discussions](https://github.com/
|
|
396
|
+
- 📚 [Documentation](https://github.com/ryanphanrp/baroiplayer#readme)
|
|
397
|
+
- 🐛 [Issue Tracker](https://github.com/ryanphanrp/baroiplayer/issues)
|
|
398
|
+
- 💬 [Discussions](https://github.com/ryanphanrp/baroiplayer/discussions)
|
|
380
399
|
|
|
381
400
|
---
|
|
382
401
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface IconProps {
|
|
3
|
+
size?: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const MinimalPlayIcon: React.FC<IconProps>;
|
|
8
|
+
export declare const MinimalPauseIcon: React.FC<IconProps>;
|
|
9
|
+
export declare const MinimalVolumeIcon: React.FC<IconProps>;
|
|
10
|
+
export declare const MinimalVolumeMutedIcon: React.FC<IconProps>;
|
|
11
|
+
export declare const MinimalFullscreenIcon: React.FC<IconProps>;
|
|
12
|
+
export declare const MinimalExitFullscreenIcon: React.FC<IconProps>;
|
|
13
|
+
export declare const MinimalSettingsIcon: React.FC<IconProps>;
|
|
14
|
+
export declare const MinimalSpinner: React.FC<IconProps>;
|
|
15
|
+
export declare const MinimalForwardIcon: React.FC<IconProps>;
|
|
16
|
+
export declare const MinimalBackwardIcon: React.FC<IconProps>;
|
|
17
|
+
export declare const MinimalForward10Icon: React.FC<IconProps>;
|
|
18
|
+
export declare const MinimalBackward10Icon: React.FC<IconProps>;
|
|
19
|
+
export declare const MinimalSubtitleIcon: React.FC<IconProps>;
|
|
20
|
+
export declare const MinimalScreenshotIcon: React.FC<IconProps>;
|
|
21
|
+
export declare const MinimalSpeedIcon: React.FC<IconProps>;
|
|
22
|
+
export interface IconSet {
|
|
23
|
+
play?: React.FC<IconProps>;
|
|
24
|
+
pause?: React.FC<IconProps>;
|
|
25
|
+
volume?: React.FC<IconProps>;
|
|
26
|
+
volumeMuted?: React.FC<IconProps>;
|
|
27
|
+
fullscreen?: React.FC<IconProps>;
|
|
28
|
+
exitFullscreen?: React.FC<IconProps>;
|
|
29
|
+
settings?: React.FC<IconProps>;
|
|
30
|
+
forward?: React.FC<IconProps>;
|
|
31
|
+
backward?: React.FC<IconProps>;
|
|
32
|
+
spinner?: React.FC<IconProps>;
|
|
33
|
+
subtitle?: React.FC<IconProps>;
|
|
34
|
+
}
|
|
35
|
+
export declare const defaultMinimalIcons: IconSet;
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAiBzB,MAAM,WAAW,SAAS;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAGD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIqC,CAAA;AAGrF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIqC,CAAA;AAGtF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIwC,CAAA;AAG1F,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIqC,CAAA;AAG5F,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAI0C,CAAA;AAGhG,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIqC,CAAA;AAG/F,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIqC,CAAA;AAGzF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAW9C,CAAA;AAGD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIsC,CAAA;AAGzF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIoC,CAAA;AAGxF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAImC,CAAA;AAGxF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAImC,CAAA;AAGzF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIwC,CAAA;AAG5F,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAIiC,CAAA;AAGvF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAI6C,CAAA;AAG9F,MAAM,WAAW,OAAO;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;IACjC,UAAU,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;IAChC,cAAc,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAA;CAC9B;AAGD,eAAO,MAAM,mBAAmB,EAAE,OAYjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowLeftIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/ArrowLeftIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,QAAA,MAAM,aAAa,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAYpD,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowRightIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/ArrowRightIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,cAAc,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAYrD,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/AudioIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAmBtC,QAAA,MAAM,IAAI,UAjBgB,QAAQ,CAAC,aAAa,CAAC,sBAiB3B,CAAA;AACtB,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackwardIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/BackwardIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,YAAY,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAMnD,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CameraIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/CameraIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAgBtC,QAAA,MAAM,IAAI,UAdiB,QAAQ,CAAC,aAAa,CAAC,sBAc3B,CAAA;AACvB,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/CheckIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAgBtC,QAAA,MAAM,IAAI,UAdgB,QAAQ,CAAC,aAAa,CAAC,sBAc3B,CAAA;AACtB,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnablePiPIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/EnablePiPIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,iBAAS,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,qBAYpD;AACD,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ForwardIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/ForwardIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,WAAW,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAMlD,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullscreenEnterIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/FullscreenEnterIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,mBAAmB,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAiB1D,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullscreenExitIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/FullscreenExitIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,kBAAkB,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAiBzD,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/LoadingIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,WAAW,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBA0BlD,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PauseIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/PauseIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,SAAS,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAiBhD,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlayIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/PlayIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,QAAQ,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAe/C,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlaybackSpeedIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/PlaybackSpeedIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,iBAAiB,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAiBxD,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QualityIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/QualityIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,WAAW,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAelD,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/SettingsIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,QAAA,MAAM,YAAY,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAMnD,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/SliderIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,UAAU,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAejD,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubtitleIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/SubtitleIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,YAAY,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAenD,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubtitleOffIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/SubtitleOffIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,eAAe,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAmBtD,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnPiPIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/UnPiPIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,qBAYvD;AACD,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VolumeMutedIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/VolumeMutedIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,eAAe,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAUtD,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VolumeOneIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/VolumeOneIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,aAAa,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAgBpD,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VolumeThreeIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/VolumeThreeIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,eAAe,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAUtD,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VolumeTwoIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/svg-icons/VolumeTwoIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAQ,MAAM,OAAO,CAAA;AAEtC,QAAA,MAAM,aAAa,GAAI,OAAO,QAAQ,CAAC,aAAa,CAAC,sBAUpD,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface GradientAudioProps {
|
|
2
|
+
src: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
autoPlay?: boolean;
|
|
5
|
+
loop?: boolean;
|
|
6
|
+
title?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Gradient audio skin on Video.js v10 — `AudioPlayer` + `Audio` from the preset, with the
|
|
10
|
+
* same ejected skin layer and glyph bindings as `GradientVideo`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function GradientAudio({ src, className, autoPlay, loop, title }: GradientAudioProps): import('react').JSX.Element;
|
|
13
|
+
//# sourceMappingURL=gradient-audio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gradient-audio.d.ts","sourceRoot":"","sources":["../../../../src/components/variants/gradient/gradient-audio.tsx"],"names":[],"mappings":"AAEA,OAAO,+BAA+B,CAAA;AACtC,OAAO,qBAAqB,CAAA;AAM5B,MAAM,WAAW,kBAAkB;IAClC,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,kBAAkB,+BAyB1F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gradient-controls.d.ts","sourceRoot":"","sources":["../../../../src/components/variants/gradient/gradient-controls.tsx"],"names":[],"mappings":"AA6IA,wBAAgB,gBAAgB,CAAC,EAAE,KAAa,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,+BAgHtE"}
|