https://github.com/tommus/youtube-android-player-api
The API client library that interacts with a service that is distributed as a part of the YouTube application.
https://github.com/tommus/youtube-android-player-api
android library video youtube youtube-api
Last synced: 9 months ago
JSON representation
The API client library that interacts with a service that is distributed as a part of the YouTube application.
- Host: GitHub
- URL: https://github.com/tommus/youtube-android-player-api
- Owner: tommus
- License: apache-2.0
- Created: 2016-11-25T17:31:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-02T15:04:51.000Z (over 7 years ago)
- Last Synced: 2025-10-11T12:06:46.435Z (9 months ago)
- Topics: android, library, video, youtube, youtube-api
- Size: 153 KB
- Stars: 8
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# YouTube Android Player API
The YouTube Android Player API enables you to incorporate video playback functionality into your Android applications.
The API defines methods for loading and playing YouTube videos (and playlists) and for customizing and controlling the
video playback experience.
Using the API, you can load or cue videos into a player view embedded in your application's UI. You can then control
playback programmatically. For example, you can play, pause, or seek to a specific point in the currently loaded video.
You can also register event listeners to get callbacks for certain events, such as the player loading a video or the
player state changing. Finally, the API has helper functionality to support orientation changes as well as transitions
to fullscreen playback.
## Purpose
As the library might be added to the project by pasting the `jar` file into the `libs` directory, many people prefer to
use `Gradle.`
This project makes adding `YouTube Android Player API` into your project in two easy steps.
## Getting started
Add Jitpack repository address to the project `build.gradle`:
```groovy
allprojects {
repositories {
/* (...) */
maven { url "https://jitpack.io" }
}
}
```
Make sure that you have the ```$yapa_version``` defined in your gradle file at the project level:
```groovy
ext.yapa_version = "1.2.3"
```
Add dependency to the project:
```groovy
dependencies {
compile "com.github.tommus:youtube-android-player-api:$versions.yapa_version"
}
```
## Library website
Read more about the library at Google Developers website [here](https://developers.google.com/youtube/android/player/).