mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
30 lines
651 B
JavaScript
30 lines
651 B
JavaScript
/*
|
|
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
|
|
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
|
|
*
|
|
* Copyright (c) 2005-2010, Nitobi Software Inc.
|
|
* Copyright (c) 2011, IBM Corporation
|
|
*/
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
function VideoPlayer() {
|
|
};
|
|
|
|
/**
|
|
* Starts the video player intent
|
|
*
|
|
* @param url The url to play
|
|
*/
|
|
VideoPlayer.prototype.play = function(url) {
|
|
PhoneGap.exec(null, null, "VideoPlayer", "playVideo", [url]);
|
|
};
|
|
|
|
/**
|
|
* Load VideoPlayer
|
|
*/
|
|
PhoneGap.addConstructor(function() {
|
|
PhoneGap.addPlugin("videoPlayer", new VideoPlayer());
|
|
});
|