ensemble-audio-player-plugin
v0.2.0
Published
Playing audio on ios
Downloads
5
Maintainers
Readme
ensemble-audio-player-plugin
Playing audio on ios
Install
npm install ensemble-audio-player-plugin
npx cap sync
API
echo(...)
startQueue(...)
removeQueue()
addListener(string, ...)
playQueueItem(...)
updateQueueItem(...)
getCurrAudioRoute()
setZoomScale(...)
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
startQueue(...)
startQueue(options: { queue: any[]; currentIndex: number; loopMode: boolean; }) => Promise<any>
| Param | Type |
| ------------- | ----------------------------------------------------------------------- |
| options
| { queue: any[]; currentIndex: number; loopMode: boolean; } |
Returns: Promise<any>
removeQueue()
removeQueue() => Promise<any>
Returns: Promise<any>
addListener(string, ...)
addListener(arg0: string, arg1: (info: any) => void) => any
| Param | Type |
| ---------- | ----------------------------------- |
| arg0
| string |
| arg1
| (info: any) => void |
Returns: any
playQueueItem(...)
playQueueItem(options: { currentTime: number; videoPlaying: boolean; audioQueueIndex: number; playQueueItem: { title: string; url: string; artwork: string; artist: string; }; }) => Promise<any>
| Param | Type |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| options
| { currentTime: number; videoPlaying: boolean; audioQueueIndex: number; playQueueItem: { title: string; url: string; artwork: string; artist: string; }; } |
Returns: Promise<any>
updateQueueItem(...)
updateQueueItem(options: { audioQueueIndex: number; playQueueItem: { title: string; url: string; artwork: string; artist: string; }; }) => Promise<any>
| Param | Type |
| ------------- | -------------------------------------------------------------------------------------------------------------------------- |
| options
| { audioQueueIndex: number; playQueueItem: { title: string; url: string; artwork: string; artist: string; }; } |
Returns: Promise<any>
getCurrAudioRoute()
getCurrAudioRoute() => Promise<{ headphonesConnected: boolean; outLatency: number; }>
Returns: Promise<{ headphonesConnected: boolean; outLatency: number; }>
setZoomScale(...)
setZoomScale(options: { zoomScale: number; }) => Promise<any>
| Param | Type |
| ------------- | ----------------------------------- |
| options
| { zoomScale: number; } |
Returns: Promise<any>