feat: add animated image and audio player support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user