@therealtinhtute/baroiplayer 1.0.0 → 1.0.2
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/dist/context/media.js +1 -1
- package/dist/context/media.mjs +5 -5
- package/dist/context/store.js +1 -1
- package/dist/context/store.mjs +1 -1
- package/dist/{context-BMteAJDN.js → context-Af84FynT.js} +304 -265
- package/dist/context-Af84FynT.js.map +1 -0
- package/dist/context-CwZnPdz0.cjs +23 -0
- package/dist/context-CwZnPdz0.cjs.map +1 -0
- package/dist/core.js +2 -2
- package/dist/core.mjs +27 -27
- package/dist/{enhanced-components-DTIObgB7.cjs → enhanced-components-CXnYiOt6.cjs} +2 -2
- package/dist/{enhanced-components-DTIObgB7.cjs.map → enhanced-components-CXnYiOt6.cjs.map} +1 -1
- package/dist/{enhanced-components-DHv0MFvG.js → enhanced-components-Da0TSvKe.js} +158 -158
- package/dist/{enhanced-components-DHv0MFvG.js.map → enhanced-components-Da0TSvKe.js.map} +1 -1
- package/dist/hooks-BhW_i-9L.js +2013 -0
- package/dist/hooks-BhW_i-9L.js.map +1 -0
- package/dist/hooks-DTXeB5Z-.cjs +4 -0
- package/dist/hooks-DTXeB5Z-.cjs.map +1 -0
- package/dist/index.css +102 -1
- package/dist/index.d.ts +1388 -0
- package/dist/index.js +27 -112
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -6126
- package/dist/index.mjs.map +1 -1
- package/dist/{minimal-components-DSq5sQpy.js → minimal-components-B0bILe18.js} +236 -236
- package/dist/{minimal-components-DSq5sQpy.js.map → minimal-components-B0bILe18.js.map} +1 -1
- package/dist/{minimal-components-DflWiihN.cjs → minimal-components-BsqodtY8.cjs} +2 -2
- package/dist/{minimal-components-DflWiihN.cjs.map → minimal-components-BsqodtY8.cjs.map} +1 -1
- package/dist/minimal-components.css +589 -1
- package/dist/package.json +28 -0
- package/dist/{performance-monitor-rMW1RgV3.js → performance-monitor--rzKTlbj.js} +2 -2
- package/dist/{performance-monitor-rMW1RgV3.js.map → performance-monitor--rzKTlbj.js.map} +1 -1
- package/dist/{performance-monitor-CUW6f5ll.cjs → performance-monitor-cjIvZE2D.cjs} +2 -2
- package/dist/{performance-monitor-CUW6f5ll.cjs.map → performance-monitor-cjIvZE2D.cjs.map} +1 -1
- package/dist/src/adapters/videojs-adapter.d.ts +38 -0
- package/dist/src/adapters/videojs-adapter.d.ts.map +1 -0
- package/dist/src/adapters/videojs-adapter.js +350 -0
- package/dist/src/adapters/videojs-adapter.tsx +470 -0
- package/dist/src/assets/mona-loading.gif +0 -0
- package/dist/src/components/AnimateLoading.d.ts +9 -0
- package/dist/src/components/AnimateLoading.d.ts.map +1 -0
- package/dist/src/components/AnimateLoading.js +41 -0
- package/dist/src/components/AnimateLoading.tsx +115 -0
- package/dist/src/components/LoadingState.d.ts +33 -0
- package/dist/src/components/LoadingState.d.ts.map +1 -0
- package/dist/src/components/LoadingState.js +111 -0
- package/dist/src/components/LoadingState.tsx +248 -0
- package/dist/src/components/accessibility/keyboard-help-overlay.d.ts +17 -0
- package/dist/src/components/accessibility/keyboard-help-overlay.d.ts.map +1 -0
- package/dist/src/components/accessibility/keyboard-help-overlay.js +90 -0
- package/dist/src/components/accessibility/keyboard-help-overlay.tsx +213 -0
- package/dist/src/components/audio-player.d.ts +3 -0
- package/dist/src/components/audio-player.d.ts.map +1 -0
- package/dist/src/components/audio-player.js +31 -0
- package/dist/src/components/audio-player.tsx +85 -0
- package/dist/src/components/basic/index.d.ts +26 -0
- package/dist/src/components/basic/index.d.ts.map +1 -0
- package/dist/src/components/basic/index.js +29 -0
- package/dist/src/components/basic/index.ts +37 -0
- package/dist/src/components/enhanced/advanced-features.d.ts +45 -0
- package/dist/src/components/enhanced/advanced-features.d.ts.map +1 -0
- package/dist/src/components/enhanced/advanced-features.js +64 -0
- package/dist/src/components/enhanced/advanced-features.tsx +316 -0
- package/dist/src/components/enhanced/debug-panel.d.ts +70 -0
- package/dist/src/components/enhanced/debug-panel.d.ts.map +1 -0
- package/dist/src/components/enhanced/debug-panel.js +94 -0
- package/dist/src/components/enhanced/debug-panel.tsx +422 -0
- package/dist/src/components/enhanced/enhanced-controls.d.ts +50 -0
- package/dist/src/components/enhanced/enhanced-controls.d.ts.map +1 -0
- package/dist/src/components/enhanced/enhanced-controls.js +233 -0
- package/dist/src/components/enhanced/enhanced-controls.tsx +600 -0
- package/dist/src/components/enhanced/enhanced-media-player.d.ts +26 -0
- package/dist/src/components/enhanced/enhanced-media-player.d.ts.map +1 -0
- package/dist/src/components/enhanced/enhanced-media-player.js +316 -0
- package/dist/src/components/enhanced/enhanced-media-player.tsx +509 -0
- package/dist/src/components/enhanced/error-handling.d.ts +36 -0
- package/dist/src/components/enhanced/error-handling.d.ts.map +1 -0
- package/dist/src/components/enhanced/error-handling.js +153 -0
- package/dist/src/components/enhanced/error-handling.tsx +345 -0
- package/dist/src/components/enhanced/index.d.ts +7 -0
- package/dist/src/components/enhanced/index.d.ts.map +1 -0
- package/dist/src/components/enhanced/index.js +10 -0
- package/dist/src/components/enhanced/index.ts +39 -0
- package/dist/src/components/enhanced/media-player-enhanced.d.ts +21 -0
- package/dist/src/components/enhanced/media-player-enhanced.d.ts.map +1 -0
- package/dist/src/components/enhanced/media-player-enhanced.js +250 -0
- package/dist/src/components/enhanced/media-player-enhanced.tsx +349 -0
- package/dist/src/components/examples/basic-video-player.d.ts +10 -0
- package/dist/src/components/examples/basic-video-player.d.ts.map +1 -0
- package/dist/src/components/examples/basic-video-player.js +16 -0
- package/dist/src/components/examples/basic-video-player.tsx +55 -0
- package/dist/src/components/examples/custom-controls-example.d.ts +10 -0
- package/dist/src/components/examples/custom-controls-example.d.ts.map +1 -0
- package/dist/src/components/examples/custom-controls-example.js +12 -0
- package/dist/src/components/examples/custom-controls-example.tsx +63 -0
- package/dist/src/components/examples/enhanced-controls-example.d.ts +9 -0
- package/dist/src/components/examples/enhanced-controls-example.d.ts.map +1 -0
- package/dist/src/components/examples/enhanced-controls-example.js +18 -0
- package/dist/src/components/examples/enhanced-controls-example.tsx +114 -0
- package/dist/src/components/examples/enhanced-media-player-example.d.ts +9 -0
- package/dist/src/components/examples/enhanced-media-player-example.d.ts.map +1 -0
- package/dist/src/components/examples/enhanced-media-player-example.js +13 -0
- package/dist/src/components/examples/enhanced-media-player-example.tsx +293 -0
- package/dist/src/components/examples/loading-states-demo.d.ts +2 -0
- package/dist/src/components/examples/loading-states-demo.d.ts.map +1 -0
- package/dist/src/components/examples/loading-states-demo.js +41 -0
- package/dist/src/components/examples/loading-states-demo.tsx +142 -0
- package/dist/src/components/examples/react-19-demo.d.ts +10 -0
- package/dist/src/components/examples/react-19-demo.d.ts.map +1 -0
- package/dist/src/components/examples/react-19-demo.js +104 -0
- package/dist/src/components/examples/react-19-demo.tsx +381 -0
- package/dist/src/components/examples/volume-orientation-demo.d.ts +2 -0
- package/dist/src/components/examples/volume-orientation-demo.d.ts.map +1 -0
- package/dist/src/components/examples/volume-orientation-demo.js +31 -0
- package/dist/src/components/examples/volume-orientation-demo.tsx +114 -0
- package/dist/src/components/icon-demo.d.ts +2 -0
- package/dist/src/components/icon-demo.d.ts.map +1 -0
- package/dist/src/components/icon-demo.js +16 -0
- package/dist/src/components/icon-demo.tsx +209 -0
- package/dist/src/components/icons/index.d.ts +36 -0
- package/dist/src/components/icons/index.d.ts.map +1 -0
- package/dist/src/components/icons/index.js +59 -0
- package/dist/src/components/icons/index.tsx +166 -0
- package/dist/src/components/icons/svg-icons/ArrowLeftIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/ArrowLeftIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/ArrowLeftIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/ArrowLeftIcon.tsx +18 -0
- package/dist/src/components/icons/svg-icons/ArrowRightIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/ArrowRightIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/ArrowRightIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/ArrowRightIcon.tsx +18 -0
- package/dist/src/components/icons/svg-icons/AudioIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/AudioIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/AudioIcon.js +4 -0
- package/dist/src/components/icons/svg-icons/AudioIcon.tsx +22 -0
- package/dist/src/components/icons/svg-icons/BackwardIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/BackwardIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/BackwardIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/BackwardIcon.tsx +12 -0
- package/dist/src/components/icons/svg-icons/CameraIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/CameraIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/CameraIcon.js +4 -0
- package/dist/src/components/icons/svg-icons/CameraIcon.tsx +19 -0
- package/dist/src/components/icons/svg-icons/CheckIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/CheckIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/CheckIcon.js +4 -0
- package/dist/src/components/icons/svg-icons/CheckIcon.tsx +19 -0
- package/dist/src/components/icons/svg-icons/EnablePiPIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/EnablePiPIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/EnablePiPIcon.js +5 -0
- package/dist/src/components/icons/svg-icons/EnablePiPIcon.tsx +17 -0
- package/dist/src/components/icons/svg-icons/ForwardIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/ForwardIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/ForwardIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/ForwardIcon.tsx +12 -0
- package/dist/src/components/icons/svg-icons/FullscreenEnterIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/FullscreenEnterIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/FullscreenEnterIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/FullscreenEnterIcon.tsx +23 -0
- package/dist/src/components/icons/svg-icons/FullscreenExitIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/FullscreenExitIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/FullscreenExitIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/FullscreenExitIcon.tsx +23 -0
- package/dist/src/components/icons/svg-icons/LoadingIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/LoadingIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/LoadingIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/LoadingIcon.tsx +32 -0
- package/dist/src/components/icons/svg-icons/PauseIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/PauseIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/PauseIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/PauseIcon.tsx +23 -0
- package/dist/src/components/icons/svg-icons/PlayIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/PlayIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/PlayIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/PlayIcon.tsx +21 -0
- package/dist/src/components/icons/svg-icons/PlaybackSpeedIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/PlaybackSpeedIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/PlaybackSpeedIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/PlaybackSpeedIcon.tsx +23 -0
- package/dist/src/components/icons/svg-icons/QualityIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/QualityIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/QualityIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/QualityIcon.tsx +21 -0
- package/dist/src/components/icons/svg-icons/SettingsIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/SettingsIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/SettingsIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/SettingsIcon.tsx +12 -0
- package/dist/src/components/icons/svg-icons/SliderIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/SliderIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/SliderIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/SliderIcon.tsx +21 -0
- package/dist/src/components/icons/svg-icons/SubtitleIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/SubtitleIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/SubtitleIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/SubtitleIcon.tsx +21 -0
- package/dist/src/components/icons/svg-icons/SubtitleOffIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/SubtitleOffIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/SubtitleOffIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/SubtitleOffIcon.tsx +25 -0
- package/dist/src/components/icons/svg-icons/UnPiPIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/UnPiPIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/UnPiPIcon.js +5 -0
- package/dist/src/components/icons/svg-icons/UnPiPIcon.tsx +17 -0
- package/dist/src/components/icons/svg-icons/VolumeMutedIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/VolumeMutedIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/VolumeMutedIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/VolumeMutedIcon.tsx +16 -0
- package/dist/src/components/icons/svg-icons/VolumeOneIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/VolumeOneIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/VolumeOneIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/VolumeOneIcon.tsx +22 -0
- package/dist/src/components/icons/svg-icons/VolumeThreeIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/VolumeThreeIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/VolumeThreeIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/VolumeThreeIcon.tsx +16 -0
- package/dist/src/components/icons/svg-icons/VolumeTwoIcon.d.ts +4 -0
- package/dist/src/components/icons/svg-icons/VolumeTwoIcon.d.ts.map +1 -0
- package/dist/src/components/icons/svg-icons/VolumeTwoIcon.js +3 -0
- package/dist/src/components/icons/svg-icons/VolumeTwoIcon.tsx +16 -0
- package/dist/src/components/legacy.d.ts +13 -0
- package/dist/src/components/legacy.d.ts.map +1 -0
- package/dist/src/components/legacy.js +52 -0
- package/dist/src/components/legacy.tsx +93 -0
- package/dist/src/components/media-metadata-display.d.ts +11 -0
- package/dist/src/components/media-metadata-display.d.ts.map +1 -0
- package/dist/src/components/media-metadata-display.js +20 -0
- package/dist/src/components/media-metadata-display.tsx +100 -0
- package/dist/src/components/media-player-audio.d.ts +9 -0
- package/dist/src/components/media-player-audio.d.ts.map +1 -0
- package/dist/src/components/media-player-audio.js +18 -0
- package/dist/src/components/media-player-audio.tsx +39 -0
- package/dist/src/components/media-player-controls.d.ts +23 -0
- package/dist/src/components/media-player-controls.d.ts.map +1 -0
- package/dist/src/components/media-player-controls.js +150 -0
- package/dist/src/components/media-player-controls.tsx +226 -0
- package/dist/src/components/media-player-error.d.ts +16 -0
- package/dist/src/components/media-player-error.d.ts.map +1 -0
- package/dist/src/components/media-player-error.js +85 -0
- package/dist/src/components/media-player-error.tsx +163 -0
- package/dist/src/components/media-player-fullscreen.d.ts +12 -0
- package/dist/src/components/media-player-fullscreen.d.ts.map +1 -0
- package/dist/src/components/media-player-fullscreen.js +68 -0
- package/dist/src/components/media-player-fullscreen.tsx +109 -0
- package/dist/src/components/media-player-hls.d.ts +23 -0
- package/dist/src/components/media-player-hls.d.ts.map +1 -0
- package/dist/src/components/media-player-hls.js +20 -0
- package/dist/src/components/media-player-hls.tsx +111 -0
- package/dist/src/components/media-player-loading.d.ts +12 -0
- package/dist/src/components/media-player-loading.d.ts.map +1 -0
- package/dist/src/components/media-player-loading.js +53 -0
- package/dist/src/components/media-player-loading.tsx +76 -0
- package/dist/src/components/media-player-play.d.ts +11 -0
- package/dist/src/components/media-player-play.d.ts.map +1 -0
- package/dist/src/components/media-player-play.js +44 -0
- package/dist/src/components/media-player-play.tsx +75 -0
- package/dist/src/components/media-player-root.d.ts +28 -0
- package/dist/src/components/media-player-root.d.ts.map +1 -0
- package/dist/src/components/media-player-root.js +243 -0
- package/dist/src/components/media-player-root.tsx +340 -0
- package/dist/src/components/media-player-seek.d.ts +15 -0
- package/dist/src/components/media-player-seek.d.ts.map +1 -0
- package/dist/src/components/media-player-seek.js +92 -0
- package/dist/src/components/media-player-seek.tsx +168 -0
- package/dist/src/components/media-player-time.d.ts +12 -0
- package/dist/src/components/media-player-time.d.ts.map +1 -0
- package/dist/src/components/media-player-time.js +57 -0
- package/dist/src/components/media-player-time.tsx +99 -0
- package/dist/src/components/media-player-tooltip.d.ts +13 -0
- package/dist/src/components/media-player-tooltip.d.ts.map +1 -0
- package/dist/src/components/media-player-tooltip.js +14 -0
- package/dist/src/components/media-player-tooltip.tsx +58 -0
- package/dist/src/components/media-player-video.d.ts +9 -0
- package/dist/src/components/media-player-video.d.ts.map +1 -0
- package/dist/src/components/media-player-video.js +18 -0
- package/dist/src/components/media-player-video.tsx +39 -0
- package/dist/src/components/media-player-volume.d.ts +13 -0
- package/dist/src/components/media-player-volume.d.ts.map +1 -0
- package/dist/src/components/media-player-volume.js +88 -0
- package/dist/src/components/media-player-volume.tsx +155 -0
- package/dist/src/components/media-player.d.ts +3 -0
- package/dist/src/components/media-player.d.ts.map +1 -0
- package/dist/src/components/media-player.js +67 -0
- package/dist/src/components/media-player.tsx +257 -0
- package/dist/src/components/media-suspense.d.ts +78 -0
- package/dist/src/components/media-suspense.d.ts.map +1 -0
- package/dist/src/components/media-suspense.js +173 -0
- package/dist/src/components/media-suspense.tsx +362 -0
- package/dist/src/components/player-settings-form.d.ts +8 -0
- package/dist/src/components/player-settings-form.d.ts.map +1 -0
- package/dist/src/components/player-settings-form.js +46 -0
- package/dist/src/components/player-settings-form.tsx +163 -0
- package/dist/src/components/react-player-wrapper.d.ts +64 -0
- package/dist/src/components/react-player-wrapper.d.ts.map +1 -0
- package/dist/src/components/react-player-wrapper.js +163 -0
- package/dist/src/components/react-player-wrapper.tsx +651 -0
- package/dist/src/components/simple-video-player.d.ts +9 -0
- package/dist/src/components/simple-video-player.d.ts.map +1 -0
- package/dist/src/components/simple-video-player.js +41 -0
- package/dist/src/components/simple-video-player.tsx +60 -0
- package/dist/src/components/ui/enhanced-seek-bar.d.ts +3 -0
- package/dist/src/components/ui/enhanced-seek-bar.d.ts.map +1 -0
- package/dist/src/components/ui/enhanced-seek-bar.js +112 -0
- package/dist/src/components/ui/enhanced-seek-bar.tsx +235 -0
- package/dist/src/components/ui/fullscreen-button.d.ts +3 -0
- package/dist/src/components/ui/fullscreen-button.d.ts.map +1 -0
- package/dist/src/components/ui/fullscreen-button.js +21 -0
- package/dist/src/components/ui/fullscreen-button.tsx +60 -0
- package/dist/src/components/ui/media-resource-preloader.d.ts +21 -0
- package/dist/src/components/ui/media-resource-preloader.d.ts.map +1 -0
- package/dist/src/components/ui/media-resource-preloader.js +295 -0
- package/dist/src/components/ui/media-resource-preloader.tsx +393 -0
- package/dist/src/components/ui/play-button.d.ts +3 -0
- package/dist/src/components/ui/play-button.d.ts.map +1 -0
- package/dist/src/components/ui/play-button.js +26 -0
- package/dist/src/components/ui/play-button.tsx +107 -0
- package/dist/src/components/ui/seek-bar.d.ts +3 -0
- package/dist/src/components/ui/seek-bar.d.ts.map +1 -0
- package/dist/src/components/ui/seek-bar.js +54 -0
- package/dist/src/components/ui/seek-bar.tsx +161 -0
- package/dist/src/components/ui/time-display.d.ts +3 -0
- package/dist/src/components/ui/time-display.d.ts.map +1 -0
- package/dist/src/components/ui/time-display.js +18 -0
- package/dist/src/components/ui/time-display.tsx +40 -0
- package/dist/src/components/ui/volume-control.d.ts +3 -0
- package/dist/src/components/ui/volume-control.d.ts.map +1 -0
- package/dist/src/components/ui/volume-control.js +71 -0
- package/dist/src/components/ui/volume-control.tsx +143 -0
- package/dist/src/components/unified/base-media-player.d.ts +18 -0
- package/dist/src/components/unified/base-media-player.d.ts.map +1 -0
- package/dist/src/components/unified/base-media-player.js +104 -0
- package/dist/src/components/unified/base-media-player.tsx +246 -0
- package/dist/src/components/unified/media-player.d.ts +37 -0
- package/dist/src/components/unified/media-player.d.ts.map +1 -0
- package/dist/src/components/unified/media-player.js +41 -0
- package/dist/src/components/unified/media-player.tsx +75 -0
- package/dist/src/components/variants/minimal/AccessibleMinimalPlayer.d.ts +42 -0
- package/dist/src/components/variants/minimal/AccessibleMinimalPlayer.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/AccessibleMinimalPlayer.js +322 -0
- package/dist/src/components/variants/minimal/AccessibleMinimalPlayer.tsx +561 -0
- package/dist/src/components/variants/minimal/EnhancedMinimalMediaPlayer.d.ts +44 -0
- package/dist/src/components/variants/minimal/EnhancedMinimalMediaPlayer.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/EnhancedMinimalMediaPlayer.js +280 -0
- package/dist/src/components/variants/minimal/EnhancedMinimalMediaPlayer.tsx +552 -0
- package/dist/src/components/variants/minimal/MinimalControls.d.ts +19 -0
- package/dist/src/components/variants/minimal/MinimalControls.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/MinimalControls.js +19 -0
- package/dist/src/components/variants/minimal/MinimalControls.tsx +142 -0
- package/dist/src/components/variants/minimal/MinimalLoading.d.ts +10 -0
- package/dist/src/components/variants/minimal/MinimalLoading.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/MinimalLoading.js +6 -0
- package/dist/src/components/variants/minimal/MinimalLoading.tsx +32 -0
- package/dist/src/components/variants/minimal/MinimalMediaPlayer.d.ts +38 -0
- package/dist/src/components/variants/minimal/MinimalMediaPlayer.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/MinimalMediaPlayer.js +135 -0
- package/dist/src/components/variants/minimal/MinimalMediaPlayer.tsx +315 -0
- package/dist/src/components/variants/minimal/MinimalOverlay.d.ts +11 -0
- package/dist/src/components/variants/minimal/MinimalOverlay.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/MinimalOverlay.js +15 -0
- package/dist/src/components/variants/minimal/MinimalOverlay.tsx +64 -0
- package/dist/src/components/variants/minimal/MinimalPlayButton.d.ts +9 -0
- package/dist/src/components/variants/minimal/MinimalPlayButton.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/MinimalPlayButton.js +29 -0
- package/dist/src/components/variants/minimal/MinimalPlayButton.tsx +65 -0
- package/dist/src/components/variants/minimal/MinimalSeekBar.d.ts +7 -0
- package/dist/src/components/variants/minimal/MinimalSeekBar.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/MinimalSeekBar.js +73 -0
- package/dist/src/components/variants/minimal/MinimalSeekBar.tsx +150 -0
- package/dist/src/components/variants/minimal/MinimalVolumeControl.d.ts +7 -0
- package/dist/src/components/variants/minimal/MinimalVolumeControl.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/MinimalVolumeControl.js +29 -0
- package/dist/src/components/variants/minimal/MinimalVolumeControl.tsx +80 -0
- package/dist/src/components/variants/minimal/SimpleMinimalPlayer.d.ts +22 -0
- package/dist/src/components/variants/minimal/SimpleMinimalPlayer.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/SimpleMinimalPlayer.js +51 -0
- package/dist/src/components/variants/minimal/SimpleMinimalPlayer.tsx +209 -0
- package/dist/src/components/variants/minimal/components/CenterPlayButton.d.ts +7 -0
- package/dist/src/components/variants/minimal/components/CenterPlayButton.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/components/CenterPlayButton.js +8 -0
- package/dist/src/components/variants/minimal/components/CenterPlayButton.tsx +22 -0
- package/dist/src/components/variants/minimal/components/ControlBar.d.ts +43 -0
- package/dist/src/components/variants/minimal/components/ControlBar.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/components/ControlBar.js +10 -0
- package/dist/src/components/variants/minimal/components/ControlBar.tsx +146 -0
- package/dist/src/components/variants/minimal/components/EnhancedSettingsMenu.d.ts +24 -0
- package/dist/src/components/variants/minimal/components/EnhancedSettingsMenu.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/components/EnhancedSettingsMenu.js +68 -0
- package/dist/src/components/variants/minimal/components/EnhancedSettingsMenu.tsx +361 -0
- package/dist/src/components/variants/minimal/components/PlaybackControls.d.ts +9 -0
- package/dist/src/components/variants/minimal/components/PlaybackControls.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/components/PlaybackControls.js +9 -0
- package/dist/src/components/variants/minimal/components/PlaybackControls.tsx +51 -0
- package/dist/src/components/variants/minimal/components/RightControls.d.ts +25 -0
- package/dist/src/components/variants/minimal/components/RightControls.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/components/RightControls.js +40 -0
- package/dist/src/components/variants/minimal/components/RightControls.tsx +173 -0
- package/dist/src/components/variants/minimal/components/SeekBar.d.ts +11 -0
- package/dist/src/components/variants/minimal/components/SeekBar.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/components/SeekBar.js +43 -0
- package/dist/src/components/variants/minimal/components/SeekBar.tsx +131 -0
- package/dist/src/components/variants/minimal/components/SettingsDropdown.d.ts +9 -0
- package/dist/src/components/variants/minimal/components/SettingsDropdown.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/components/SettingsDropdown.js +18 -0
- package/dist/src/components/variants/minimal/components/SettingsDropdown.tsx +70 -0
- package/dist/src/components/variants/minimal/components/SubtitleDisplay.d.ts +7 -0
- package/dist/src/components/variants/minimal/components/SubtitleDisplay.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/components/SubtitleDisplay.js +6 -0
- package/dist/src/components/variants/minimal/components/SubtitleDisplay.tsx +21 -0
- package/dist/src/components/variants/minimal/components/TimeDisplay.d.ts +7 -0
- package/dist/src/components/variants/minimal/components/TimeDisplay.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/components/TimeDisplay.js +5 -0
- package/dist/src/components/variants/minimal/components/TimeDisplay.tsx +18 -0
- package/dist/src/components/variants/minimal/components/VideoElement.d.ts +13 -0
- package/dist/src/components/variants/minimal/components/VideoElement.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/components/VideoElement.js +4 -0
- package/dist/src/components/variants/minimal/components/VideoElement.tsx +40 -0
- package/dist/src/components/variants/minimal/components/VolumeControl.d.ts +13 -0
- package/dist/src/components/variants/minimal/components/VolumeControl.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/components/VolumeControl.js +99 -0
- package/dist/src/components/variants/minimal/components/VolumeControl.tsx +217 -0
- package/dist/src/components/variants/minimal/index.d.ts +17 -0
- package/dist/src/components/variants/minimal/index.d.ts.map +1 -0
- package/dist/src/components/variants/minimal/index.js +8 -0
- package/dist/src/components/variants/minimal/index.ts +23 -0
- package/dist/src/components/video-player.d.ts +3 -0
- package/dist/src/components/video-player.d.ts.map +1 -0
- package/dist/src/components/video-player.js +38 -0
- package/dist/src/components/video-player.tsx +100 -0
- package/dist/src/context/error-handling.d.ts +72 -0
- package/dist/src/context/error-handling.d.ts.map +1 -0
- package/dist/src/context/error-handling.js +300 -0
- package/dist/src/context/error-handling.ts +394 -0
- package/dist/src/context/media-context.d.ts +104 -0
- package/dist/src/context/media-context.d.ts.map +1 -0
- package/dist/src/context/media-context.js +121 -0
- package/dist/src/context/media-context.tsx +208 -0
- package/dist/src/context/media-provider.d.ts +26 -0
- package/dist/src/context/media-provider.d.ts.map +1 -0
- package/dist/src/context/media-provider.js +164 -0
- package/dist/src/context/media-provider.tsx +265 -0
- package/dist/src/context/media-store.d.ts +33 -0
- package/dist/src/context/media-store.d.ts.map +1 -0
- package/dist/src/context/media-store.js +273 -0
- package/dist/src/context/media-store.ts +379 -0
- package/dist/src/context/persistence.d.ts +83 -0
- package/dist/src/context/persistence.d.ts.map +1 -0
- package/dist/src/context/persistence.js +356 -0
- package/dist/src/context/persistence.ts +453 -0
- package/dist/src/core/events/event-system.d.ts +170 -0
- package/dist/src/core/events/event-system.d.ts.map +1 -0
- package/dist/src/core/events/event-system.js +288 -0
- package/dist/src/core/events/event-system.ts +442 -0
- package/dist/src/core/events/hooks.d.ts +33 -0
- package/dist/src/core/events/hooks.d.ts.map +1 -0
- package/dist/src/core/events/hooks.js +198 -0
- package/dist/src/core/events/hooks.ts +302 -0
- package/dist/src/core/events/index.d.ts +6 -0
- package/dist/src/core/events/index.d.ts.map +1 -0
- package/dist/src/core/events/index.js +7 -0
- package/dist/src/core/events/index.ts +22 -0
- package/dist/src/core/events/middleware.d.ts +39 -0
- package/dist/src/core/events/middleware.d.ts.map +1 -0
- package/dist/src/core/events/middleware.js +219 -0
- package/dist/src/core/events/middleware.ts +269 -0
- package/dist/src/core/index.d.ts +8 -0
- package/dist/src/core/index.d.ts.map +1 -0
- package/dist/src/core/index.js +15 -0
- package/dist/src/core/index.ts +22 -0
- package/dist/src/core/optimization/bundle-optimizer.d.ts +44 -0
- package/dist/src/core/optimization/bundle-optimizer.d.ts.map +1 -0
- package/dist/src/core/optimization/bundle-optimizer.js +217 -0
- package/dist/src/core/optimization/bundle-optimizer.tsx +308 -0
- package/dist/src/core/performance/cicd.d.ts +8 -0
- package/dist/src/core/performance/cicd.d.ts.map +1 -0
- package/dist/src/core/performance/cicd.js +83 -0
- package/dist/src/core/performance/cicd.ts +96 -0
- package/dist/src/core/performance/index.d.ts +10 -0
- package/dist/src/core/performance/index.d.ts.map +1 -0
- package/dist/src/core/performance/index.js +14 -0
- package/dist/src/core/performance/index.ts +38 -0
- package/dist/src/core/performance/media-loading-optimizer.d.ts +105 -0
- package/dist/src/core/performance/media-loading-optimizer.d.ts.map +1 -0
- package/dist/src/core/performance/media-loading-optimizer.js +404 -0
- package/dist/src/core/performance/media-loading-optimizer.ts +538 -0
- package/dist/src/core/performance/performance-budgets.d.ts +68 -0
- package/dist/src/core/performance/performance-budgets.d.ts.map +1 -0
- package/dist/src/core/performance/performance-budgets.js +326 -0
- package/dist/src/core/performance/performance-budgets.ts +432 -0
- package/dist/src/core/performance/performance-monitor.d.ts +95 -0
- package/dist/src/core/performance/performance-monitor.d.ts.map +1 -0
- package/dist/src/core/performance/performance-monitor.js +297 -0
- package/dist/src/core/performance/performance-monitor.tsx +476 -0
- package/dist/src/core/performance/performance-testing.d.ts +69 -0
- package/dist/src/core/performance/performance-testing.d.ts.map +1 -0
- package/dist/src/core/performance/performance-testing.js +314 -0
- package/dist/src/core/performance/performance-testing.ts +459 -0
- package/dist/src/core/plugins/base-plugin.d.ts +52 -0
- package/dist/src/core/plugins/base-plugin.d.ts.map +1 -0
- package/dist/src/core/plugins/base-plugin.js +151 -0
- package/dist/src/core/plugins/base-plugin.ts +224 -0
- package/dist/src/core/plugins/enhanced-plugin-system.d.ts +160 -0
- package/dist/src/core/plugins/enhanced-plugin-system.d.ts.map +1 -0
- package/dist/src/core/plugins/enhanced-plugin-system.js +305 -0
- package/dist/src/core/plugins/enhanced-plugin-system.ts +417 -0
- package/dist/src/core/plugins/examples/analytics-plugin.d.ts +30 -0
- package/dist/src/core/plugins/examples/analytics-plugin.d.ts.map +1 -0
- package/dist/src/core/plugins/examples/analytics-plugin.js +191 -0
- package/dist/src/core/plugins/examples/analytics-plugin.ts +242 -0
- package/dist/src/core/plugins/index.d.ts +8 -0
- package/dist/src/core/plugins/index.d.ts.map +1 -0
- package/dist/src/core/plugins/index.js +9 -0
- package/dist/src/core/plugins/index.ts +39 -0
- package/dist/src/core/plugins/registry.d.ts +31 -0
- package/dist/src/core/plugins/registry.d.ts.map +1 -0
- package/dist/src/core/plugins/registry.js +261 -0
- package/dist/src/core/plugins/registry.ts +327 -0
- package/dist/src/core/plugins/types.d.ts +101 -0
- package/dist/src/core/plugins/types.d.ts.map +1 -0
- package/dist/src/core/plugins/types.js +31 -0
- package/dist/src/core/plugins/types.ts +159 -0
- package/dist/src/core/plugins/utils.d.ts +38 -0
- package/dist/src/core/plugins/utils.d.ts.map +1 -0
- package/dist/src/core/plugins/utils.js +274 -0
- package/dist/src/core/plugins/utils.ts +316 -0
- package/dist/src/core/progressive-loading.d.ts +88 -0
- package/dist/src/core/progressive-loading.d.ts.map +1 -0
- package/dist/src/core/progressive-loading.js +239 -0
- package/dist/src/core/progressive-loading.tsx +322 -0
- package/dist/src/core/providers/enhanced-hls-provider.d.ts +50 -0
- package/dist/src/core/providers/enhanced-hls-provider.d.ts.map +1 -0
- package/dist/src/core/providers/enhanced-hls-provider.js +273 -0
- package/dist/src/core/providers/enhanced-hls-provider.ts +308 -0
- package/dist/src/core/providers/service-provider.d.ts +49 -0
- package/dist/src/core/providers/service-provider.d.ts.map +1 -0
- package/dist/src/core/providers/service-provider.js +105 -0
- package/dist/src/core/providers/service-provider.tsx +168 -0
- package/dist/src/core/utils.d.ts +25 -0
- package/dist/src/core/utils.d.ts.map +1 -0
- package/dist/src/core/utils.js +21 -0
- package/dist/src/core/utils.tsx +38 -0
- package/dist/src/features/media-session/media-session-manager.d.ts +132 -0
- package/dist/src/features/media-session/media-session-manager.d.ts.map +1 -0
- package/dist/src/features/media-session/media-session-manager.js +331 -0
- package/dist/src/features/media-session/media-session-manager.ts +429 -0
- package/dist/src/features/picture-in-picture/pip-manager.d.ts +94 -0
- package/dist/src/features/picture-in-picture/pip-manager.d.ts.map +1 -0
- package/dist/src/features/picture-in-picture/pip-manager.js +353 -0
- package/dist/src/features/picture-in-picture/pip-manager.ts +429 -0
- package/dist/src/features/playlist/playlist-manager.d.ts +208 -0
- package/dist/src/features/playlist/playlist-manager.d.ts.map +1 -0
- package/dist/src/features/playlist/playlist-manager.js +475 -0
- package/dist/src/features/playlist/playlist-manager.ts +606 -0
- package/dist/src/features/subtitles/subtitle-manager.d.ts +136 -0
- package/dist/src/features/subtitles/subtitle-manager.d.ts.map +1 -0
- package/dist/src/features/subtitles/subtitle-manager.js +335 -0
- package/dist/src/features/subtitles/subtitle-manager.ts +441 -0
- package/dist/src/features/subtitles/subtitle-parser.d.ts +60 -0
- package/dist/src/features/subtitles/subtitle-parser.d.ts.map +1 -0
- package/dist/src/features/subtitles/subtitle-parser.js +217 -0
- package/dist/src/features/subtitles/subtitle-parser.ts +280 -0
- package/dist/src/features/thumbnails/thumbnail-generator.d.ts +136 -0
- package/dist/src/features/thumbnails/thumbnail-generator.d.ts.map +1 -0
- package/dist/src/features/thumbnails/thumbnail-generator.js +388 -0
- package/dist/src/features/thumbnails/thumbnail-generator.ts +519 -0
- package/dist/src/hooks/accessibility/index.d.ts +5 -0
- package/dist/src/hooks/accessibility/index.d.ts.map +1 -0
- package/dist/src/hooks/accessibility/index.js +4 -0
- package/dist/src/hooks/accessibility/index.ts +27 -0
- package/dist/src/hooks/accessibility/use-accessibility-preferences.d.ts +14 -0
- package/dist/src/hooks/accessibility/use-accessibility-preferences.d.ts.map +1 -0
- package/dist/src/hooks/accessibility/use-accessibility-preferences.js +156 -0
- package/dist/src/hooks/accessibility/use-accessibility-preferences.ts +188 -0
- package/dist/src/hooks/accessibility/use-focus-management.d.ts +31 -0
- package/dist/src/hooks/accessibility/use-focus-management.d.ts.map +1 -0
- package/dist/src/hooks/accessibility/use-focus-management.js +142 -0
- package/dist/src/hooks/accessibility/use-focus-management.ts +176 -0
- package/dist/src/hooks/accessibility/use-keyboard-shortcuts.d.ts +38 -0
- package/dist/src/hooks/accessibility/use-keyboard-shortcuts.d.ts.map +1 -0
- package/dist/src/hooks/accessibility/use-keyboard-shortcuts.js +101 -0
- package/dist/src/hooks/accessibility/use-keyboard-shortcuts.ts +144 -0
- package/dist/src/hooks/accessibility/use-screen-reader.d.ts +22 -0
- package/dist/src/hooks/accessibility/use-screen-reader.d.ts.map +1 -0
- package/dist/src/hooks/accessibility/use-screen-reader.js +148 -0
- package/dist/src/hooks/accessibility/use-screen-reader.ts +182 -0
- package/dist/src/hooks/core/index.d.ts +18 -0
- package/dist/src/hooks/core/index.d.ts.map +1 -0
- package/dist/src/hooks/core/index.js +19 -0
- package/dist/src/hooks/core/index.ts +47 -0
- package/dist/src/hooks/legacy.d.ts +18 -0
- package/dist/src/hooks/legacy.d.ts.map +1 -0
- package/dist/src/hooks/legacy.js +17 -0
- package/dist/src/hooks/legacy.ts +27 -0
- package/dist/src/hooks/use-enhanced-media-player.d.ts +88 -0
- package/dist/src/hooks/use-enhanced-media-player.d.ts.map +1 -0
- package/dist/src/hooks/use-enhanced-media-player.js +395 -0
- package/dist/src/hooks/use-enhanced-media-player.ts +485 -0
- package/dist/src/hooks/use-intelligent-preloading.d.ts +66 -0
- package/dist/src/hooks/use-intelligent-preloading.d.ts.map +1 -0
- package/dist/src/hooks/use-intelligent-preloading.js +258 -0
- package/dist/src/hooks/use-intelligent-preloading.ts +358 -0
- package/dist/src/hooks/use-keyboard-controls.d.ts +13 -0
- package/dist/src/hooks/use-keyboard-controls.d.ts.map +1 -0
- package/dist/src/hooks/use-keyboard-controls.js +83 -0
- package/dist/src/hooks/use-keyboard-controls.ts +115 -0
- package/dist/src/hooks/use-media-actions.d.ts +62 -0
- package/dist/src/hooks/use-media-actions.d.ts.map +1 -0
- package/dist/src/hooks/use-media-actions.js +121 -0
- package/dist/src/hooks/use-media-actions.ts +175 -0
- package/dist/src/hooks/use-media-metadata.d.ts +11 -0
- package/dist/src/hooks/use-media-metadata.d.ts.map +1 -0
- package/dist/src/hooks/use-media-metadata.js +74 -0
- package/dist/src/hooks/use-media-metadata.ts +89 -0
- package/dist/src/hooks/use-media-optimistic.d.ts +36 -0
- package/dist/src/hooks/use-media-optimistic.d.ts.map +1 -0
- package/dist/src/hooks/use-media-optimistic.js +205 -0
- package/dist/src/hooks/use-media-optimistic.ts +270 -0
- package/dist/src/hooks/use-media-player.d.ts +31 -0
- package/dist/src/hooks/use-media-player.d.ts.map +1 -0
- package/dist/src/hooks/use-media-player.js +251 -0
- package/dist/src/hooks/use-media-player.ts +312 -0
- package/dist/src/hooks/use-media-state.d.ts +17 -0
- package/dist/src/hooks/use-media-state.d.ts.map +1 -0
- package/dist/src/hooks/use-media-state.js +162 -0
- package/dist/src/hooks/use-media-state.ts +190 -0
- package/dist/src/hooks/use-memory-optimization.d.ts +40 -0
- package/dist/src/hooks/use-memory-optimization.d.ts.map +1 -0
- package/dist/src/hooks/use-memory-optimization.js +288 -0
- package/dist/src/hooks/use-memory-optimization.ts +358 -0
- package/dist/src/hooks/use-optimistic-controls.d.ts +22 -0
- package/dist/src/hooks/use-optimistic-controls.d.ts.map +1 -0
- package/dist/src/hooks/use-optimistic-controls.js +60 -0
- package/dist/src/hooks/use-optimistic-controls.ts +92 -0
- package/dist/src/hooks/use-optimized-media.d.ts +46 -0
- package/dist/src/hooks/use-optimized-media.d.ts.map +1 -0
- package/dist/src/hooks/use-optimized-media.js +211 -0
- package/dist/src/hooks/use-optimized-media.ts +263 -0
- package/dist/src/hooks/use-touch-gestures.d.ts +47 -0
- package/dist/src/hooks/use-touch-gestures.d.ts.map +1 -0
- package/dist/src/hooks/use-touch-gestures.js +289 -0
- package/dist/src/hooks/use-touch-gestures.ts +417 -0
- package/dist/src/hooks/useEnhancedSubtitles.d.ts +39 -0
- package/dist/src/hooks/useEnhancedSubtitles.d.ts.map +1 -0
- package/dist/src/hooks/useEnhancedSubtitles.js +205 -0
- package/dist/src/hooks/useEnhancedSubtitles.ts +258 -0
- package/dist/src/hooks/useKeyboardShortcuts.d.ts +10 -0
- package/dist/src/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/src/hooks/useKeyboardShortcuts.js +59 -0
- package/dist/src/hooks/useKeyboardShortcuts.ts +74 -0
- package/dist/src/hooks/useMediaControls.d.ts +9 -0
- package/dist/src/hooks/useMediaControls.d.ts.map +1 -0
- package/dist/src/hooks/useMediaControls.js +44 -0
- package/dist/src/hooks/useMediaControls.ts +52 -0
- package/dist/src/hooks/useScreenshot.d.ts +4 -0
- package/dist/src/hooks/useScreenshot.d.ts.map +1 -0
- package/dist/src/hooks/useScreenshot.js +56 -0
- package/dist/src/hooks/useScreenshot.ts +57 -0
- package/dist/src/hooks/useSubtitles.d.ts +8 -0
- package/dist/src/hooks/useSubtitles.d.ts.map +1 -0
- package/dist/src/hooks/useSubtitles.js +73 -0
- package/dist/src/hooks/useSubtitles.ts +91 -0
- package/dist/src/hooks/useVideoPlayer.d.ts +32 -0
- package/dist/src/hooks/useVideoPlayer.d.ts.map +1 -0
- package/dist/src/hooks/useVideoPlayer.js +184 -0
- package/dist/src/hooks/useVideoPlayer.ts +232 -0
- package/dist/src/icons/components/FullscreenIcon.d.ts +3 -0
- package/dist/src/icons/components/FullscreenIcon.d.ts.map +1 -0
- package/dist/src/icons/components/FullscreenIcon.js +11 -0
- package/dist/src/icons/components/FullscreenIcon.tsx +37 -0
- package/dist/src/icons/components/SettingsIcon.d.ts +3 -0
- package/dist/src/icons/components/SettingsIcon.d.ts.map +1 -0
- package/dist/src/icons/components/SettingsIcon.js +11 -0
- package/dist/src/icons/components/SettingsIcon.tsx +38 -0
- package/dist/src/icons/components/animated/LoadingIcon.d.ts +3 -0
- package/dist/src/icons/components/animated/LoadingIcon.d.ts.map +1 -0
- package/dist/src/icons/components/animated/LoadingIcon.js +11 -0
- package/dist/src/icons/components/animated/LoadingIcon.tsx +43 -0
- package/dist/src/icons/components/animated/PlayPauseIcon.d.ts +7 -0
- package/dist/src/icons/components/animated/PlayPauseIcon.d.ts.map +1 -0
- package/dist/src/icons/components/animated/PlayPauseIcon.js +9 -0
- package/dist/src/icons/components/animated/PlayPauseIcon.tsx +50 -0
- package/dist/src/icons/components/media/PauseIcon.d.ts +3 -0
- package/dist/src/icons/components/media/PauseIcon.d.ts.map +1 -0
- package/dist/src/icons/components/media/PauseIcon.js +12 -0
- package/dist/src/icons/components/media/PauseIcon.tsx +39 -0
- package/dist/src/icons/components/media/PlayIcon.d.ts +3 -0
- package/dist/src/icons/components/media/PlayIcon.d.ts.map +1 -0
- package/dist/src/icons/components/media/PlayIcon.js +12 -0
- package/dist/src/icons/components/media/PlayIcon.tsx +38 -0
- package/dist/src/icons/components/volume/VolumeIcon.d.ts +3 -0
- package/dist/src/icons/components/volume/VolumeIcon.d.ts.map +1 -0
- package/dist/src/icons/components/volume/VolumeIcon.js +11 -0
- package/dist/src/icons/components/volume/VolumeIcon.tsx +39 -0
- package/dist/src/icons/components/volume/VolumeOffIcon.d.ts +3 -0
- package/dist/src/icons/components/volume/VolumeOffIcon.d.ts.map +1 -0
- package/dist/src/icons/components/volume/VolumeOffIcon.js +11 -0
- package/dist/src/icons/components/volume/VolumeOffIcon.tsx +39 -0
- package/dist/src/icons/index.d.ts +28 -0
- package/dist/src/icons/index.d.ts.map +1 -0
- package/dist/src/icons/index.js +45 -0
- package/dist/src/icons/index.ts +56 -0
- package/dist/src/icons/provider.d.ts +13 -0
- package/dist/src/icons/provider.d.ts.map +1 -0
- package/dist/src/icons/provider.js +37 -0
- package/dist/src/icons/provider.tsx +64 -0
- package/dist/src/icons/types.d.ts +18 -0
- package/dist/src/icons/types.d.ts.map +1 -0
- package/dist/src/icons/types.js +1 -0
- package/dist/src/icons/types.ts +40 -0
- package/dist/src/index-enhanced.d.ts +13 -0
- package/dist/src/index-enhanced.d.ts.map +1 -0
- package/dist/src/index-enhanced.js +16 -0
- package/dist/src/index-enhanced.ts +35 -0
- package/dist/src/index-legacy.d.ts +81 -0
- package/dist/src/index-legacy.d.ts.map +1 -0
- package/dist/src/index-legacy.js +97 -0
- package/dist/src/index-legacy.ts +326 -0
- package/dist/src/index.css +102 -0
- package/dist/src/index.d.ts +38 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +90 -0
- package/dist/src/index.minimal.d.ts +2 -0
- package/dist/src/index.minimal.d.ts.map +1 -0
- package/dist/src/index.minimal.js +3 -0
- package/dist/src/index.minimal.ts +4 -0
- package/dist/src/index.ts +216 -0
- package/dist/src/lib/deprecation.d.ts +7 -0
- package/dist/src/lib/deprecation.d.ts.map +1 -0
- package/dist/src/lib/deprecation.js +31 -0
- package/dist/src/lib/deprecation.ts +51 -0
- package/dist/src/lib/format-time.d.ts +9 -0
- package/dist/src/lib/format-time.d.ts.map +1 -0
- package/dist/src/lib/format-time.js +32 -0
- package/dist/src/lib/format-time.ts +37 -0
- package/dist/src/lib/index.d.ts +3 -0
- package/dist/src/lib/index.d.ts.map +1 -0
- package/dist/src/lib/index.js +3 -0
- package/dist/src/lib/index.ts +3 -0
- package/dist/src/lib/utils.d.ts +3 -0
- package/dist/src/lib/utils.d.ts.map +1 -0
- package/dist/src/lib/utils.js +5 -0
- package/dist/src/lib/utils.ts +6 -0
- package/dist/src/styles/globals.css +462 -0
- package/dist/src/styles/minimal-player.css +589 -0
- package/dist/src/styles/pixel-art.css +46 -0
- package/dist/src/styles/videojs.css +100 -0
- package/dist/src/test/setup.d.ts +2 -0
- package/dist/src/test/setup.d.ts.map +1 -0
- package/dist/src/test/setup.js +65 -0
- package/dist/src/test/setup.ts +79 -0
- package/dist/src/types/events.d.ts +41 -0
- package/dist/src/types/events.d.ts.map +1 -0
- package/dist/src/types/events.js +2 -0
- package/dist/src/types/events.ts +47 -0
- package/dist/src/types/formats.d.ts +45 -0
- package/dist/src/types/formats.d.ts.map +1 -0
- package/dist/src/types/formats.js +63 -0
- package/dist/src/types/formats.ts +95 -0
- package/dist/src/types/index.d.ts +128 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/index.js +4 -0
- package/dist/src/types/index.ts +225 -0
- package/dist/src/types/videojs-plugins.d.ts +14 -0
- package/dist/styles/minimal-player.css +589 -0
- package/dist/utils-Db13763z.cjs +9 -0
- package/dist/utils-Db13763z.cjs.map +1 -0
- package/dist/{utils-BnscpYYd.js → utils-nTO4AnHo.js} +210 -199
- package/dist/utils-nTO4AnHo.js.map +1 -0
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +7 -4
- package/src/adapters/videojs-adapter.d.ts +38 -0
- package/src/adapters/videojs-adapter.d.ts.map +1 -0
- package/src/adapters/videojs-adapter.js +350 -0
- package/src/components/AnimateLoading.d.ts +9 -0
- package/src/components/AnimateLoading.d.ts.map +1 -0
- package/src/components/AnimateLoading.js +41 -0
- package/src/components/AnimateLoading.tsx +1 -1
- package/src/components/LoadingState.d.ts +33 -0
- package/src/components/LoadingState.d.ts.map +1 -0
- package/src/components/LoadingState.js +111 -0
- package/src/components/accessibility/keyboard-help-overlay.d.ts +17 -0
- package/src/components/accessibility/keyboard-help-overlay.d.ts.map +1 -0
- package/src/components/accessibility/keyboard-help-overlay.js +90 -0
- package/src/components/audio-player.d.ts +3 -0
- package/src/components/audio-player.d.ts.map +1 -0
- package/src/components/audio-player.js +31 -0
- package/src/components/basic/index.d.ts +26 -0
- package/src/components/basic/index.d.ts.map +1 -0
- package/src/components/basic/index.js +29 -0
- package/src/components/enhanced/advanced-features.d.ts +45 -0
- package/src/components/enhanced/advanced-features.d.ts.map +1 -0
- package/src/components/enhanced/advanced-features.js +64 -0
- package/src/components/enhanced/debug-panel.d.ts +70 -0
- package/src/components/enhanced/debug-panel.d.ts.map +1 -0
- package/src/components/enhanced/debug-panel.js +94 -0
- package/src/components/enhanced/debug-panel.tsx +1 -1
- package/src/components/enhanced/enhanced-controls.d.ts +50 -0
- package/src/components/enhanced/enhanced-controls.d.ts.map +1 -0
- package/src/components/enhanced/enhanced-controls.js +233 -0
- package/src/components/enhanced/enhanced-media-player.d.ts +26 -0
- package/src/components/enhanced/enhanced-media-player.d.ts.map +1 -0
- package/src/components/enhanced/enhanced-media-player.js +316 -0
- package/src/components/enhanced/error-handling.d.ts +36 -0
- package/src/components/enhanced/error-handling.d.ts.map +1 -0
- package/src/components/enhanced/error-handling.js +153 -0
- package/src/components/enhanced/index.d.ts +7 -0
- package/src/components/enhanced/index.d.ts.map +1 -0
- package/src/components/enhanced/index.js +10 -0
- package/src/components/enhanced/media-player-enhanced.d.ts +21 -0
- package/src/components/enhanced/media-player-enhanced.d.ts.map +1 -0
- package/src/components/enhanced/media-player-enhanced.js +250 -0
- package/src/components/examples/basic-video-player.d.ts +10 -0
- package/src/components/examples/basic-video-player.d.ts.map +1 -0
- package/src/components/examples/basic-video-player.js +16 -0
- package/src/components/examples/custom-controls-example.d.ts +10 -0
- package/src/components/examples/custom-controls-example.d.ts.map +1 -0
- package/src/components/examples/custom-controls-example.js +12 -0
- package/src/components/examples/enhanced-controls-example.d.ts +9 -0
- package/src/components/examples/enhanced-controls-example.d.ts.map +1 -0
- package/src/components/examples/enhanced-controls-example.js +18 -0
- package/src/components/examples/enhanced-media-player-example.d.ts +9 -0
- package/src/components/examples/enhanced-media-player-example.d.ts.map +1 -0
- package/src/components/examples/enhanced-media-player-example.js +13 -0
- package/src/components/examples/loading-states-demo.d.ts +2 -0
- package/src/components/examples/loading-states-demo.d.ts.map +1 -0
- package/src/components/examples/loading-states-demo.js +41 -0
- package/src/components/examples/react-19-demo.d.ts +10 -0
- package/src/components/examples/react-19-demo.d.ts.map +1 -0
- package/src/components/examples/react-19-demo.js +104 -0
- package/src/components/examples/volume-orientation-demo.d.ts +2 -0
- package/src/components/examples/volume-orientation-demo.d.ts.map +1 -0
- package/src/components/examples/volume-orientation-demo.js +31 -0
- package/src/components/icon-demo.d.ts +2 -0
- package/src/components/icon-demo.d.ts.map +1 -0
- package/src/components/icon-demo.js +16 -0
- package/src/components/icons/index.d.ts +36 -0
- package/src/components/icons/index.d.ts.map +1 -0
- package/src/components/icons/index.js +59 -0
- package/src/components/icons/svg-icons/ArrowLeftIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/ArrowLeftIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/ArrowLeftIcon.js +3 -0
- package/src/components/icons/svg-icons/ArrowRightIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/ArrowRightIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/ArrowRightIcon.js +3 -0
- package/src/components/icons/svg-icons/AudioIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/AudioIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/AudioIcon.js +4 -0
- package/src/components/icons/svg-icons/BackwardIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/BackwardIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/BackwardIcon.js +3 -0
- package/src/components/icons/svg-icons/CameraIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/CameraIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/CameraIcon.js +4 -0
- package/src/components/icons/svg-icons/CheckIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/CheckIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/CheckIcon.js +4 -0
- package/src/components/icons/svg-icons/EnablePiPIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/EnablePiPIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/EnablePiPIcon.js +5 -0
- package/src/components/icons/svg-icons/ForwardIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/ForwardIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/ForwardIcon.js +3 -0
- package/src/components/icons/svg-icons/FullscreenEnterIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/FullscreenEnterIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/FullscreenEnterIcon.js +3 -0
- package/src/components/icons/svg-icons/FullscreenExitIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/FullscreenExitIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/FullscreenExitIcon.js +3 -0
- package/src/components/icons/svg-icons/LoadingIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/LoadingIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/LoadingIcon.js +3 -0
- package/src/components/icons/svg-icons/PauseIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/PauseIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/PauseIcon.js +3 -0
- package/src/components/icons/svg-icons/PlayIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/PlayIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/PlayIcon.js +3 -0
- package/src/components/icons/svg-icons/PlaybackSpeedIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/PlaybackSpeedIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/PlaybackSpeedIcon.js +3 -0
- package/src/components/icons/svg-icons/QualityIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/QualityIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/QualityIcon.js +3 -0
- package/src/components/icons/svg-icons/SettingsIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/SettingsIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/SettingsIcon.js +3 -0
- package/src/components/icons/svg-icons/SliderIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/SliderIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/SliderIcon.js +3 -0
- package/src/components/icons/svg-icons/SubtitleIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/SubtitleIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/SubtitleIcon.js +3 -0
- package/src/components/icons/svg-icons/SubtitleOffIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/SubtitleOffIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/SubtitleOffIcon.js +3 -0
- package/src/components/icons/svg-icons/UnPiPIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/UnPiPIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/UnPiPIcon.js +5 -0
- package/src/components/icons/svg-icons/VolumeMutedIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/VolumeMutedIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/VolumeMutedIcon.js +3 -0
- package/src/components/icons/svg-icons/VolumeOneIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/VolumeOneIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/VolumeOneIcon.js +3 -0
- package/src/components/icons/svg-icons/VolumeThreeIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/VolumeThreeIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/VolumeThreeIcon.js +3 -0
- package/src/components/icons/svg-icons/VolumeTwoIcon.d.ts +4 -0
- package/src/components/icons/svg-icons/VolumeTwoIcon.d.ts.map +1 -0
- package/src/components/icons/svg-icons/VolumeTwoIcon.js +3 -0
- package/src/components/legacy.d.ts +13 -0
- package/src/components/legacy.d.ts.map +1 -0
- package/src/components/legacy.js +52 -0
- package/src/components/media-metadata-display.d.ts +11 -0
- package/src/components/media-metadata-display.d.ts.map +1 -0
- package/src/components/media-metadata-display.js +20 -0
- package/src/components/media-player-audio.d.ts +9 -0
- package/src/components/media-player-audio.d.ts.map +1 -0
- package/src/components/media-player-audio.js +18 -0
- package/src/components/media-player-controls.d.ts +23 -0
- package/src/components/media-player-controls.d.ts.map +1 -0
- package/src/components/media-player-controls.js +150 -0
- package/src/components/media-player-error.d.ts +16 -0
- package/src/components/media-player-error.d.ts.map +1 -0
- package/src/components/media-player-error.js +85 -0
- package/src/components/media-player-fullscreen.d.ts +12 -0
- package/src/components/media-player-fullscreen.d.ts.map +1 -0
- package/src/components/media-player-fullscreen.js +68 -0
- package/src/components/media-player-hls.d.ts +23 -0
- package/src/components/media-player-hls.d.ts.map +1 -0
- package/src/components/media-player-hls.js +20 -0
- package/src/components/media-player-loading.d.ts +12 -0
- package/src/components/media-player-loading.d.ts.map +1 -0
- package/src/components/media-player-loading.js +53 -0
- package/src/components/media-player-play.d.ts +11 -0
- package/src/components/media-player-play.d.ts.map +1 -0
- package/src/components/media-player-play.js +44 -0
- package/src/components/media-player-root.d.ts +28 -0
- package/src/components/media-player-root.d.ts.map +1 -0
- package/src/components/media-player-root.js +243 -0
- package/src/components/media-player-seek.d.ts +15 -0
- package/src/components/media-player-seek.d.ts.map +1 -0
- package/src/components/media-player-seek.js +92 -0
- package/src/components/media-player-time.d.ts +12 -0
- package/src/components/media-player-time.d.ts.map +1 -0
- package/src/components/media-player-time.js +57 -0
- package/src/components/media-player-tooltip.d.ts +13 -0
- package/src/components/media-player-tooltip.d.ts.map +1 -0
- package/src/components/media-player-tooltip.js +14 -0
- package/src/components/media-player-video.d.ts +9 -0
- package/src/components/media-player-video.d.ts.map +1 -0
- package/src/components/media-player-video.js +18 -0
- package/src/components/media-player-volume.d.ts +13 -0
- package/src/components/media-player-volume.d.ts.map +1 -0
- package/src/components/media-player-volume.js +88 -0
- package/src/components/media-player.d.ts +3 -0
- package/src/components/media-player.d.ts.map +1 -0
- package/src/components/media-player.js +67 -0
- package/src/components/media-player.tsx +2 -2
- package/src/components/media-suspense.d.ts +78 -0
- package/src/components/media-suspense.d.ts.map +1 -0
- package/src/components/media-suspense.js +173 -0
- package/src/components/player-settings-form.d.ts +8 -0
- package/src/components/player-settings-form.d.ts.map +1 -0
- package/src/components/player-settings-form.js +46 -0
- package/src/components/react-player-wrapper.d.ts +64 -0
- package/src/components/react-player-wrapper.d.ts.map +1 -0
- package/src/components/react-player-wrapper.js +163 -0
- package/src/components/simple-video-player.d.ts +9 -0
- package/src/components/simple-video-player.d.ts.map +1 -0
- package/src/components/simple-video-player.js +41 -0
- package/src/components/ui/enhanced-seek-bar.d.ts +3 -0
- package/src/components/ui/enhanced-seek-bar.d.ts.map +1 -0
- package/src/components/ui/enhanced-seek-bar.js +112 -0
- package/src/components/ui/fullscreen-button.d.ts +3 -0
- package/src/components/ui/fullscreen-button.d.ts.map +1 -0
- package/src/components/ui/fullscreen-button.js +21 -0
- package/src/components/ui/media-resource-preloader.d.ts +21 -0
- package/src/components/ui/media-resource-preloader.d.ts.map +1 -0
- package/src/components/ui/media-resource-preloader.js +295 -0
- package/src/components/ui/media-resource-preloader.tsx +9 -11
- package/src/components/ui/play-button.d.ts +3 -0
- package/src/components/ui/play-button.d.ts.map +1 -0
- package/src/components/ui/play-button.js +26 -0
- package/src/components/ui/seek-bar.d.ts +3 -0
- package/src/components/ui/seek-bar.d.ts.map +1 -0
- package/src/components/ui/seek-bar.js +54 -0
- package/src/components/ui/seek-bar.tsx +1 -1
- package/src/components/ui/time-display.d.ts +3 -0
- package/src/components/ui/time-display.d.ts.map +1 -0
- package/src/components/ui/time-display.js +18 -0
- package/src/components/ui/volume-control.d.ts +3 -0
- package/src/components/ui/volume-control.d.ts.map +1 -0
- package/src/components/ui/volume-control.js +71 -0
- package/src/components/unified/base-media-player.d.ts +18 -0
- package/src/components/unified/base-media-player.d.ts.map +1 -0
- package/src/components/unified/base-media-player.js +104 -0
- package/src/components/unified/media-player.d.ts +37 -0
- package/src/components/unified/media-player.d.ts.map +1 -0
- package/src/components/unified/media-player.js +41 -0
- package/src/components/variants/minimal/AccessibleMinimalPlayer.d.ts +42 -0
- package/src/components/variants/minimal/AccessibleMinimalPlayer.d.ts.map +1 -0
- package/src/components/variants/minimal/AccessibleMinimalPlayer.js +322 -0
- package/src/components/variants/minimal/EnhancedMinimalMediaPlayer.d.ts +44 -0
- package/src/components/variants/minimal/EnhancedMinimalMediaPlayer.d.ts.map +1 -0
- package/src/components/variants/minimal/EnhancedMinimalMediaPlayer.js +280 -0
- package/src/components/variants/minimal/MinimalControls.d.ts +19 -0
- package/src/components/variants/minimal/MinimalControls.d.ts.map +1 -0
- package/src/components/variants/minimal/MinimalControls.js +19 -0
- package/src/components/variants/minimal/MinimalLoading.d.ts +10 -0
- package/src/components/variants/minimal/MinimalLoading.d.ts.map +1 -0
- package/src/components/variants/minimal/MinimalLoading.js +6 -0
- package/src/components/variants/minimal/MinimalMediaPlayer.d.ts +38 -0
- package/src/components/variants/minimal/MinimalMediaPlayer.d.ts.map +1 -0
- package/src/components/variants/minimal/MinimalMediaPlayer.js +135 -0
- package/src/components/variants/minimal/MinimalOverlay.d.ts +11 -0
- package/src/components/variants/minimal/MinimalOverlay.d.ts.map +1 -0
- package/src/components/variants/minimal/MinimalOverlay.js +15 -0
- package/src/components/variants/minimal/MinimalPlayButton.d.ts +9 -0
- package/src/components/variants/minimal/MinimalPlayButton.d.ts.map +1 -0
- package/src/components/variants/minimal/MinimalPlayButton.js +29 -0
- package/src/components/variants/minimal/MinimalSeekBar.d.ts +7 -0
- package/src/components/variants/minimal/MinimalSeekBar.d.ts.map +1 -0
- package/src/components/variants/minimal/MinimalSeekBar.js +73 -0
- package/src/components/variants/minimal/MinimalVolumeControl.d.ts +7 -0
- package/src/components/variants/minimal/MinimalVolumeControl.d.ts.map +1 -0
- package/src/components/variants/minimal/MinimalVolumeControl.js +29 -0
- package/src/components/variants/minimal/SimpleMinimalPlayer.d.ts +22 -0
- package/src/components/variants/minimal/SimpleMinimalPlayer.d.ts.map +1 -0
- package/src/components/variants/minimal/SimpleMinimalPlayer.js +51 -0
- package/src/components/variants/minimal/SimpleMinimalPlayer.tsx +0 -1
- package/src/components/variants/minimal/components/CenterPlayButton.d.ts +7 -0
- package/src/components/variants/minimal/components/CenterPlayButton.d.ts.map +1 -0
- package/src/components/variants/minimal/components/CenterPlayButton.js +8 -0
- package/src/components/variants/minimal/components/ControlBar.d.ts +43 -0
- package/src/components/variants/minimal/components/ControlBar.d.ts.map +1 -0
- package/src/components/variants/minimal/components/ControlBar.js +10 -0
- package/src/components/variants/minimal/components/EnhancedSettingsMenu.d.ts +24 -0
- package/src/components/variants/minimal/components/EnhancedSettingsMenu.d.ts.map +1 -0
- package/src/components/variants/minimal/components/EnhancedSettingsMenu.js +68 -0
- package/src/components/variants/minimal/components/PlaybackControls.d.ts +9 -0
- package/src/components/variants/minimal/components/PlaybackControls.d.ts.map +1 -0
- package/src/components/variants/minimal/components/PlaybackControls.js +9 -0
- package/src/components/variants/minimal/components/RightControls.d.ts +25 -0
- package/src/components/variants/minimal/components/RightControls.d.ts.map +1 -0
- package/src/components/variants/minimal/components/RightControls.js +40 -0
- package/src/components/variants/minimal/components/SeekBar.d.ts +11 -0
- package/src/components/variants/minimal/components/SeekBar.d.ts.map +1 -0
- package/src/components/variants/minimal/components/SeekBar.js +43 -0
- package/src/components/variants/minimal/components/SettingsDropdown.d.ts +9 -0
- package/src/components/variants/minimal/components/SettingsDropdown.d.ts.map +1 -0
- package/src/components/variants/minimal/components/SettingsDropdown.js +18 -0
- package/src/components/variants/minimal/components/SubtitleDisplay.d.ts +7 -0
- package/src/components/variants/minimal/components/SubtitleDisplay.d.ts.map +1 -0
- package/src/components/variants/minimal/components/SubtitleDisplay.js +6 -0
- package/src/components/variants/minimal/components/TimeDisplay.d.ts +7 -0
- package/src/components/variants/minimal/components/TimeDisplay.d.ts.map +1 -0
- package/src/components/variants/minimal/components/TimeDisplay.js +5 -0
- package/src/components/variants/minimal/components/VideoElement.d.ts +13 -0
- package/src/components/variants/minimal/components/VideoElement.d.ts.map +1 -0
- package/src/components/variants/minimal/components/VideoElement.js +4 -0
- package/src/components/variants/minimal/components/VolumeControl.d.ts +13 -0
- package/src/components/variants/minimal/components/VolumeControl.d.ts.map +1 -0
- package/src/components/variants/minimal/components/VolumeControl.js +99 -0
- package/src/components/variants/minimal/index.d.ts +17 -0
- package/src/components/variants/minimal/index.d.ts.map +1 -0
- package/src/components/variants/minimal/index.js +8 -0
- package/src/components/video-player.d.ts +3 -0
- package/src/components/video-player.d.ts.map +1 -0
- package/src/components/video-player.js +38 -0
- package/src/context/error-handling.d.ts +72 -0
- package/src/context/error-handling.d.ts.map +1 -0
- package/src/context/error-handling.js +300 -0
- package/src/context/media-context.d.ts +104 -0
- package/src/context/media-context.d.ts.map +1 -0
- package/src/context/media-context.js +121 -0
- package/src/context/media-provider.d.ts +26 -0
- package/src/context/media-provider.d.ts.map +1 -0
- package/src/context/media-provider.js +164 -0
- package/src/context/media-store.d.ts +33 -0
- package/src/context/media-store.d.ts.map +1 -0
- package/src/context/media-store.js +273 -0
- package/src/context/persistence.d.ts +83 -0
- package/src/context/persistence.d.ts.map +1 -0
- package/src/context/persistence.js +356 -0
- package/src/core/events/event-system.d.ts +170 -0
- package/src/core/events/event-system.d.ts.map +1 -0
- package/src/core/events/event-system.js +288 -0
- package/src/core/events/hooks.d.ts +33 -0
- package/src/core/events/hooks.d.ts.map +1 -0
- package/src/core/events/hooks.js +198 -0
- package/src/core/events/index.d.ts +6 -0
- package/src/core/events/index.d.ts.map +1 -0
- package/src/core/events/index.js +7 -0
- package/src/core/events/middleware.d.ts +39 -0
- package/src/core/events/middleware.d.ts.map +1 -0
- package/src/core/events/middleware.js +219 -0
- package/src/core/index.d.ts +8 -0
- package/src/core/index.d.ts.map +1 -0
- package/src/core/index.js +15 -0
- package/src/core/optimization/bundle-optimizer.d.ts +44 -0
- package/src/core/optimization/bundle-optimizer.d.ts.map +1 -0
- package/src/core/optimization/bundle-optimizer.js +217 -0
- package/src/core/performance/cicd.d.ts +8 -0
- package/src/core/performance/cicd.d.ts.map +1 -0
- package/src/core/performance/cicd.js +83 -0
- package/src/core/performance/index.d.ts +10 -0
- package/src/core/performance/index.d.ts.map +1 -0
- package/src/core/performance/index.js +14 -0
- package/src/core/performance/media-loading-optimizer.d.ts +105 -0
- package/src/core/performance/media-loading-optimizer.d.ts.map +1 -0
- package/src/core/performance/media-loading-optimizer.js +404 -0
- package/src/core/performance/performance-budgets.d.ts +68 -0
- package/src/core/performance/performance-budgets.d.ts.map +1 -0
- package/src/core/performance/performance-budgets.js +326 -0
- package/src/core/performance/performance-monitor.d.ts +95 -0
- package/src/core/performance/performance-monitor.d.ts.map +1 -0
- package/src/core/performance/performance-monitor.js +297 -0
- package/src/core/performance/performance-testing.d.ts +69 -0
- package/src/core/performance/performance-testing.d.ts.map +1 -0
- package/src/core/performance/performance-testing.js +314 -0
- package/src/core/plugins/base-plugin.d.ts +52 -0
- package/src/core/plugins/base-plugin.d.ts.map +1 -0
- package/src/core/plugins/base-plugin.js +151 -0
- package/src/core/plugins/enhanced-plugin-system.d.ts +160 -0
- package/src/core/plugins/enhanced-plugin-system.d.ts.map +1 -0
- package/src/core/plugins/enhanced-plugin-system.js +305 -0
- package/src/core/plugins/enhanced-plugin-system.ts +14 -8
- package/src/core/plugins/examples/analytics-plugin.d.ts +30 -0
- package/src/core/plugins/examples/analytics-plugin.d.ts.map +1 -0
- package/src/core/plugins/examples/analytics-plugin.js +191 -0
- package/src/core/plugins/index.d.ts +8 -0
- package/src/core/plugins/index.d.ts.map +1 -0
- package/src/core/plugins/index.js +9 -0
- package/src/core/plugins/registry.d.ts +31 -0
- package/src/core/plugins/registry.d.ts.map +1 -0
- package/src/core/plugins/registry.js +261 -0
- package/src/core/plugins/types.d.ts +101 -0
- package/src/core/plugins/types.d.ts.map +1 -0
- package/src/core/plugins/types.js +31 -0
- package/src/core/plugins/utils.d.ts +38 -0
- package/src/core/plugins/utils.d.ts.map +1 -0
- package/src/core/plugins/utils.js +274 -0
- package/src/core/progressive-loading.d.ts +88 -0
- package/src/core/progressive-loading.d.ts.map +1 -0
- package/src/core/progressive-loading.js +239 -0
- package/src/core/providers/enhanced-hls-provider.d.ts +50 -0
- package/src/core/providers/enhanced-hls-provider.d.ts.map +1 -0
- package/src/core/providers/enhanced-hls-provider.js +273 -0
- package/src/core/providers/enhanced-hls-provider.ts +22 -53
- package/src/core/providers/service-provider.d.ts +49 -0
- package/src/core/providers/service-provider.d.ts.map +1 -0
- package/src/core/providers/service-provider.js +105 -0
- package/src/core/utils.d.ts +25 -0
- package/src/core/utils.d.ts.map +1 -0
- package/src/core/utils.js +21 -0
- package/src/features/media-session/media-session-manager.d.ts +132 -0
- package/src/features/media-session/media-session-manager.d.ts.map +1 -0
- package/src/features/media-session/media-session-manager.js +331 -0
- package/src/features/picture-in-picture/pip-manager.d.ts +94 -0
- package/src/features/picture-in-picture/pip-manager.d.ts.map +1 -0
- package/src/features/picture-in-picture/pip-manager.js +353 -0
- package/src/features/playlist/playlist-manager.d.ts +208 -0
- package/src/features/playlist/playlist-manager.d.ts.map +1 -0
- package/src/features/playlist/playlist-manager.js +475 -0
- package/src/features/subtitles/subtitle-manager.d.ts +136 -0
- package/src/features/subtitles/subtitle-manager.d.ts.map +1 -0
- package/src/features/subtitles/subtitle-manager.js +335 -0
- package/src/features/subtitles/subtitle-parser.d.ts +60 -0
- package/src/features/subtitles/subtitle-parser.d.ts.map +1 -0
- package/src/features/subtitles/subtitle-parser.js +217 -0
- package/src/features/thumbnails/thumbnail-generator.d.ts +136 -0
- package/src/features/thumbnails/thumbnail-generator.d.ts.map +1 -0
- package/src/features/thumbnails/thumbnail-generator.js +388 -0
- package/src/hooks/accessibility/index.d.ts +5 -0
- package/src/hooks/accessibility/index.d.ts.map +1 -0
- package/src/hooks/accessibility/index.js +4 -0
- package/src/hooks/accessibility/use-accessibility-preferences.d.ts +14 -0
- package/src/hooks/accessibility/use-accessibility-preferences.d.ts.map +1 -0
- package/src/hooks/accessibility/use-accessibility-preferences.js +156 -0
- package/src/hooks/accessibility/use-focus-management.d.ts +31 -0
- package/src/hooks/accessibility/use-focus-management.d.ts.map +1 -0
- package/src/hooks/accessibility/use-focus-management.js +142 -0
- package/src/hooks/accessibility/use-keyboard-shortcuts.d.ts +38 -0
- package/src/hooks/accessibility/use-keyboard-shortcuts.d.ts.map +1 -0
- package/src/hooks/accessibility/use-keyboard-shortcuts.js +101 -0
- package/src/hooks/accessibility/use-screen-reader.d.ts +22 -0
- package/src/hooks/accessibility/use-screen-reader.d.ts.map +1 -0
- package/src/hooks/accessibility/use-screen-reader.js +148 -0
- package/src/hooks/core/index.d.ts +18 -0
- package/src/hooks/core/index.d.ts.map +1 -0
- package/src/hooks/core/index.js +19 -0
- package/src/hooks/legacy.d.ts +18 -0
- package/src/hooks/legacy.d.ts.map +1 -0
- package/src/hooks/legacy.js +17 -0
- package/src/hooks/use-enhanced-media-player.d.ts +88 -0
- package/src/hooks/use-enhanced-media-player.d.ts.map +1 -0
- package/src/hooks/use-enhanced-media-player.js +395 -0
- package/src/hooks/use-enhanced-media-player.ts +19 -2
- package/src/hooks/use-intelligent-preloading.d.ts +66 -0
- package/src/hooks/use-intelligent-preloading.d.ts.map +1 -0
- package/src/hooks/use-intelligent-preloading.js +258 -0
- package/src/hooks/use-keyboard-controls.d.ts +13 -0
- package/src/hooks/use-keyboard-controls.d.ts.map +1 -0
- package/src/hooks/use-keyboard-controls.js +83 -0
- package/src/hooks/use-media-actions.d.ts +62 -0
- package/src/hooks/use-media-actions.d.ts.map +1 -0
- package/src/hooks/use-media-actions.js +121 -0
- package/src/hooks/use-media-metadata.d.ts +11 -0
- package/src/hooks/use-media-metadata.d.ts.map +1 -0
- package/src/hooks/use-media-metadata.js +74 -0
- package/src/hooks/use-media-optimistic.d.ts +36 -0
- package/src/hooks/use-media-optimistic.d.ts.map +1 -0
- package/src/hooks/use-media-optimistic.js +205 -0
- package/src/hooks/use-media-player.d.ts +31 -0
- package/src/hooks/use-media-player.d.ts.map +1 -0
- package/src/hooks/use-media-player.js +251 -0
- package/src/hooks/use-media-state.d.ts +17 -0
- package/src/hooks/use-media-state.d.ts.map +1 -0
- package/src/hooks/use-media-state.js +162 -0
- package/src/hooks/use-memory-optimization.d.ts +40 -0
- package/src/hooks/use-memory-optimization.d.ts.map +1 -0
- package/src/hooks/use-memory-optimization.js +288 -0
- package/src/hooks/use-optimistic-controls.d.ts +22 -0
- package/src/hooks/use-optimistic-controls.d.ts.map +1 -0
- package/src/hooks/use-optimistic-controls.js +60 -0
- package/src/hooks/use-optimized-media.d.ts +46 -0
- package/src/hooks/use-optimized-media.d.ts.map +1 -0
- package/src/hooks/use-optimized-media.js +211 -0
- package/src/hooks/use-touch-gestures.d.ts +47 -0
- package/src/hooks/use-touch-gestures.d.ts.map +1 -0
- package/src/hooks/use-touch-gestures.js +289 -0
- package/src/hooks/useEnhancedSubtitles.d.ts +39 -0
- package/src/hooks/useEnhancedSubtitles.d.ts.map +1 -0
- package/src/hooks/useEnhancedSubtitles.js +205 -0
- package/src/hooks/useKeyboardShortcuts.d.ts +10 -0
- package/src/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/src/hooks/useKeyboardShortcuts.js +59 -0
- package/src/hooks/useMediaControls.d.ts +9 -0
- package/src/hooks/useMediaControls.d.ts.map +1 -0
- package/src/hooks/useMediaControls.js +44 -0
- package/src/hooks/useScreenshot.d.ts +4 -0
- package/src/hooks/useScreenshot.d.ts.map +1 -0
- package/src/hooks/useScreenshot.js +56 -0
- package/src/hooks/useSubtitles.d.ts +8 -0
- package/src/hooks/useSubtitles.d.ts.map +1 -0
- package/src/hooks/useSubtitles.js +73 -0
- package/src/hooks/useVideoPlayer.d.ts +32 -0
- package/src/hooks/useVideoPlayer.d.ts.map +1 -0
- package/src/hooks/useVideoPlayer.js +184 -0
- package/src/icons/components/FullscreenIcon.d.ts +3 -0
- package/src/icons/components/FullscreenIcon.d.ts.map +1 -0
- package/src/icons/components/FullscreenIcon.js +11 -0
- package/src/icons/components/SettingsIcon.d.ts +3 -0
- package/src/icons/components/SettingsIcon.d.ts.map +1 -0
- package/src/icons/components/SettingsIcon.js +11 -0
- package/src/icons/components/animated/LoadingIcon.d.ts +3 -0
- package/src/icons/components/animated/LoadingIcon.d.ts.map +1 -0
- package/src/icons/components/animated/LoadingIcon.js +11 -0
- package/src/icons/components/animated/PlayPauseIcon.d.ts +7 -0
- package/src/icons/components/animated/PlayPauseIcon.d.ts.map +1 -0
- package/src/icons/components/animated/PlayPauseIcon.js +9 -0
- package/src/icons/components/media/PauseIcon.d.ts +3 -0
- package/src/icons/components/media/PauseIcon.d.ts.map +1 -0
- package/src/icons/components/media/PauseIcon.js +12 -0
- package/src/icons/components/media/PlayIcon.d.ts +3 -0
- package/src/icons/components/media/PlayIcon.d.ts.map +1 -0
- package/src/icons/components/media/PlayIcon.js +12 -0
- package/src/icons/components/volume/VolumeIcon.d.ts +3 -0
- package/src/icons/components/volume/VolumeIcon.d.ts.map +1 -0
- package/src/icons/components/volume/VolumeIcon.js +11 -0
- package/src/icons/components/volume/VolumeOffIcon.d.ts +3 -0
- package/src/icons/components/volume/VolumeOffIcon.d.ts.map +1 -0
- package/src/icons/components/volume/VolumeOffIcon.js +11 -0
- package/src/icons/index.d.ts +28 -0
- package/src/icons/index.d.ts.map +1 -0
- package/src/icons/index.js +45 -0
- package/src/icons/provider.d.ts +13 -0
- package/src/icons/provider.d.ts.map +1 -0
- package/src/icons/provider.js +37 -0
- package/src/icons/types.d.ts +18 -0
- package/src/icons/types.d.ts.map +1 -0
- package/src/icons/types.js +1 -0
- package/src/index-enhanced.d.ts +13 -0
- package/src/index-enhanced.d.ts.map +1 -0
- package/src/index-enhanced.js +16 -0
- package/src/index-legacy.d.ts +81 -0
- package/src/index-legacy.d.ts.map +1 -0
- package/src/index-legacy.js +97 -0
- package/src/index.d.ts +38 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.js +90 -0
- package/src/index.minimal.d.ts +2 -0
- package/src/index.minimal.d.ts.map +1 -0
- package/src/index.minimal.js +3 -0
- package/src/index.minimal.ts +4 -0
- package/src/lib/deprecation.d.ts +7 -0
- package/src/lib/deprecation.d.ts.map +1 -0
- package/src/lib/deprecation.js +31 -0
- package/src/lib/format-time.d.ts +9 -0
- package/src/lib/format-time.d.ts.map +1 -0
- package/src/lib/format-time.js +32 -0
- package/src/lib/index.d.ts +3 -0
- package/src/lib/index.d.ts.map +1 -0
- package/src/lib/index.js +3 -0
- package/src/lib/utils.d.ts +3 -0
- package/src/lib/utils.d.ts.map +1 -0
- package/src/lib/utils.js +5 -0
- package/src/test/setup.d.ts +2 -0
- package/src/test/setup.d.ts.map +1 -0
- package/src/test/setup.js +65 -0
- package/src/types/events.d.ts +41 -0
- package/src/types/events.d.ts.map +1 -0
- package/src/types/events.js +2 -0
- package/src/types/formats.d.ts +45 -0
- package/src/types/formats.d.ts.map +1 -0
- package/src/types/formats.js +63 -0
- package/src/types/index.d.ts +128 -0
- package/src/types/index.d.ts.map +1 -0
- package/src/types/index.js +4 -0
- package/src/types/index.ts +40 -5
- package/dist/context-BMteAJDN.js.map +0 -1
- package/dist/context-DCJ_scmO.cjs +0 -23
- package/dist/context-DCJ_scmO.cjs.map +0 -1
- package/dist/hooks-C_r8wexn.cjs +0 -4
- package/dist/hooks-C_r8wexn.cjs.map +0 -1
- package/dist/hooks-Da2wVXlF.js +0 -1630
- package/dist/hooks-Da2wVXlF.js.map +0 -1
- package/dist/utils-BnscpYYd.js.map +0 -1
- package/dist/utils-D_czS_0K.cjs +0 -9
- package/dist/utils-D_czS_0K.cjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import r, { useMemo as
|
|
3
|
-
import { c as
|
|
4
|
-
function
|
|
5
|
-
const [t, o] = r.useState(!0), [a, i] = r.useState(!1), [c,
|
|
1
|
+
import { u as U, a as L, b, j as e, M as f } from "./context-Af84FynT.js";
|
|
2
|
+
import r, { useMemo as $ } from "react";
|
|
3
|
+
import { c as p, f as D, a as _ } from "./utils-nTO4AnHo.js";
|
|
4
|
+
function X(d, l, s, n) {
|
|
5
|
+
const [t, o] = r.useState(!0), [a, i] = r.useState(!1), [c, m] = r.useState(!1), u = r.useRef(null), w = r.useCallback(() => {
|
|
6
6
|
u.current && clearTimeout(u.current), d && (u.current = setTimeout(() => {
|
|
7
7
|
!a && !c && o(!1);
|
|
8
8
|
}, l));
|
|
@@ -17,9 +17,9 @@ function $(d, l, s, n) {
|
|
|
17
17
|
}, [s]), y = r.useCallback(() => {
|
|
18
18
|
s && (i(!1), w());
|
|
19
19
|
}, [s, w]), h = r.useCallback(() => {
|
|
20
|
-
n && (
|
|
20
|
+
n && (m(!0), C());
|
|
21
21
|
}, [n, C]), N = r.useCallback(() => {
|
|
22
|
-
n && (
|
|
22
|
+
n && (m(!1), w());
|
|
23
23
|
}, [n, w]);
|
|
24
24
|
return {
|
|
25
25
|
showControls: t,
|
|
@@ -30,19 +30,19 @@ function $(d, l, s, n) {
|
|
|
30
30
|
handleTouchEnd: N
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
const l = L(), s = b((g) => g.isPlaying), n = b((g) => g.currentTime), t = b((g) => g.duration), o = b((g) => g.volume), [a, i] = r.useState(null), [c,
|
|
33
|
+
function G(d) {
|
|
34
|
+
const l = L(), s = b((g) => g.isPlaying), n = b((g) => g.currentTime), t = b((g) => g.duration), o = b((g) => g.volume), [a, i] = r.useState(null), [c, m] = r.useState(!1), u = r.useCallback((g) => {
|
|
35
35
|
if (!d) return;
|
|
36
36
|
const y = g.touches[0];
|
|
37
37
|
if (!y) return;
|
|
38
38
|
const h = Date.now();
|
|
39
|
-
a && h - a.time < 300 ? (
|
|
40
|
-
type: s ?
|
|
39
|
+
a && h - a.time < 300 ? (m(!0), l({
|
|
40
|
+
type: s ? f.PAUSE : f.PLAY
|
|
41
41
|
})) : (i({
|
|
42
42
|
x: y.clientX,
|
|
43
43
|
y: y.clientY,
|
|
44
44
|
time: h
|
|
45
|
-
}),
|
|
45
|
+
}), m(!1));
|
|
46
46
|
}, [d, a, s, l]), w = r.useCallback((g) => {
|
|
47
47
|
if (!d || !a || c) return;
|
|
48
48
|
const y = g.touches[0];
|
|
@@ -51,20 +51,20 @@ function X(d) {
|
|
|
51
51
|
if (Math.abs(h) > Math.abs(N) && Math.abs(h) > 50) {
|
|
52
52
|
const E = h / window.innerWidth * 30, T = Math.max(0, Math.min(t, n + E));
|
|
53
53
|
l({
|
|
54
|
-
type:
|
|
54
|
+
type: f.SEEK,
|
|
55
55
|
detail: T
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
if (Math.abs(N) > Math.abs(h) && Math.abs(N) > 50 && a.x > window.innerWidth / 2) {
|
|
59
59
|
const E = -(N / window.innerHeight) * 1, T = Math.max(0, Math.min(1, o + E));
|
|
60
60
|
l({
|
|
61
|
-
type:
|
|
61
|
+
type: f.SET_VOLUME,
|
|
62
62
|
detail: T
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
}, [d, a, c, t, n, o, l]), C = r.useCallback(() => {
|
|
66
66
|
d && setTimeout(() => {
|
|
67
|
-
i(null),
|
|
67
|
+
i(null), m(!1);
|
|
68
68
|
}, 300);
|
|
69
69
|
}, [d]);
|
|
70
70
|
return {
|
|
@@ -73,7 +73,7 @@ function X(d) {
|
|
|
73
73
|
handleTouchEnd: C
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const Y = function({
|
|
77
77
|
children: l,
|
|
78
78
|
className: s,
|
|
79
79
|
autoHide: n = !0,
|
|
@@ -82,28 +82,28 @@ const G = function({
|
|
|
82
82
|
showControlsOnTouch: a = !0,
|
|
83
83
|
enableKeyboardControls: i = !0,
|
|
84
84
|
enableTouchGestures: c = !0,
|
|
85
|
-
onPlay:
|
|
85
|
+
onPlay: m,
|
|
86
86
|
onPause: u,
|
|
87
87
|
onTimeUpdate: w,
|
|
88
88
|
onVolumeChange: C,
|
|
89
89
|
onFullscreenChange: g
|
|
90
90
|
}) {
|
|
91
|
-
const y =
|
|
91
|
+
const y = U(), h = L(), N = b(r.useCallback((k) => k.isPlaying, [])), E = b(r.useCallback((k) => k.isFullscreen, [])), T = b(r.useCallback((k) => k.currentTime, [])), S = b(r.useCallback((k) => k.volume, [])), x = b(r.useCallback((k) => k.error, [])), {
|
|
92
92
|
showControls: v,
|
|
93
93
|
showControlsTemporarily: B,
|
|
94
94
|
handleMouseEnter: z,
|
|
95
95
|
handleMouseLeave: A,
|
|
96
96
|
handleTouchStart: j,
|
|
97
97
|
handleTouchEnd: M
|
|
98
|
-
} =
|
|
98
|
+
} = X(n, t, o, a), {
|
|
99
99
|
handleTouchStart: F,
|
|
100
100
|
handleTouchMove: V,
|
|
101
101
|
handleTouchEnd: R
|
|
102
|
-
} =
|
|
102
|
+
} = G(c), H = r.useCallback((k) => {
|
|
103
103
|
j(), F(k);
|
|
104
|
-
}, [j, F]),
|
|
104
|
+
}, [j, F]), O = r.useCallback(() => {
|
|
105
105
|
M(), R();
|
|
106
|
-
}, [M, R]),
|
|
106
|
+
}, [M, R]), K = r.useCallback(() => {
|
|
107
107
|
B();
|
|
108
108
|
}, [B]);
|
|
109
109
|
return r.useEffect(() => {
|
|
@@ -114,38 +114,38 @@ const G = function({
|
|
|
114
114
|
case "Space":
|
|
115
115
|
case "KeyK":
|
|
116
116
|
P.preventDefault(), h({
|
|
117
|
-
type: N ?
|
|
117
|
+
type: N ? f.PAUSE : f.PLAY
|
|
118
118
|
});
|
|
119
119
|
break;
|
|
120
120
|
case "KeyF":
|
|
121
121
|
P.preventDefault(), h({
|
|
122
|
-
type: E ?
|
|
122
|
+
type: E ? f.EXIT_FULLSCREEN : f.ENTER_FULLSCREEN
|
|
123
123
|
});
|
|
124
124
|
break;
|
|
125
125
|
case "KeyM":
|
|
126
|
-
P.preventDefault(), h({ type:
|
|
126
|
+
P.preventDefault(), h({ type: f.TOGGLE_MUTE });
|
|
127
127
|
break;
|
|
128
128
|
case "ArrowLeft":
|
|
129
129
|
P.preventDefault(), h({
|
|
130
|
-
type:
|
|
130
|
+
type: f.SEEK,
|
|
131
131
|
detail: Math.max(0, T - 10)
|
|
132
132
|
});
|
|
133
133
|
break;
|
|
134
134
|
case "ArrowRight":
|
|
135
135
|
P.preventDefault(), h({
|
|
136
|
-
type:
|
|
136
|
+
type: f.SEEK,
|
|
137
137
|
detail: T + 10
|
|
138
138
|
});
|
|
139
139
|
break;
|
|
140
140
|
case "ArrowUp":
|
|
141
141
|
P.preventDefault(), h({
|
|
142
|
-
type:
|
|
142
|
+
type: f.SET_VOLUME,
|
|
143
143
|
detail: Math.min(1, S + 0.1)
|
|
144
144
|
});
|
|
145
145
|
break;
|
|
146
146
|
case "ArrowDown":
|
|
147
147
|
P.preventDefault(), h({
|
|
148
|
-
type:
|
|
148
|
+
type: f.SET_VOLUME,
|
|
149
149
|
detail: Math.max(0, S - 0.1)
|
|
150
150
|
});
|
|
151
151
|
break;
|
|
@@ -153,8 +153,8 @@ const G = function({
|
|
|
153
153
|
};
|
|
154
154
|
return document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
|
|
155
155
|
}, [i, h, N, E, T, S]), r.useEffect(() => {
|
|
156
|
-
N ?
|
|
157
|
-
}, [N,
|
|
156
|
+
N ? m?.() : u?.();
|
|
157
|
+
}, [N, m, u]), r.useEffect(() => {
|
|
158
158
|
w?.(T);
|
|
159
159
|
}, [T, w]), r.useEffect(() => {
|
|
160
160
|
C?.(S);
|
|
@@ -164,7 +164,7 @@ const G = function({
|
|
|
164
164
|
"div",
|
|
165
165
|
{
|
|
166
166
|
ref: y.rootRef,
|
|
167
|
-
className:
|
|
167
|
+
className: p(
|
|
168
168
|
"relative isolate flex flex-col overflow-hidden rounded-lg bg-black outline-none",
|
|
169
169
|
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
170
170
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
@@ -172,28 +172,28 @@ const G = function({
|
|
|
172
172
|
s
|
|
173
173
|
),
|
|
174
174
|
"data-state": E ? "fullscreen" : "inline",
|
|
175
|
-
"data-disabled":
|
|
175
|
+
"data-disabled": x ? "" : void 0,
|
|
176
176
|
"data-controls-visible": v ? "" : void 0,
|
|
177
177
|
tabIndex: 0,
|
|
178
178
|
onMouseEnter: z,
|
|
179
179
|
onMouseLeave: A,
|
|
180
|
-
onTouchStart:
|
|
180
|
+
onTouchStart: H,
|
|
181
181
|
onTouchMove: V,
|
|
182
|
-
onTouchEnd:
|
|
183
|
-
onClick:
|
|
182
|
+
onTouchEnd: O,
|
|
183
|
+
onClick: K,
|
|
184
184
|
children: l
|
|
185
185
|
}
|
|
186
186
|
);
|
|
187
187
|
};
|
|
188
|
-
|
|
189
|
-
const
|
|
188
|
+
Y.displayName = "EnhancedMediaPlayer";
|
|
189
|
+
const W = function({
|
|
190
190
|
qualities: l,
|
|
191
191
|
currentQuality: s,
|
|
192
192
|
onQualityChange: n,
|
|
193
193
|
className: t
|
|
194
194
|
}) {
|
|
195
195
|
const [o, a] = r.useState(!1), i = r.useMemo(() => l.find((c) => c.id === s)?.label || "Auto", [l, s]);
|
|
196
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
196
|
+
return /* @__PURE__ */ e.jsxs("div", { className: p("relative", t), children: [
|
|
197
197
|
/* @__PURE__ */ e.jsxs(
|
|
198
198
|
"button",
|
|
199
199
|
{
|
|
@@ -209,7 +209,7 @@ const Y = function({
|
|
|
209
209
|
{
|
|
210
210
|
viewBox: "0 0 24 24",
|
|
211
211
|
fill: "currentColor",
|
|
212
|
-
className:
|
|
212
|
+
className: p("h-4 w-4 transition-transform", o && "rotate-180"),
|
|
213
213
|
children: /* @__PURE__ */ e.jsx("path", { d: "M7 10l5 5 5-5z" })
|
|
214
214
|
}
|
|
215
215
|
)
|
|
@@ -222,7 +222,7 @@ const Y = function({
|
|
|
222
222
|
onClick: () => {
|
|
223
223
|
n(c.id), a(!1);
|
|
224
224
|
},
|
|
225
|
-
className:
|
|
225
|
+
className: p(
|
|
226
226
|
"w-full px-4 py-2 text-left text-sm text-white transition-colors hover:bg-white/10",
|
|
227
227
|
c.id === s && "bg-primary/20 text-primary"
|
|
228
228
|
),
|
|
@@ -238,14 +238,14 @@ const Y = function({
|
|
|
238
238
|
c.id
|
|
239
239
|
)) })
|
|
240
240
|
] });
|
|
241
|
-
},
|
|
241
|
+
}, Q = function({
|
|
242
242
|
subtitles: l,
|
|
243
243
|
currentSubtitle: s,
|
|
244
244
|
onSubtitleChange: n,
|
|
245
245
|
className: t
|
|
246
246
|
}) {
|
|
247
247
|
const [o, a] = r.useState(!1), i = r.useMemo(() => s && l.find((c) => c.id === s)?.label || "Off", [l, s]);
|
|
248
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
248
|
+
return /* @__PURE__ */ e.jsxs("div", { className: p("relative", t), children: [
|
|
249
249
|
/* @__PURE__ */ e.jsxs(
|
|
250
250
|
"button",
|
|
251
251
|
{
|
|
@@ -261,7 +261,7 @@ const Y = function({
|
|
|
261
261
|
{
|
|
262
262
|
viewBox: "0 0 24 24",
|
|
263
263
|
fill: "currentColor",
|
|
264
|
-
className:
|
|
264
|
+
className: p("h-4 w-4 transition-transform", o && "rotate-180"),
|
|
265
265
|
children: /* @__PURE__ */ e.jsx("path", { d: "M7 10l5 5 5-5z" })
|
|
266
266
|
}
|
|
267
267
|
)
|
|
@@ -275,7 +275,7 @@ const Y = function({
|
|
|
275
275
|
onClick: () => {
|
|
276
276
|
n(null), a(!1);
|
|
277
277
|
},
|
|
278
|
-
className:
|
|
278
|
+
className: p(
|
|
279
279
|
"w-full px-4 py-2 text-left text-sm text-white transition-colors hover:bg-white/10",
|
|
280
280
|
!s && "bg-primary/20 text-primary"
|
|
281
281
|
),
|
|
@@ -288,7 +288,7 @@ const Y = function({
|
|
|
288
288
|
onClick: () => {
|
|
289
289
|
n(c.id), a(!1);
|
|
290
290
|
},
|
|
291
|
-
className:
|
|
291
|
+
className: p(
|
|
292
292
|
"w-full px-4 py-2 text-left text-sm text-white transition-colors hover:bg-white/10",
|
|
293
293
|
c.id === s && "bg-primary/20 text-primary"
|
|
294
294
|
),
|
|
@@ -298,13 +298,13 @@ const Y = function({
|
|
|
298
298
|
))
|
|
299
299
|
] })
|
|
300
300
|
] });
|
|
301
|
-
},
|
|
301
|
+
}, J = function({
|
|
302
302
|
className: l
|
|
303
303
|
}) {
|
|
304
304
|
const s = L(), n = b((c) => c.playbackRate), [t, o] = r.useState(!1), a = [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2], i = r.useCallback((c) => {
|
|
305
|
-
s({ type:
|
|
305
|
+
s({ type: f.SET_PLAYBACK_RATE, detail: c }), o(!1);
|
|
306
306
|
}, [s]);
|
|
307
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
307
|
+
return /* @__PURE__ */ e.jsxs("div", { className: p("relative", l), children: [
|
|
308
308
|
/* @__PURE__ */ e.jsxs(
|
|
309
309
|
"button",
|
|
310
310
|
{
|
|
@@ -323,7 +323,7 @@ const Y = function({
|
|
|
323
323
|
{
|
|
324
324
|
viewBox: "0 0 24 24",
|
|
325
325
|
fill: "currentColor",
|
|
326
|
-
className:
|
|
326
|
+
className: p("h-4 w-4 transition-transform", t && "rotate-180"),
|
|
327
327
|
children: /* @__PURE__ */ e.jsx("path", { d: "M7 10l5 5 5-5z" })
|
|
328
328
|
}
|
|
329
329
|
)
|
|
@@ -334,7 +334,7 @@ const Y = function({
|
|
|
334
334
|
"button",
|
|
335
335
|
{
|
|
336
336
|
onClick: () => i(c),
|
|
337
|
-
className:
|
|
337
|
+
className: p(
|
|
338
338
|
"w-full px-4 py-2 text-left text-sm text-white transition-colors hover:bg-white/10",
|
|
339
339
|
c === n && "bg-primary/20 text-primary"
|
|
340
340
|
),
|
|
@@ -346,7 +346,7 @@ const Y = function({
|
|
|
346
346
|
c
|
|
347
347
|
)) })
|
|
348
348
|
] });
|
|
349
|
-
},
|
|
349
|
+
}, Z = function({
|
|
350
350
|
chapters: l,
|
|
351
351
|
onChapterSelect: s,
|
|
352
352
|
className: n
|
|
@@ -354,13 +354,13 @@ const Y = function({
|
|
|
354
354
|
const t = b((a) => a.currentTime), o = r.useMemo(() => l.find(
|
|
355
355
|
(a) => t >= a.startTime && t < a.endTime
|
|
356
356
|
), [l, t]);
|
|
357
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
357
|
+
return /* @__PURE__ */ e.jsxs("div", { className: p("rounded-lg border border-white/20 bg-black/90 p-4 backdrop-blur-sm", n), children: [
|
|
358
358
|
/* @__PURE__ */ e.jsx("h3", { className: "mb-3 font-semibold text-white", children: "Chapters" }),
|
|
359
359
|
/* @__PURE__ */ e.jsx("div", { className: "max-h-64 space-y-2 overflow-y-auto", children: l.map((a) => /* @__PURE__ */ e.jsxs(
|
|
360
360
|
"button",
|
|
361
361
|
{
|
|
362
362
|
onClick: () => s(a),
|
|
363
|
-
className:
|
|
363
|
+
className: p(
|
|
364
364
|
"flex w-full items-center gap-3 rounded-lg p-3 text-left transition-colors",
|
|
365
365
|
"hover:bg-white/10",
|
|
366
366
|
a.id === o?.id && "border border-primary/30 bg-primary/20"
|
|
@@ -387,12 +387,12 @@ const Y = function({
|
|
|
387
387
|
a.id
|
|
388
388
|
)) })
|
|
389
389
|
] });
|
|
390
|
-
},
|
|
390
|
+
}, q = function({
|
|
391
391
|
className: l
|
|
392
392
|
}) {
|
|
393
393
|
const s = L(), n = b((o) => o.isPictureInPicture), t = r.useCallback(() => {
|
|
394
394
|
s({
|
|
395
|
-
type: n ?
|
|
395
|
+
type: n ? f.EXIT_PIP : f.ENTER_PIP
|
|
396
396
|
});
|
|
397
397
|
}, [s, n]);
|
|
398
398
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -400,7 +400,7 @@ const Y = function({
|
|
|
400
400
|
{
|
|
401
401
|
type: "button",
|
|
402
402
|
onClick: t,
|
|
403
|
-
className:
|
|
403
|
+
className: p(
|
|
404
404
|
"flex h-10 w-10 items-center justify-center rounded-full text-white",
|
|
405
405
|
"transition-colors hover:bg-white/10",
|
|
406
406
|
l
|
|
@@ -409,18 +409,18 @@ const Y = function({
|
|
|
409
409
|
children: /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-5 w-5", children: /* @__PURE__ */ e.jsx("path", { d: "M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14z" }) })
|
|
410
410
|
}
|
|
411
411
|
);
|
|
412
|
-
},
|
|
412
|
+
}, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
413
413
|
__proto__: null,
|
|
414
|
-
ChaptersPanel:
|
|
415
|
-
PictureInPictureButton:
|
|
416
|
-
PlaybackSpeedSelector:
|
|
417
|
-
QualitySelector:
|
|
418
|
-
SubtitleSelector:
|
|
419
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
414
|
+
ChaptersPanel: Z,
|
|
415
|
+
PictureInPictureButton: q,
|
|
416
|
+
PlaybackSpeedSelector: J,
|
|
417
|
+
QualitySelector: W,
|
|
418
|
+
SubtitleSelector: Q
|
|
419
|
+
}, Symbol.toStringTag, { value: "Module" })), ee = function({
|
|
420
420
|
className: l,
|
|
421
421
|
size: s = "md"
|
|
422
422
|
}) {
|
|
423
|
-
const n = L(), t = b((
|
|
423
|
+
const n = L(), t = b((m) => m.isPlaying), o = b((m) => m.isLoading), a = {
|
|
424
424
|
sm: "h-8 w-8",
|
|
425
425
|
md: "h-10 w-10",
|
|
426
426
|
lg: "h-12 w-12",
|
|
@@ -432,7 +432,7 @@ const Y = function({
|
|
|
432
432
|
xl: "h-8 w-8"
|
|
433
433
|
}, c = r.useCallback(() => {
|
|
434
434
|
n({
|
|
435
|
-
type: t ?
|
|
435
|
+
type: t ? f.PAUSE : f.PLAY
|
|
436
436
|
});
|
|
437
437
|
}, [n, t]);
|
|
438
438
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -441,7 +441,7 @@ const Y = function({
|
|
|
441
441
|
type: "button",
|
|
442
442
|
onClick: c,
|
|
443
443
|
disabled: o,
|
|
444
|
-
className:
|
|
444
|
+
className: p(
|
|
445
445
|
"group relative flex items-center justify-center rounded-full bg-white/10 backdrop-blur-sm",
|
|
446
446
|
"border border-white/20 text-white transition-all duration-200",
|
|
447
447
|
"hover:scale-105 hover:bg-white/20 active:scale-95",
|
|
@@ -451,68 +451,68 @@ const Y = function({
|
|
|
451
451
|
l
|
|
452
452
|
),
|
|
453
453
|
"aria-label": t ? "Pause" : "Play",
|
|
454
|
-
children: o ? /* @__PURE__ */ e.jsx("div", { className:
|
|
454
|
+
children: o ? /* @__PURE__ */ e.jsx("div", { className: p("animate-spin rounded-full border-2 border-white/30 border-t-white", i[s]) }) : /* @__PURE__ */ e.jsx("div", { className: p("transition-transform duration-200", i[s]), children: t ? /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-full w-full", children: /* @__PURE__ */ e.jsx("path", { d: "M6 4h4v16H6V4zm8 0h4v16h-4V4z" }) }) : /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "ml-0.5 h-full w-full", children: /* @__PURE__ */ e.jsx("path", { d: "M8 5v14l11-7z" }) }) })
|
|
455
455
|
}
|
|
456
456
|
);
|
|
457
|
-
},
|
|
457
|
+
}, se = function({
|
|
458
458
|
className: l
|
|
459
459
|
}) {
|
|
460
|
-
const s = L(), n = b((
|
|
460
|
+
const s = L(), n = b((x) => x.currentTime), t = b((x) => x.duration), o = b((x) => x.buffered), a = b((x) => x.previewTime), [i, c] = r.useState(!1), [m, u] = r.useState(null), w = r.useRef(null), C = t > 0 ? n / t * 100 : 0, g = t > 0 && a !== null ? a / t * 100 : null, y = r.useMemo(() => {
|
|
461
461
|
if (!o || t === 0) return [];
|
|
462
|
-
const
|
|
462
|
+
const x = [];
|
|
463
463
|
for (let v = 0; v < o.length; v++)
|
|
464
|
-
|
|
464
|
+
x.push({
|
|
465
465
|
start: o.start(v) / t * 100,
|
|
466
466
|
end: o.end(v) / t * 100
|
|
467
467
|
});
|
|
468
|
-
return
|
|
469
|
-
}, [o, t]), h = r.useCallback((
|
|
468
|
+
return x;
|
|
469
|
+
}, [o, t]), h = r.useCallback((x) => {
|
|
470
470
|
if (!w.current) return 0;
|
|
471
471
|
const v = w.current.getBoundingClientRect();
|
|
472
|
-
return Math.max(0, Math.min(1, (
|
|
473
|
-
}, [t]), N = r.useCallback((
|
|
472
|
+
return Math.max(0, Math.min(1, (x - v.left) / v.width)) * t;
|
|
473
|
+
}, [t]), N = r.useCallback((x) => {
|
|
474
474
|
if (!i) {
|
|
475
|
-
const v = h(
|
|
476
|
-
u(v), s({ type:
|
|
475
|
+
const v = h(x.clientX);
|
|
476
|
+
u(v), s({ type: f.PREVIEW_TIME, detail: v });
|
|
477
477
|
}
|
|
478
478
|
}, [i, h, s]), E = r.useCallback(() => {
|
|
479
|
-
i || (u(null), s({ type:
|
|
480
|
-
}, [i, s]), T = r.useCallback((
|
|
479
|
+
i || (u(null), s({ type: f.CLEAR_PREVIEW }));
|
|
480
|
+
}, [i, s]), T = r.useCallback((x) => {
|
|
481
481
|
c(!0);
|
|
482
|
-
const v = h(
|
|
483
|
-
s({ type:
|
|
484
|
-
}, [h, s]), S = r.useCallback((
|
|
482
|
+
const v = h(x.clientX);
|
|
483
|
+
s({ type: f.SEEK, detail: v });
|
|
484
|
+
}, [h, s]), S = r.useCallback((x) => {
|
|
485
485
|
c(!0);
|
|
486
|
-
const v = h(
|
|
487
|
-
s({ type:
|
|
486
|
+
const v = h(x.touches[0]?.clientX || 0);
|
|
487
|
+
s({ type: f.SEEK, detail: v });
|
|
488
488
|
}, [h, s]);
|
|
489
489
|
return r.useEffect(() => {
|
|
490
|
-
const
|
|
490
|
+
const x = (z) => {
|
|
491
491
|
if (i) {
|
|
492
492
|
const A = h(z.clientX);
|
|
493
|
-
s({ type:
|
|
493
|
+
s({ type: f.SEEK, detail: A });
|
|
494
494
|
}
|
|
495
495
|
}, v = () => {
|
|
496
|
-
c(!1), u(null), s({ type:
|
|
496
|
+
c(!1), u(null), s({ type: f.CLEAR_PREVIEW });
|
|
497
497
|
}, B = (z) => {
|
|
498
498
|
if (i) {
|
|
499
499
|
const A = h(z.touches[0]?.clientX || 0);
|
|
500
|
-
s({ type:
|
|
500
|
+
s({ type: f.SEEK, detail: A });
|
|
501
501
|
}
|
|
502
502
|
};
|
|
503
|
-
return i && (document.addEventListener("mousemove",
|
|
504
|
-
document.removeEventListener("mousemove",
|
|
503
|
+
return i && (document.addEventListener("mousemove", x), document.addEventListener("mouseup", v), document.addEventListener("touchmove", B), document.addEventListener("touchend", v)), () => {
|
|
504
|
+
document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", v), document.removeEventListener("touchmove", B), document.removeEventListener("touchend", v);
|
|
505
505
|
};
|
|
506
|
-
}, [i, h, s]), /* @__PURE__ */ e.jsxs("div", { className:
|
|
507
|
-
(
|
|
506
|
+
}, [i, h, s]), /* @__PURE__ */ e.jsxs("div", { className: p("group relative flex items-center", l), children: [
|
|
507
|
+
(m !== null || a !== null) && /* @__PURE__ */ e.jsx(
|
|
508
508
|
"div",
|
|
509
509
|
{
|
|
510
510
|
className: "pointer-events-none absolute bottom-full mb-2 rounded bg-black/80 px-2 py-1 text-white text-xs",
|
|
511
511
|
style: {
|
|
512
|
-
left: `${g || (
|
|
512
|
+
left: `${g || (m || 0) / t * 100}%`,
|
|
513
513
|
transform: "translateX(-50%)"
|
|
514
514
|
},
|
|
515
|
-
children: D(
|
|
515
|
+
children: D(m || a || 0)
|
|
516
516
|
}
|
|
517
517
|
),
|
|
518
518
|
/* @__PURE__ */ e.jsxs(
|
|
@@ -525,13 +525,13 @@ const Y = function({
|
|
|
525
525
|
onMouseDown: T,
|
|
526
526
|
onTouchStart: S,
|
|
527
527
|
children: [
|
|
528
|
-
y.map((
|
|
528
|
+
y.map((x, v) => /* @__PURE__ */ e.jsx(
|
|
529
529
|
"div",
|
|
530
530
|
{
|
|
531
531
|
className: "absolute top-0 h-full rounded-full bg-white/30",
|
|
532
532
|
style: {
|
|
533
|
-
left: `${
|
|
534
|
-
width: `${
|
|
533
|
+
left: `${x.start}%`,
|
|
534
|
+
width: `${x.end - x.start}%`
|
|
535
535
|
}
|
|
536
536
|
},
|
|
537
537
|
v
|
|
@@ -561,18 +561,18 @@ const Y = function({
|
|
|
561
561
|
}
|
|
562
562
|
)
|
|
563
563
|
] });
|
|
564
|
-
},
|
|
564
|
+
}, te = function({
|
|
565
565
|
className: l
|
|
566
566
|
}) {
|
|
567
567
|
const s = L(), n = b((u) => u.volume), t = b((u) => u.isMuted), [o, a] = r.useState(!1), i = r.useCallback(() => {
|
|
568
|
-
s({ type:
|
|
568
|
+
s({ type: f.TOGGLE_MUTE });
|
|
569
569
|
}, [s]), c = r.useCallback((u) => {
|
|
570
|
-
s({ type:
|
|
571
|
-
}, [s]),
|
|
570
|
+
s({ type: f.SET_VOLUME, detail: u });
|
|
571
|
+
}, [s]), m = r.useMemo(() => t || n === 0 ? /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-5 w-5", children: /* @__PURE__ */ e.jsx("path", { d: "M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z" }) }) : n < 0.5 ? /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-5 w-5", children: /* @__PURE__ */ e.jsx("path", { d: "M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z" }) }) : /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-5 w-5", children: /* @__PURE__ */ e.jsx("path", { d: "M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z" }) }), [t, n]);
|
|
572
572
|
return /* @__PURE__ */ e.jsxs(
|
|
573
573
|
"div",
|
|
574
574
|
{
|
|
575
|
-
className:
|
|
575
|
+
className: p("relative flex items-center", l),
|
|
576
576
|
onMouseEnter: () => a(!0),
|
|
577
577
|
onMouseLeave: () => a(!1),
|
|
578
578
|
children: [
|
|
@@ -583,10 +583,10 @@ const Y = function({
|
|
|
583
583
|
onClick: i,
|
|
584
584
|
className: "flex h-10 w-10 items-center justify-center rounded-full text-white transition-colors hover:bg-white/10",
|
|
585
585
|
"aria-label": t ? "Unmute" : "Mute",
|
|
586
|
-
children:
|
|
586
|
+
children: m
|
|
587
587
|
}
|
|
588
588
|
),
|
|
589
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
589
|
+
/* @__PURE__ */ e.jsx("div", { className: p(
|
|
590
590
|
"absolute left-full ml-2 flex items-center transition-all duration-200",
|
|
591
591
|
o ? "translate-x-0 opacity-100" : "-translate-x-2 pointer-events-none opacity-0"
|
|
592
592
|
), children: /* @__PURE__ */ e.jsx(
|
|
@@ -604,12 +604,12 @@ const Y = function({
|
|
|
604
604
|
]
|
|
605
605
|
}
|
|
606
606
|
);
|
|
607
|
-
},
|
|
607
|
+
}, ne = function({
|
|
608
608
|
className: l,
|
|
609
609
|
size: s = "md",
|
|
610
610
|
skipTime: n = 10
|
|
611
611
|
}) {
|
|
612
|
-
const t = L(), o = b((
|
|
612
|
+
const t = L(), o = b((m) => m.currentTime), a = {
|
|
613
613
|
sm: "h-8 w-8",
|
|
614
614
|
md: "h-10 w-10",
|
|
615
615
|
lg: "h-12 w-12"
|
|
@@ -618,15 +618,15 @@ const Y = function({
|
|
|
618
618
|
md: "h-5 w-5",
|
|
619
619
|
lg: "h-6 w-6"
|
|
620
620
|
}, c = r.useCallback(() => {
|
|
621
|
-
const
|
|
622
|
-
t({ type:
|
|
621
|
+
const m = Math.max(0, o - n);
|
|
622
|
+
t({ type: f.SEEK, detail: m });
|
|
623
623
|
}, [t, o, n]);
|
|
624
624
|
return /* @__PURE__ */ e.jsx(
|
|
625
625
|
"button",
|
|
626
626
|
{
|
|
627
627
|
type: "button",
|
|
628
628
|
onClick: c,
|
|
629
|
-
className:
|
|
629
|
+
className: p(
|
|
630
630
|
"group relative flex items-center justify-center rounded-full bg-white/10 backdrop-blur-sm",
|
|
631
631
|
"border border-white/20 text-white transition-all duration-200",
|
|
632
632
|
"hover:scale-105 hover:bg-white/20 active:scale-95",
|
|
@@ -636,7 +636,7 @@ const Y = function({
|
|
|
636
636
|
),
|
|
637
637
|
"aria-label": `Backward ${n} seconds`,
|
|
638
638
|
title: `Backward ${n}s`,
|
|
639
|
-
children: /* @__PURE__ */ e.jsxs("div", { className:
|
|
639
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: p("flex items-center transition-transform duration-200", i[s]), children: [
|
|
640
640
|
/* @__PURE__ */ e.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-full w-full", children: [
|
|
641
641
|
/* @__PURE__ */ e.jsx("path", { d: "M7 6c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1s-1-.45-1-1V7c0-.55.45-1 1-1zM15.5 7.5c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v9c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-9z" }),
|
|
642
642
|
/* @__PURE__ */ e.jsx("path", { d: "M5.5 12l7-4.5v9l-7-4.5z", opacity: "0.8" })
|
|
@@ -645,7 +645,7 @@ const Y = function({
|
|
|
645
645
|
] })
|
|
646
646
|
}
|
|
647
647
|
);
|
|
648
|
-
},
|
|
648
|
+
}, ae = function({
|
|
649
649
|
className: l,
|
|
650
650
|
size: s = "md",
|
|
651
651
|
skipTime: n = 10
|
|
@@ -658,16 +658,16 @@ const Y = function({
|
|
|
658
658
|
sm: "h-4 w-4",
|
|
659
659
|
md: "h-5 w-5",
|
|
660
660
|
lg: "h-6 w-6"
|
|
661
|
-
},
|
|
661
|
+
}, m = r.useCallback(() => {
|
|
662
662
|
const u = Math.min(a, o + n);
|
|
663
|
-
t({ type:
|
|
663
|
+
t({ type: f.SEEK, detail: u });
|
|
664
664
|
}, [t, o, a, n]);
|
|
665
665
|
return /* @__PURE__ */ e.jsx(
|
|
666
666
|
"button",
|
|
667
667
|
{
|
|
668
668
|
type: "button",
|
|
669
|
-
onClick:
|
|
670
|
-
className:
|
|
669
|
+
onClick: m,
|
|
670
|
+
className: p(
|
|
671
671
|
"group relative flex items-center justify-center rounded-full bg-white/10 backdrop-blur-sm",
|
|
672
672
|
"border border-white/20 text-white transition-all duration-200",
|
|
673
673
|
"hover:scale-105 hover:bg-white/20 active:scale-95",
|
|
@@ -677,7 +677,7 @@ const Y = function({
|
|
|
677
677
|
),
|
|
678
678
|
"aria-label": `Forward ${n} seconds`,
|
|
679
679
|
title: `Forward ${n}s`,
|
|
680
|
-
children: /* @__PURE__ */ e.jsxs("div", { className:
|
|
680
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: p("flex items-center transition-transform duration-200", c[s]), children: [
|
|
681
681
|
/* @__PURE__ */ e.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-full w-full", children: [
|
|
682
682
|
/* @__PURE__ */ e.jsx("path", { d: "M17 6c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1s-1-.45-1-1V7c0-.55.45-1 1-1zM8.5 7.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v9c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5v-9z" }),
|
|
683
683
|
/* @__PURE__ */ e.jsx("path", { d: "M18.5 12l-7-4.5v9l7-4.5z", opacity: "0.8" })
|
|
@@ -686,7 +686,7 @@ const Y = function({
|
|
|
686
686
|
] })
|
|
687
687
|
}
|
|
688
688
|
);
|
|
689
|
-
},
|
|
689
|
+
}, I = function({
|
|
690
690
|
variant: l = "current",
|
|
691
691
|
className: s
|
|
692
692
|
}) {
|
|
@@ -702,23 +702,23 @@ const Y = function({
|
|
|
702
702
|
return D(n);
|
|
703
703
|
}
|
|
704
704
|
}, [l, n, t]);
|
|
705
|
-
return /* @__PURE__ */ e.jsx("div", { className:
|
|
706
|
-
},
|
|
705
|
+
return /* @__PURE__ */ e.jsx("div", { className: p("font-mono text-sm text-white tabular-nums", s), children: o });
|
|
706
|
+
}, le = function({
|
|
707
707
|
metrics: l,
|
|
708
708
|
className: s
|
|
709
709
|
}) {
|
|
710
710
|
if (!l || process.env.NODE_ENV !== "development")
|
|
711
711
|
return null;
|
|
712
712
|
const n = (o) => o >= 50 ? "text-green-400" : o >= 30 ? "text-yellow-400" : "text-red-400", t = (o) => o >= 5 ? "text-green-400" : o >= 2 ? "text-yellow-400" : "text-red-400";
|
|
713
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
714
|
-
l.fps !== void 0 && /* @__PURE__ */ e.jsxs("div", { className:
|
|
713
|
+
return /* @__PURE__ */ e.jsxs("div", { className: p("flex items-center gap-3 font-mono text-xs", s), children: [
|
|
714
|
+
l.fps !== void 0 && /* @__PURE__ */ e.jsxs("div", { className: p("flex items-center gap-1", n(l.fps)), children: [
|
|
715
715
|
/* @__PURE__ */ e.jsx("div", { className: "h-2 w-2 rounded-full bg-current" }),
|
|
716
716
|
/* @__PURE__ */ e.jsxs("span", { children: [
|
|
717
717
|
l.fps,
|
|
718
718
|
" FPS"
|
|
719
719
|
] })
|
|
720
720
|
] }),
|
|
721
|
-
l.bufferHealth !== void 0 && /* @__PURE__ */ e.jsxs("div", { className:
|
|
721
|
+
l.bufferHealth !== void 0 && /* @__PURE__ */ e.jsxs("div", { className: p("flex items-center gap-1", t(l.bufferHealth)), children: [
|
|
722
722
|
/* @__PURE__ */ e.jsx("div", { className: "h-2 w-2 rounded-full bg-current" }),
|
|
723
723
|
/* @__PURE__ */ e.jsxs("span", { children: [
|
|
724
724
|
l.bufferHealth.toFixed(1),
|
|
@@ -733,7 +733,7 @@ const Y = function({
|
|
|
733
733
|
] })
|
|
734
734
|
] })
|
|
735
735
|
] });
|
|
736
|
-
},
|
|
736
|
+
}, de = function({
|
|
737
737
|
className: l,
|
|
738
738
|
showSkipButtons: s = !0,
|
|
739
739
|
showVolumeControl: n = !0,
|
|
@@ -742,14 +742,14 @@ const Y = function({
|
|
|
742
742
|
skipButtonSize: a = "md",
|
|
743
743
|
skipTime: i = 10,
|
|
744
744
|
showPerformanceIndicators: c = process.env.NODE_ENV === "development",
|
|
745
|
-
performanceMetrics:
|
|
745
|
+
performanceMetrics: m
|
|
746
746
|
}) {
|
|
747
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
748
|
-
/* @__PURE__ */ e.jsx(
|
|
747
|
+
return /* @__PURE__ */ e.jsxs("div", { className: p("flex flex-col gap-4 bg-gradient-to-t from-black/80 to-transparent p-4", l), children: [
|
|
748
|
+
/* @__PURE__ */ e.jsx(se, { className: "w-full" }),
|
|
749
749
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
750
750
|
/* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
751
751
|
s && /* @__PURE__ */ e.jsx(
|
|
752
|
-
|
|
752
|
+
ne,
|
|
753
753
|
{
|
|
754
754
|
size: a,
|
|
755
755
|
skipTime: i,
|
|
@@ -757,37 +757,37 @@ const Y = function({
|
|
|
757
757
|
}
|
|
758
758
|
),
|
|
759
759
|
/* @__PURE__ */ e.jsx(
|
|
760
|
-
|
|
760
|
+
ee,
|
|
761
761
|
{
|
|
762
762
|
size: o,
|
|
763
763
|
className: "shrink-0"
|
|
764
764
|
}
|
|
765
765
|
),
|
|
766
766
|
s && /* @__PURE__ */ e.jsx(
|
|
767
|
-
|
|
767
|
+
ae,
|
|
768
768
|
{
|
|
769
769
|
size: a,
|
|
770
770
|
skipTime: i,
|
|
771
771
|
className: "shrink-0"
|
|
772
772
|
}
|
|
773
773
|
),
|
|
774
|
-
n && /* @__PURE__ */ e.jsx(
|
|
774
|
+
n && /* @__PURE__ */ e.jsx(te, { className: "shrink-0" }),
|
|
775
775
|
t && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1 font-mono text-sm", children: [
|
|
776
|
-
/* @__PURE__ */ e.jsx(
|
|
776
|
+
/* @__PURE__ */ e.jsx(I, { variant: "current" }),
|
|
777
777
|
/* @__PURE__ */ e.jsx("span", { className: "text-white/60", children: "/" }),
|
|
778
|
-
/* @__PURE__ */ e.jsx(
|
|
778
|
+
/* @__PURE__ */ e.jsx(I, { variant: "duration" })
|
|
779
779
|
] })
|
|
780
780
|
] }),
|
|
781
781
|
/* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-2", children: c && /* @__PURE__ */ e.jsx(
|
|
782
|
-
|
|
782
|
+
le,
|
|
783
783
|
{
|
|
784
|
-
metrics:
|
|
784
|
+
metrics: m,
|
|
785
785
|
className: "text-white/80"
|
|
786
786
|
}
|
|
787
787
|
) })
|
|
788
788
|
] })
|
|
789
789
|
] });
|
|
790
|
-
},
|
|
790
|
+
}, ue = ({
|
|
791
791
|
performanceMetrics: d = {},
|
|
792
792
|
preloadingStats: l = {},
|
|
793
793
|
playbackState: s = {},
|
|
@@ -797,9 +797,9 @@ const Y = function({
|
|
|
797
797
|
className: a,
|
|
798
798
|
position: i = "top-right",
|
|
799
799
|
defaultCollapsed: c = !1,
|
|
800
|
-
title:
|
|
800
|
+
title: m = "BaroiPlayer Debug Panel"
|
|
801
801
|
}) => {
|
|
802
|
-
const [u, w] = r.useState(c), [C, g] = r.useState("performance"), y =
|
|
802
|
+
const [u, w] = r.useState(c), [C, g] = r.useState("performance"), y = $(() => {
|
|
803
803
|
switch (i) {
|
|
804
804
|
case "top-left":
|
|
805
805
|
return "top-4 left-4";
|
|
@@ -927,7 +927,7 @@ const Y = function({
|
|
|
927
927
|
/* @__PURE__ */ e.jsx("span", { className: "text-cyan-400", children: "Saved:" }),
|
|
928
928
|
/* @__PURE__ */ e.jsx("span", { className: "ml-2 font-mono", children: h(l.totalSaved || 0) })
|
|
929
929
|
] })
|
|
930
|
-
] }) }),
|
|
930
|
+
] }) }), x = () => /* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 gap-2 text-xs", children: [
|
|
931
931
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
932
932
|
/* @__PURE__ */ e.jsx("span", { className: "text-green-400", children: "Level:" }),
|
|
933
933
|
/* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
|
|
@@ -965,7 +965,7 @@ const Y = function({
|
|
|
965
965
|
j
|
|
966
966
|
] }, M)) || /* @__PURE__ */ e.jsx("div", { className: "text-gray-400", children: "None" }) })
|
|
967
967
|
] }),
|
|
968
|
-
t.loadedPlugins && t.loadedPlugins.length > t.activePlugins?.length && /* @__PURE__ */ e.jsxs("div", { className: "mt-2", children: [
|
|
968
|
+
t.loadedPlugins && t.loadedPlugins.length > (t.activePlugins?.length ?? 0) && /* @__PURE__ */ e.jsxs("div", { className: "mt-2", children: [
|
|
969
969
|
/* @__PURE__ */ e.jsx("span", { className: "text-yellow-400", children: "Loaded (inactive):" }),
|
|
970
970
|
/* @__PURE__ */ e.jsx("div", { className: "ml-2 space-y-1 font-mono text-xs", children: t.loadedPlugins.filter((j) => !t.activePlugins?.includes(j)).map((j, M) => /* @__PURE__ */ e.jsxs("div", { className: "text-yellow-300", children: [
|
|
971
971
|
"• ",
|
|
@@ -987,7 +987,7 @@ const Y = function({
|
|
|
987
987
|
"button",
|
|
988
988
|
{
|
|
989
989
|
onClick: () => g(j.id),
|
|
990
|
-
className:
|
|
990
|
+
className: _(
|
|
991
991
|
"px-2 py-1 font-medium text-xs transition-colors",
|
|
992
992
|
C === j.id ? "border-blue-400 border-b text-blue-400" : "text-gray-400 hover:text-white"
|
|
993
993
|
),
|
|
@@ -1005,7 +1005,7 @@ const Y = function({
|
|
|
1005
1005
|
S()
|
|
1006
1006
|
] });
|
|
1007
1007
|
case "hls":
|
|
1008
|
-
return
|
|
1008
|
+
return x();
|
|
1009
1009
|
case "plugins":
|
|
1010
1010
|
return v();
|
|
1011
1011
|
case "debug":
|
|
@@ -1017,14 +1017,14 @@ const Y = function({
|
|
|
1017
1017
|
return process.env.NODE_ENV !== "development" ? null : /* @__PURE__ */ e.jsxs(
|
|
1018
1018
|
"div",
|
|
1019
1019
|
{
|
|
1020
|
-
className:
|
|
1020
|
+
className: _(
|
|
1021
1021
|
"fixed z-50 min-w-80 max-w-96 rounded-lg border border-gray-700 bg-black/90 p-3 font-mono text-white text-xs backdrop-blur-sm",
|
|
1022
1022
|
y,
|
|
1023
1023
|
a
|
|
1024
1024
|
),
|
|
1025
1025
|
children: [
|
|
1026
1026
|
/* @__PURE__ */ e.jsxs("div", { className: "mb-3 flex items-center justify-between", children: [
|
|
1027
|
-
/* @__PURE__ */ e.jsx("h3", { className: "font-bold text-blue-400 text-sm", children:
|
|
1027
|
+
/* @__PURE__ */ e.jsx("h3", { className: "font-bold text-blue-400 text-sm", children: m }),
|
|
1028
1028
|
/* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ e.jsx(
|
|
1029
1029
|
"button",
|
|
1030
1030
|
{
|
|
@@ -1056,18 +1056,18 @@ const Y = function({
|
|
|
1056
1056
|
);
|
|
1057
1057
|
};
|
|
1058
1058
|
export {
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1059
|
+
Z as C,
|
|
1060
|
+
ue as D,
|
|
1061
|
+
Y as E,
|
|
1062
|
+
q as P,
|
|
1063
|
+
W as Q,
|
|
1064
|
+
Q as S,
|
|
1065
|
+
J as a,
|
|
1066
|
+
ee as b,
|
|
1067
|
+
se as c,
|
|
1068
|
+
I as d,
|
|
1069
|
+
te as e,
|
|
1070
|
+
de as f,
|
|
1071
|
+
ie as g
|
|
1072
1072
|
};
|
|
1073
|
-
//# sourceMappingURL=enhanced-components-
|
|
1073
|
+
//# sourceMappingURL=enhanced-components-Da0TSvKe.js.map
|