@nadlowebagentur/capacitor-video-stream-player
v0.0.14
Published
Enable native video stream player
Downloads
45
Readme
@nadlowebagentur/capacitor-video-stream-player
Enable native video stream player
Install
npm install @nadlowebagentur/capacitor-video-stream-player
npx cap syncAPI
preload(...)toggleVolume()play()pause()close()switchAudioOutput()resetAudio()updateState()getSubtitlesTracks()setSubtitleTrack(...)getAudioTracks()setAudioTrack(...)- Interfaces
Interface for the VSPlayer Capacitor plugin.
preload(...)
preload(options: { url: string; acquisitionURL?: string | null; cert?: string | null; preferredQuality: number; isHLS: boolean; }) => Promise<void>| Param | Type |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| options | { url: string; acquisitionURL?: string | null; cert?: string | null; preferredQuality: number; isHLS: boolean; } |
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; } |
getAudioTracks()
getAudioTracks() => Promise<{ audio: AudioTrack[]; }>Returns: Promise<{ audio: AudioTrack[]; }>
setAudioTrack(...)
setAudioTrack(options: { uid: number | null; }) => Promise<void>| Param | Type |
| ------------- | ------------------------------------- |
| options | { uid: number | null; } |
Interfaces
SubtitlesTrack
| Prop | Type |
| ----------- | ------------------- |
| uid | number |
| title | string |
AudioTrack
| Prop | Type |
| ------------- | -------------------- |
| uid | number |
| title | string |
| current | boolean |
