メインコンテンツまでスキップ
Version: v6

Video Player

A Cordova plugin that simply allows you to immediately play a video in fullscreen mode.

Requires Cordova plugin: com.moust.cordova.videoplayer. For more info, please see the VideoPlayer plugin docs.

https://github.com/moust/cordova-plugin-videoplayer

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation

$ npm install https://github.com/moust/cordova-plugin-videoplayer.git 
$ npm install @awesome-cordova-plugins/video-player
$ ionic cap sync

Supported Platforms

  • Android

Usage

React

Learn more about using Ionic Native components in React

Angular

import { VideoPlayer } from '@awesome-cordova-plugins/video-player/ngx';

constructor(private videoPlayer: VideoPlayer) { }

...

// Playing a video.
this.videoPlayer.play('file:///android_asset/www/movie.mp4').then(() => {
console.log('video completed');
}).catch(err => {
console.log(err);
});