Passer au contenu

@capgo/capacitor-video-player

Capacitor plugin to play video in native player.

Capacitor plugin to play video in native player.

  • initPlayer - Initialize a video player.
  • isPlaying - Return if a given playerId is playing.
  • play - Play the current video from a given playerId.
  • pause - Pause the current video from a given playerId.
MethodDescription
initPlayerInitialize a video player.
isPlayingReturn if a given playerId is playing.
playPlay the current video from a given playerId.
pausePause the current video from a given playerId.
getDurationGet the duration of the current video from a given playerId.
getCurrentTimeGet the current time of the current video from a given playerId.
setCurrentTimeSet the current time to seek the current video to from a given playerId.
getVolumeGet the volume of the current video from a given playerId.
setVolumeSet the volume of the current video to from a given playerId.
getMutedGet the muted of the current video from a given playerId.
setMutedSet the muted of the current video to from a given playerId.
setRateSet the rate of the current video from a given playerId.
getRateGet the rate of the current video from a given playerId.
stopAllPlayersStop all players playing.
showControllerShow controller.
isControllerIsFullyVisibleisControllerIsFullyVisible.
exitPlayerExit player.

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