Video Player

Contents

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

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

Stuck on a Cordova issue?

Installation

Community Enterprise
ionic cordova plugin add https://github.com/moust/cordova-plugin-videoplayer.git npm install @ionic-native/video-player
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More   or   Contact Us
ionic activate-native-ee --key=YOURPRODUCTKEY ionic integrations add @ionic-native/video-player

Supported Platforms

  • Android

Usage

import { VideoPlayer } from '@ionic-native/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);
});