Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 795 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 795 Bytes

#VideoPlayer plugin for Android Cordova 3.0

The video player allows you to display videos from your Android Cordova application. Based in https://github.com/macdonst/VideoPlayer for phonegap < 2.2 version.

This command fires an Intent to have your devices video player show the video.

#Adding the Plugin to your project

cordova plugin add https://github.com/raulduran/VideoPlayer.git

#Removing the Plugin to your project

cordova plugin rm com.phonegap.plugins.videoplayer

#Using the plugin

cordova.plugins.videoPlayer.play("http://path.to.my/video.mp4"); cordova.plugins.videoPlayer.play("file:///path/to/my/video.mp4"); cordova.plugins.videoPlayer.play("file:///android_asset/www/path/to/my/video.mp4"); cordova.plugins.videoPlayer.play("https://www.youtube.com/watch?v=en_sVVjWFKk");