- export declare class AudioPlayer {
- private static instance;
- private audio;
- private constructor();
- static getInstance(): AudioPlayer;
- setAudioEvent(event: any, func: any): void;
- get duration(): number;
- get src(): string;
- stop(): void;
- play(src: string): Promise<void>;
- }
|