apm-react-audio-player 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -303,7 +303,7 @@ var ReactAudioPlayerInner = function ReactAudioPlayerInner(props) {
|
|
|
303
303
|
}, /*#__PURE__*/React__default.createElement("audio", {
|
|
304
304
|
ref: audioPlayerRef,
|
|
305
305
|
src: audioSrc,
|
|
306
|
-
preload: "
|
|
306
|
+
preload: "none",
|
|
307
307
|
onLoadedMetadata: onLoadedMetadata,
|
|
308
308
|
muted: isMuted
|
|
309
309
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -356,7 +356,8 @@ var ReactAudioPlayerInner = function ReactAudioPlayerInner(props) {
|
|
|
356
356
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
357
357
|
onClick: togglePlaying,
|
|
358
358
|
className: playBtnClass,
|
|
359
|
-
style: customStyles && customStyles.playPause
|
|
359
|
+
style: customStyles && customStyles.playPause,
|
|
360
|
+
id: "playbutton"
|
|
360
361
|
}, isPlaying ? /*#__PURE__*/React__default.createElement(Pause, null) : /*#__PURE__*/React__default.createElement(Play, null))), !isLive && /*#__PURE__*/React__default.createElement("div", {
|
|
361
362
|
className: "player-backward-forward-controls"
|
|
362
363
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
@@ -408,16 +409,16 @@ var ReactAudioPlayer = function ReactAudioPlayer(props) {
|
|
|
408
409
|
|
|
409
410
|
// hooks
|
|
410
411
|
var _useAudioPlayer = useAudioPlayer(audioPlayerRef, progressBarRef),
|
|
412
|
+
isPlaying = _useAudioPlayer.isPlaying,
|
|
413
|
+
currentTime = _useAudioPlayer.currentTime,
|
|
414
|
+
duration = _useAudioPlayer.duration,
|
|
415
|
+
isMuted = _useAudioPlayer.isMuted,
|
|
411
416
|
onLoadedMetadata = _useAudioPlayer.onLoadedMetadata,
|
|
412
417
|
calculateTime = _useAudioPlayer.calculateTime,
|
|
413
418
|
togglePlaying = _useAudioPlayer.togglePlaying,
|
|
414
419
|
changePlayerCurrentTime = _useAudioPlayer.changePlayerCurrentTime,
|
|
415
|
-
isPlaying = _useAudioPlayer.isPlaying,
|
|
416
|
-
currentTime = _useAudioPlayer.currentTime,
|
|
417
|
-
duration = _useAudioPlayer.duration,
|
|
418
420
|
volumeControl = _useAudioPlayer.volumeControl,
|
|
419
421
|
toggleMute = _useAudioPlayer.toggleMute,
|
|
420
|
-
isMuted = _useAudioPlayer.isMuted,
|
|
421
422
|
formatCalculateTime = _useAudioPlayer.formatCalculateTime,
|
|
422
423
|
rewindControl = _useAudioPlayer.rewindControl,
|
|
423
424
|
forwardControl = _useAudioPlayer.forwardControl;
|