1.0.6 • Published 2 years ago

capacitor-plugin-mediaplayer v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

capacitor-plugin-mediaplayer

Mediaplayer plugin for Ionic Capacitor

Install

npm install capacitor-plugin-mediaplayer
npx cap sync

API

play(...)

play(options: { title: string; audio: string; cover: string; isPlaying: string; streaming: string; playbackPosition: string; duration: string; }) => void
ParamType
options{ title: string; audio: string; cover: string; isPlaying: string; streaming: string; playbackPosition: string; duration: string; }

pause()

pause() => void

resume()

resume() => void

seek(...)

seek(options: { seekTo: string; }) => void
ParamType
options{ seekTo: string; }

speed(...)

speed(options: { value: string; }) => void
ParamType
options{ value: string; }

stop()

stop() => void

current()

current() => Promise<{ state: string; position: string; duration: string; url: string; }>

Returns: Promise<{ state: string; position: string; duration: string; url: string; }>


addListener(string, ...)

addListener(event: string, callback: (info: any) => void) => PluginListenerHandle
ParamType
eventstring
callback(info: any) => void

Returns: PluginListenerHandle


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago