1.0.0 • Published 3 years ago
capacitor-player
Native Video Player for Capacitor. Play videos from URLs in fullscreen mode.
Install
npm install capacitor-player
npx cap sync
Example
import { Player } from 'capacitor-player';
await Player.play({
url: 'https://example.com/video.mp4'
});
Support
| Platform | Supported? |
|---|
| Android | ✅ |
| iOS | ✅ |
| Web | ❌ |
API
play(...)
play(options: VideoPlayerOptions) => Promise<void>
| Param | Type |
|---|
options | VideoPlayerOptions |
Interfaces
VideoPlayerOptions
| Prop | Type | Description |
|---|
url | string | The url of the video to play |