Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add command line install instruction to readme #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

&lt;script type="text/javascript" charset="utf-8" src="phonegap.js"&gt;&lt;/script&gt;<br/>
&lt;script type="text/javascript" charset="utf-8" src="video.js"&gt;&lt;/script&gt;

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:
Expand Down Expand Up @@ -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.

---

Expand Down Expand Up @@ -117,4 +126,4 @@ Copyright (c) <2011> <Nitobi Software Inc., et. al., >
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.