An audio plugin for capacitor that is actually useful, support playing and audio chunk via base64 and returning a resolved promise when it's complete. Also supports stopping the audio playback mid-stream.
npm install capacitor-useful-audio
npx cap sync
play64(options: { base64: string; }) => Promise<any>
Param | Type |
---|---|
options |
{ base64: string; } |
Returns: Promise<any>
stop() => Promise<any>
Returns: Promise<any>