Skip to content

@capgo/capacitor-jw-player

Playes videos from jwplayer.com.

Playes videos from jwplayer.com.

  • initialize - Initialize the JW Player.
  • play - Play a video.
  • pause - Pause the currently playing media.
  • resume - Resume the currently paused media.
MethodDescription
initializeInitialize the JW Player.
playPlay a video.
pausePause the currently playing media.
resumeResume the currently paused media.
stopStop the currently playing media.
seekToSeek to a specific position in the currently playing media.
setVolumeSet the volume level.
getPositionGet the current position in the media.
getStateGet the current player state.
setSpeedSet the playback speed.
setPlaylistIndexSet the current item in the playlist by index.
loadPlaylistLoad a playlist.
loadPlaylistWithItemsLoad a playlist with items.
getAudioTracksGet available audio tracks.
getCurrentAudioTrackGet the current audio track.
setCurrentAudioTrackSet the current audio track.
getCaptionsGet the available captions/subtitles.
getCurrentCaptionsGet the current captions/subtitles track.
setCurrentCaptionsSet the current captions/subtitles track.
currentPlaylistGet the current playlist.

This reference is synced from src/definitions.ts in capacitor-jw-player.