1.1.8 • Published 5 months ago
capacitor-audio-from-video v1.1.8
capacitor-audio-from-video
Exctract Audio from Video file
Install
npm install capacitor-audio-from-video
npx cap sync
API
extractAudio(...)
extractAudio(options: { path: string; outputPath: string; includeData?: boolean; }) => Promise<{ path: string; dataUrl?: string; }>
Param | Type |
---|---|
options | { path: string; outputPath: string; includeData?: boolean; } |
Returns: Promise<{ path: string; dataUrl?: string; }>
compressVideo(...)
compressVideo(options: { path: string; outputPath: string; width: number; height: number; bitrate: number; }) => Promise<{ path: string; }>
Param | Type |
---|---|
options | { path: string; outputPath: string; width: number; height: number; bitrate: number; } |
Returns: Promise<{ path: string; }>
addListener('compressProgress', ...)
addListener(eventName: 'compressProgress', listenerFunc: (event: { progress: number; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Param | Type |
---|---|
eventName | 'compressProgress' |
listenerFunc | (event: { progress: number; }) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Interfaces
PluginListenerHandle
Prop | Type |
---|---|
remove | () => Promise<void> |