Commit Graph

8 Commits

Author SHA1 Message Date
hibna 58a405d895 feat: add configurable props for DX improvements
- Configurable keyboard shortcuts (seekSmall, seekLarge, volumeStep, disabled keys)
- Configurable touch gestures (maxSeekSeconds, maxVolumeChange, doubleTapSeekSeconds)
- Configurable auto-hide timeout via controlsAutoHideDelay prop
- Configurable playback rates via playbackRates prop
- Aspect ratio support (16:9, 4:3, 21:9, 1:1, 9:16, custom)
- Extended theme system (fontFamily, borderRadius, overlayOpacity, controlsBackground, etc.)
- Custom translations support via translations prop
- Children/slot system (children, controlsLeftExtra, controlsRightExtra)
- Ref forwarding with VideoPlayerHandle imperative API
- Analytics events (onFirstPlay, onBufferStart, onBufferEnd, onQualityChange)
- iOS Safari volume slider auto-hiding
- SSR guards for feature detection utilities
- prefers-reduced-motion CSS media query support

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 19:23:54 +03:00
hibna fcd2a14a05 feat: apply phase1 DX cleanup for private registry 2026-02-12 18:27:50 +03:00
hibna 52ca1ef6c2 Add live broadcast detection and UI indicator
Introduces isLiveBroadcast to VideoState and PlayerContext to detect live streams (duration is Infinity or 0). Updates ControlsLayer to show a 'LIVE' badge and hide progress/time for live broadcasts. Adjusts VideoElement to set and update isLiveBroadcast on metadata and duration changes. Adds related CSS for the live indicator and improves ESLint config for unused vars.
2025-11-04 06:52:24 +03:00
hibna bad1cc6ca0 Add i18n, tests, and update documentation
Introduces internationalization (i18n) support with English and Turkish, adds unit tests and test setup with Vitest and React Testing Library, and updates documentation including README and changelog. Removes legacy publishing and usage guides, refactors components to use translation system, and updates build and test scripts in package.json. Also adds new utility modules for HLS and CORS, and improves PlayerContext and SettingsMenu for language support.
2025-10-29 13:10:07 +03:00
Mert Uyanık 002ec26b30 feat: add resolution selection to settings 2025-10-29 09:45:02 +03:00
Mert Uyanık 3ccdd55bdf Fix TypeScript ref typings and lint errors 2025-10-29 09:32:44 +03:00
Mert Uyanık 400bf899aa Fix control visibility and stabilize HLS loading 2025-10-29 07:58:50 +03:00
hibna b57b24d051 Initial commit: modern React video player library
Add all source files for a feature-rich, reusable video player built with React, TypeScript, and Vite. Includes core components, context, hooks, utilities, styles, demo app, and configuration files.
2025-10-29 07:49:06 +03:00