A very basic and probably in much need of attention Capacitor plugin for playing remote audio files in Android. iOS not implemented as wasn't required at time of writing.
npm install capacitor-plugin-remote-audio
npx cap sync
setOrientation(...)
getMediaInfo(...)
play(...)
pause()
stop()
seek(...)
getCurrentPosition()
checkOrRequestStoragePermissions()
downloadMedia(...)
cancelDownload(...)
deleteDownload(...)
deleteAllDownloads(...)
showRateApp()
- Enums
setOrientation(options: { orientation: OrientationChoice; }) => any
Param | Type |
---|---|
options |
{ orientation: OrientationChoice; } |
Returns: any
getMediaInfo(options: { title: string; url: string; }) => any
Param | Type |
---|---|
options |
{ title: string; url: string; } |
Returns: any
play(options: { url: string; }) => any
Param | Type |
---|---|
options |
{ url: string; } |
Returns: any
pause() => any
Returns: any
stop() => any
Returns: any
seek(options: { milliseconds: number; }) => any
Param | Type |
---|---|
options |
{ milliseconds: number; } |
Returns: any
getCurrentPosition() => any
Returns: any
checkOrRequestStoragePermissions() => any
Returns: any
downloadMedia(options: { id: string; url: string; folderName: string; }) => any
Param | Type |
---|---|
options |
{ id: string; url: string; folderName: string; } |
Returns: any
cancelDownload(options: { id: string; folderName: string; }) => any
Param | Type |
---|---|
options |
{ id: string; folderName: string; } |
Returns: any
deleteDownload(options: { id: string; folderName: string; }) => any
Param | Type |
---|---|
options |
{ id: string; folderName: string; } |
Returns: any
deleteAllDownloads(options: { folderName: string; }) => any
Param | Type |
---|---|
options |
{ folderName: string; } |
Returns: any
showRateApp() => any
Returns: any
Members | Value |
---|---|
Unlocked |
"unlocked" |
Portrait |
"portrait" |
Landscape |
"landscape" |