feat: add animated image and audio player support

This commit is contained in:
hibna
2026-02-14 12:54:08 +03:00
parent 39406822ae
commit ef39d20b43
16 changed files with 1505 additions and 54 deletions
+16
View File
@@ -7,6 +7,22 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
## [Unreleased]
## [3.2.0] - 2026-02-14
### Added
- Added animated image support to `VideoPlayer` with auto-detection for `.gif`, `.webp`, `.apng`, and `.avif` sources.
- Added `mediaType` prop to `VideoPlayer` (`'auto' | 'video' | 'animated-image'`) for explicit media mode control.
- Added new `AudioPlayer` component with custom controls, keyboard shortcuts, theme support, slots, and imperative ref handle.
- Added `mediaSource` utilities: `detectPlayerMediaType`, `isAnimatedImageSource`, and `isAudioSource`.
- Added automated tests for animated image mode and the new audio player.
### Changed
- Updated public exports to include `AudioPlayer`, new media detection utilities, and new type exports (`AudioPlayerProps`, `AudioPlayerHandle`, `VideoMediaType`, `VideoMediaTypeInput`).
- Updated README and DOCUMENTATION for animated image and audio playback usage.
- Bumped package version to `3.2.0`.
## [3.1.2] - 2026-02-13
### Changed