YuuPlayer 基于webview没有任何依赖的Android Youtube Player库

Youtube播放器没有任何依赖和没有SDK,基于webview。 控制视频并以编程方式获取视频信息。

Android 视频/音频播放器

访问GitHub主页

共128Star

详细介绍

YuuPlayer

Release Android Arsenal

Youtube Player without any dependency and without SDK, webview based. Control video and get video information programatically.

How to use

Add it to your build.gradle with:

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

and:

dependencies {
    compile 'com.github.agusibrahim:YuuPlayer:1.2'
}

Basic Example

Add in your layout

<id.agusibrahim.yuuplayer.YuuPlayer
		android:layout_width="match_parent"
		android:layout_height="250dp"
		app:video_id="YOUTUBE-VIDEO-ID"
		app:autoplay="false"
		app:video_quality="small"
		android:id="@+id/mainYuuPlayer"/>

or Play with full screen

Intent inten=new Intent(context, YuuPlayerFullscreen.class);
inten.putExtra(YuuPlayerFullscreen.PARAM_VIDEO_ID, "eRsGyueVLvQ");
inten.putExtra(YuuPlayerFullscreen.PARAM_VIDEO_QUALITY, "small");
startActivity(inten);

For more details about API, check example https://github.com/agusibrahim/YuuPlayer/tree/master/app

Download APK

Issues

Not work on some Android API version, especially who not supporting WebView HTML5 Video.

Contributing & license

Any contribution in order to make this library better will be welcome!

The library is licensed under the Apache License 2.0