Releases: lhz516/react-h5-audio-player
Releases · lhz516/react-h5-audio-player
3.4.0
Support Media Source Extensions (MSE) and Encrypted Media Extensions (EME)
You can use Media Source Extensions and Encrypted Media Extensions with this player. You need to provide the complete duration, and also a onSeek and onEncrypted callbacks. The logic for feeding the audio buffer and providing the decryption keys (if using encryption) must be set in the consumer side. The player does not provide that logic. Check the StoryBook example to understand better how to use.
Thanks to @SergioCrisostomo for working on this feature! #66
3.3.0
- Added new props
timeFormat
that can be'auto' | 'mm:ss' | 'hh:mm:ss'
and defaults to'auto'
. #59 - Fixed a console error caused by internal
audio.play()
failure. Now all play error can be caught byonPlayError
#60 - Fixed a bug which used to cause
autoPlayAfterSrcChange
not work when settingsrc
from empty string to a valid url #57 - Fixed a time display issue. When
audio.currentTime
oraudio.duration
isNaN
, previously it fell back to00:00
, now it fell back todefaultCurrentTime
ordefaultDuration
props
3.2.0
3.1.0
3.0.6
- Prevent right click progressbar which used to cause a bug #39 @JeffreyCA
- Remove
max-width: 300px
to support edge case layouts #37 @JeffreyCA