Releases: lhz516/react-h5-audio-player
Releases · lhz516/react-h5-audio-player
3.8.0
- New prop -
i18nAriaLabels
- Added i18n support to aria-labels. The default aria-labels can be overwritten by passing i18nAriaLabels into the component
3.7.4
3.7.3
3.7.1
3.7.0
- Fixed an IE 11 audio play bug when the audio reaches the end #104
- Added prop
onChangeCurrentTimeError
which is called when dragging progress bar or clicking rewind/forward while audio.readyState is0
or1
. Settingaudio.currentTime
only works whenreadyState
is greater then1
. Especially in iOS Safari, the audio won't be download even ifpreload
is set. #105 - Added prop
hasDefaultKeyBindings
which defaults totrue
. #108 If you don't need the default keyboard shotcuts, please change it tofalse
. The custom key bindings can be added to the containersref
, for example:
this.playerRef.current.container.current.addEventListener('keydown', ...)
3.6.2
3.6.1
3.6.0
- Update dependencies and resolve module audit alerts
- Add
react
andreact-dom
v17 topeerDependencies
. Now it's:
"peerDependencies": {
"react": "^16.3.0 || ^17.0.0",
"react-dom": "^16.3.0 || ^17.0.0"
},
- Add props:
onSeeking
,onSeeked
,onEmptied
,onLoadStart
,onLoadedMetaData
,onLoadedData
,onPlaying
,onSuspend
,onWaiting