Navigation Menu

Skip to content

thechaithanya/cordova-phonegap_youtube_player_api_android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cordova / Phonegap YouTube Android Player API

By Remco Beugels (RemcoB00)

Installation

  • Download the files
  • Place the youtube.js file in your www folder (in the assets folder)
  • Merge the com folder (in the src folder) with your com folder
  • Register the plugin by adding this line to the config.xml file
<plugin name="YouTube" value="com.remcob00.plugins.youtube.YouTube"/>
  • Click here and download the YouTube Android Player API on Google's site
  • Place the YouTubeAndroidPlayerApi.jar file in your libs folder
  • Register your app and get a api key (here the instructions from Google)
  • Place your api key in the YouTube.java file in com.remcob00.plugins.youtube at line 38

How to use

  • Add the following line to the head of your html file
<script type="text/javascript" charset="utf-8" src="youtube.js"></script>
  • To view the video player use this code and add the YouTube video id:
window.plugins.youtube.show({
  videoid: "THE_VIDEO"},
  function() {},
  function() {}
);

Coming soon

  • Playlist support
  • Auto playlist suppoty

Release notes

29-12-12

  • First release by Remco Beugels (RemcoB00)

License

Copyright (C) 2012 Remco Beugels

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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.

About

Cordova / Phonegap plugin for the YouTube Player API for Android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published