|
@@ -37,7 +37,7 @@ class AudioPlayer extends React.Component {
|
37
|
37
|
});
|
38
|
38
|
this.player.onpause = () =>
|
39
|
39
|
this.setState({ isPlaying: false, isLoading: false });
|
40
|
|
- this.player.onplay = () => this.setState({ isLoading: true });
|
|
40
|
+ // this.player.onplay = () => this.setState({ isLoading: true });
|
41
|
41
|
this.player.ontimeupdate = event =>
|
42
|
42
|
this.setState({ currentDuration: event.target.currentTime });
|
43
|
43
|
this.player.src = src;
|
|
@@ -95,7 +95,9 @@ class AudioPlayer extends React.Component {
|
95
|
95
|
let playIconElem;
|
96
|
96
|
|
97
|
97
|
if (isLoading) {
|
98
|
|
- playIconElem = <img src={iconLoading} alt="iconLoading" />;
|
|
98
|
+ playIconElem = (
|
|
99
|
+ <img className="icon-loading" src={iconLoading} alt="iconLoading" />
|
|
100
|
+ );
|
99
|
101
|
} else if (isPlaying) {
|
100
|
102
|
playIconElem = <Icon className="pause" type="pause" />;
|
101
|
103
|
} else {
|