MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / constructor

Method constructor

src/components/audioPlayer/index.js:5–22  ·  view source on GitHub ↗
(container)

Source from the content-addressed store, hash-verified

3
4export 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 = (

Callers

nothing calls this directly

Calls 1

initializeUIMethod · 0.95

Tested by

no test coverage detected