(container)
| 3 | |
| 4 | export default class AudioPlayer { |
| 5 | constructor(container) { |
| 6 | this.container = container; |
| 7 | this.audio = new Audio(); |
| 8 | this.isPlaying = false; |
| 9 | this.elements = { |
| 10 | playBtn: Ref(), |
| 11 | playIcon: Ref(), |
| 12 | timeline: Ref(), |
| 13 | progress: Ref(), |
| 14 | progressHandle: Ref(), |
| 15 | timeDisplay: Ref(), |
| 16 | duration: Ref(), |
| 17 | volumeBtn: Ref(), |
| 18 | }; |
| 19 | this.initializeUI(); |
| 20 | this.initializeEvents(); |
| 21 | this.cleanup = this.cleanup.bind(this); |
| 22 | } |
| 23 | |
| 24 | initializeUI() { |
| 25 | const audioPlayer = ( |
nothing calls this directly
no test coverage detected