@capgo/capacitor-jw-player
Playes videos from jwplayer.com.
Overview
Section titled “Overview”Playes videos from jwplayer.com.
Core Capabilities
Section titled “Core Capabilities”initialize- Initialize the JW Player.play- Play a video.pause- Pause the currently playing media.resume- Resume the currently paused media.
Public API
Section titled “Public API”| Method | Description |
|---|---|
initialize | Initialize the JW Player. |
play | Play a video. |
pause | Pause the currently playing media. |
resume | Resume the currently paused media. |
stop | Stop the currently playing media. |
seekTo | Seek to a specific position in the currently playing media. |
setVolume | Set the volume level. |
getPosition | Get the current position in the media. |
getState | Get the current player state. |
setSpeed | Set the playback speed. |
setPlaylistIndex | Set the current item in the playlist by index. |
loadPlaylist | Load a playlist. |
loadPlaylistWithItems | Load a playlist with items. |
getAudioTracks | Get available audio tracks. |
getCurrentAudioTrack | Get the current audio track. |
setCurrentAudioTrack | Set the current audio track. |
getCaptions | Get the available captions/subtitles. |
getCurrentCaptions | Get the current captions/subtitles track. |
setCurrentCaptions | Set the current captions/subtitles track. |
currentPlaylist | Get the current playlist. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-jw-player.