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