Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 1.74 KB

README.md

File metadata and controls

58 lines (46 loc) · 1.74 KB

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