Skip to content

Releases: lhz516/react-h5-audio-player

3.4.0

02 Sep 03:49
Compare
Choose a tag to compare

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

12 Aug 05:20
Compare
Choose a tag to compare
  • 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 by onPlayError #60
  • Fixed a bug which used to cause autoPlayAfterSrcChange not work when setting src from empty string to a valid url #57
  • Fixed a time display issue. When audio.currentTime or audio.duration is NaN, previously it fell back to 00:00, now it fell back to defaultCurrentTime or defaultDuration props

3.2.0

16 Jun 08:59
Compare
Choose a tag to compare
  • Added onVolumeChange Props #50
  • Fixed svg style when the package is used with Bootstrap #51
  • Added UMD support (react-h5-audio-player/lib/react-h5-audio-player.min.js)
  • Added CodePen link in README https://codepen.io/lhz516/pen/dyGpmgP

3.1.0

05 May 03:42
Compare
Choose a tag to compare
  • Added props progressJumpSteps to deprecate the existing progressJumpStep #41 @bleuarg
progressJumpSteps?: {
    backward?: number
    forward?: number
  }

(progressJumpStep will still be supported until v4.0.0)

3.0.6

28 Apr 22:56
Compare
Choose a tag to compare
  • Prevent right click progressbar which used to cause a bug #39 @JeffreyCA
  • Remove max-width: 300px to support edge case layouts #37 @JeffreyCA

3.0.5

14 Apr 22:13
Compare
Choose a tag to compare

Add type="button" to all button tags in case the player is inside a form #34 @johnfrommartin

3.0.4

12 Apr 18:19
Compare
Choose a tag to compare

3.0.3

11 Apr 22:11
Compare
Choose a tag to compare
  • Fix a bug that used to update the component after it's unmounted #33 @moh3ni

3.0.2

30 Mar 07:26
Compare
Choose a tag to compare

3.0.1

24 Mar 01:19
Compare
Choose a tag to compare
  • Fix a typo: Props ShowFilledProgress -> showFilledProgress, and add it to README

Note: Since this API wasn't mentioned in README, so the change is not considered breaking change, unless you used it anyways.