capacitor-player
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i capacitor-player

Weekly Downloads

7

Version

1.0.0

License

MIT

Unpacked Size

20.2 kB

Total Files

27

Last publish

Collaborators

  • felipemarcos