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?
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
- Capacitor
- Cordova
- Enterprise
$ npm install https://github.com/moust/cordova-plugin-videoplayer.git
$ npm install @awesome-cordova-plugins/video-player
$ ionic cap sync
$ ionic cordova plugin add https://github.com/moust/cordova-plugin-videoplayer.git
$ npm install @awesome-cordova-plugins/video-player
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Β Learn More or if you're interested in an enterprise version of this plugin Contact Us
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);
});