capacitor-useful-audio
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.
Install
npm install capacitor-useful-audio
npx cap sync
API
play64(...)
play64(options: { base64: string; }) => Promise<any>
Param | Type |
---|---|
options |
{ base64: string; } |
Returns: Promise<any>
stop()
stop() => Promise<any>
Returns: Promise<any>