Skip to content

Releases: lhz516/react-h5-audio-player

3.8.0

19 Nov 06:14
Compare
Choose a tag to compare
  • 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

05 Nov 03:53
Compare
Choose a tag to compare
  • Fixed the playing and paused classes flipped issue #132 @ptmkenny

3.7.3

03 Nov 05:12
Compare
Choose a tag to compare

Added new classNames for overwriting styles based on audio status #128 #131 @ptmkenny

className Description
rhap_loop--on Loop is on
rhap_loop--off Loop is off
rhap_play-status--paused Paused status
rhap_play-status--playing Playing status

See more at README

3.7.1

23 May 02:13
Compare
Choose a tag to compare
  • Fix the console error for preventDefault on TouchMovies #113
  • Clear scss(vendorPrefix) warning for user-select: none; #111

3.7.0

04 Apr 08:00
Compare
Choose a tag to compare
  • 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 is 0 or 1. Setting audio.currentTime only works when readyState is greater then 1. Especially in iOS Safari, the audio won't be download even if preload is set. #105
  • Added prop hasDefaultKeyBindings which defaults to true. #108 If you don't need the default keyboard shotcuts, please change it to false. The custom key bindings can be added to the containers ref, for example:
this.playerRef.current.container.current.addEventListener('keydown', ...)

3.6.2

20 Mar 17:40
Compare
Choose a tag to compare
  • Fix audio play error on IE 11 by removing the usage of Promise #98

3.6.1

15 Feb 07:09
Compare
Choose a tag to compare
  • Fix re-positioning currentTime and duration #94

3.6.0

03 Feb 07:50
Compare
Choose a tag to compare
  • Update dependencies and resolve module audit alerts
  • Add react and react-dom v17 to peerDependencies. 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

3.5.0

23 Nov 01:14
Compare
Choose a tag to compare
  • Added prop showFilledVolume which defaults to false #79 @l0gicgate

3.4.1

05 Sep 04:41
Compare
Choose a tag to compare
  • Fixed a bug that used to cause the progress bars broken when horizontally scrolling the page #61