Exctract Audio from Video file
npm install capacitor-audio-from-video
npx cap sync
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(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(eventName: 'compressProgress', listenerFunc: (event: { progress: number; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Param | Type |
---|---|
eventName |
'compressProgress' |
listenerFunc |
(event: { progress: number; }) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Prop | Type |
---|---|
remove |
() => Promise<void> |