@capgo/capacitor-video-player
Capacitor plugin to play video in native player.
Overview
Section titled “Overview”Capacitor plugin to play video in native player.
Core Capabilities
Section titled “Core Capabilities”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.
Public API
Section titled “Public API”| Method | Description |
|---|---|
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. |
getDuration | Get the duration of the current video from a given playerId. |
getCurrentTime | Get the current time of the current video from a given playerId. |
setCurrentTime | Set the current time to seek the current video to from a given playerId. |
getVolume | Get the volume of the current video from a given playerId. |
setVolume | Set the volume of the current video to from a given playerId. |
getMuted | Get the muted of the current video from a given playerId. |
setMuted | Set the muted of the current video to from a given playerId. |
setRate | Set the rate of the current video from a given playerId. |
getRate | Get the rate of the current video from a given playerId. |
stopAllPlayers | Stop all players playing. |
showController | Show controller. |
isControllerIsFullyVisible | isControllerIsFullyVisible. |
exitPlayer | Exit player. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-video-player.