Enable native video stream player
npm install @nadlowebagentur/capacitor-video-stream-player
npx cap sync
preload(...)
toggleVolume()
play()
pause()
close()
switchAudioOutput()
resetAudio()
updateState()
getSubtitlesTracks()
setSubtitleTrack(...)
- Interfaces
Interface for the VSPlayer Capacitor plugin.
preload(options: { url: string; acquisitionURL?: string | null; cert?: string | null; }) => Promise<void>
Param | Type |
---|---|
options |
{ url: string; acquisitionURL?: string | null; cert?: string | null; } |
toggleVolume() => Promise<void>
play() => Promise<void>
pause() => Promise<void>
close() => Promise<void>
switchAudioOutput() => Promise<void>
resetAudio() => Promise<void>
updateState() => Promise<void>
getSubtitlesTracks() => Promise<{ subtitles: SubtitlesTrack[]; }>
Returns: Promise<{ subtitles: SubtitlesTrack[]; }>
setSubtitleTrack(options: { uid: number | null; }) => Promise<void>
Param | Type |
---|---|
options |
{ uid: number | null; } |
Prop | Type |
---|---|
uid |
number |
title |
string |