Releases: lhz516/react-h5-audio-player
Releases · lhz516/react-h5-audio-player
2.2.0
2.1.1
- Fix SSR error by removing DOM related variables in constructor
- Fix Chrome interaction element focus outline issue. Remove the focus indicator on mouse-focus for browsers
that do support :focus-visible
2.1.0
2.0.2
2.0.1
2.0.0
- Huge performance increase because of the use of
mousedown/move/up
events instead of dragging events - Added full accessibility supports, including keyboard events and screen reader supports
- Added props
showVolumeControl
- Display/hide volume control bar and mute button - Added props
showLoopControl
- Display/hide enable/disable loop button - Added props
showSkipControls
- Display/hide previous and next buttons - Added props
showJumpControls
- Display/hide rewind and forward buttons - Added props
onClickPrevious
- Handle events when click previous button - Added props
onClickNext
- Handle events when click next button - Added props
onPlayError
- Handle error that caused bythis.audio.play()
which won't be caught byonError
- Added props
progressJumpStep
- the jump step when clicking rewind/forward button or left/right arrow key - Added props
volumeJumpStep
- the jump step when pressing up/down arrow key
Breaking Changes
- Removed inline styles, please import
css
,less
orscss
manually - Removed props
hidePlayer
- Use parent logic to hide player - Removed props
onDragStart
,onDragMove
,onDragEnd
- V2 isn't using drag events anymore
2.0.0-beta.0
- V2 pre-release. Release notes will be in the official 2.0.0