Android Youtube 播放器活动。只需传递一个 URL 即可在新活动中播放 Youtube 视频。它支持屏幕方向、媒体音量控制等。
Android Youtube 播放器活动。只需传递一个 URL 即可在新活动中播放 Youtube 视频。它支持屏幕方向、媒体音量控制等。
Simply pass an url to play youtube video in new activity. It supports screen orientation, media volume control and etc.
You can download demo movie file here : demo.mov
It's also on Youtube:
You can download the latest sample APK from this repo here: sample-release.apk
It's also on Google Play:
Having the sample project installed is a good way to be notified of new releases.
Easily reference the library in your Android projects using this dependency in your module's build.gradle file:
dependencies {
compile 'com.thefinestartist:ytpa:1.2.1'
}It supports Android API 7+.
Orientation Support
Media Volume Support
Video Play Error Support
Animation Support
Status Bar Support
…This util helps to retrieve youtube video id from youtube url or vice versa. Reference
String vidoeId = YouTubeUrlParser.getVideoId(videoUrl);
String vidoeUrl = YouTubeUrlParser.getVideoUrl(videoId);This util helps to open Youtube App and play specific video.
YouTubeApp.startVideo(context, videoId);This util returns Youtube thumbnail image url.
YouTubeThumbnail.getUrlFromVideoId(videoId, Quality.HIGH);…暂无开放 Issues,或尚未同步最近议题。