| 22 | } |
| 23 | |
| 24 | initializeUI() { |
| 25 | const audioPlayer = ( |
| 26 | <div className="audio-player"> |
| 27 | <button |
| 28 | ref={this.elements.playBtn} |
| 29 | className="play-btn" |
| 30 | ariaLabel="Play/Pause" |
| 31 | > |
| 32 | <span ref={this.elements.playIcon} className="icon play_arrow"></span> |
| 33 | </button> |
| 34 | |
| 35 | <div ref={this.elements.timeline} className="timeline"> |
| 36 | <div ref={this.elements.progress} className="progress"></div> |
| 37 | <div |
| 38 | ref={this.elements.progressHandle} |
| 39 | className="progress-handle" |
| 40 | ></div> |
| 41 | </div> |
| 42 | |
| 43 | <div ref={this.elements.timeDisplay} className="time"> |
| 44 | 0:00 |
| 45 | </div> |
| 46 | |
| 47 | <div className="volume-control"> |
| 48 | <button |
| 49 | ref={this.elements.volumeBtn} |
| 50 | className="volume-btn" |
| 51 | ariaLabel="Volume" |
| 52 | ></button> |