capacitor-audio-from-video
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i capacitor-audio-from-video

Weekly Downloads

1

Version

1.1.6

License

MIT

Unpacked Size

36 kB

Total Files

48

Last publish

Collaborators

  • bazuka5801