From e441ff4b31b569798f9652210729e6b37afad52c Mon Sep 17 00:00:00 2001 From: Michael Wager Date: Tue, 24 Feb 2015 11:29:19 +0100 Subject: [PATCH] add command line install instruction to readme --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e68d970..b05efb2 100755 --- a/README.md +++ b/README.md @@ -6,13 +6,22 @@ This command fires an Intent to have your devices video player show the video. ## Adding the Plugin to your project ## +### Install using cordova ### + +To add this plugin to your cordova project, just execute the following command: + + $ cordova plugin add https://github.com/macdonst/VideoPlayer + + +### Install manually ### + Using this plugin requires [Android PhoneGap](https://github.com/apache/incubator-cordova-android). 1. To install the plugin, move www/video to your project's www folder and include a reference to it in your html file after phonegap.js. <script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript" charset="utf-8" src="video.js"></script> - + 2. Create a directory within your project called "src/com/phonegap/plugins/video" and move VideoPlayer.java into it. 3. In your res/xml/plugins.xml file add the following line: @@ -62,7 +71,7 @@ the directories in which they reside and in the code itself. No external contributions are allowed under licenses which are fundamentally incompatible with the MIT or BSD licenses that PhoneGap is distributed under. -The text of the MIT and BSD licenses is reproduced below. +The text of the MIT and BSD licenses is reproduced below. --- @@ -117,4 +126,4 @@ Copyright (c) <2011> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - +