MCPcopy Index your code
hub / github.com/agusibrahim/YuuPlayer

github.com/agusibrahim/YuuPlayer @1.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2 ↗ · + Follow
71 symbols 133 edges 4 files 1 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

YuuPlayer

Release

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.1'
}

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 these example http://github.com/agusibrahim/blablabla

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

Extension points exported contracts — how you extend this code

OnStateChangeListener (Interface)
(no doc) [1 implementers]
library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayer.java
OnReadyListener (Interface)
(no doc) [1 implementers]
library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayer.java
OnErrorListener (Interface)
(no doc) [1 implementers]
library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayer.java
OnReceivedData (Interface)
(no doc) [1 implementers]
library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayer.java
OnPlayerProgressListener (Interface)
(no doc) [1 implementers]
library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayer.java

Core symbols most depended-on inside this repo

initView
called by 3
library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayer.java
playVideo
called by 2
library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayer.java
pauseVideo
called by 2
library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayer.java
setVolume
called by 2
library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayer.java
contentBuilder
called by 2
library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayer.java
onPlayerProgress
called by 2
library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayer.java
toHHMMSS
called by 2
app/src/main/java/id/agusibrahim/yuuplayersample/MainActivity.java
setVideo
called by 1
library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayer.java

Shape

Method 59
Class 6
Interface 6

Languages

Java100%

Modules by API surface

library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayer.java52 symbols
app/src/main/java/id/agusibrahim/yuuplayersample/MainActivity.java15 symbols
library/src/main/java/id/agusibrahim/yuuplayer/YuuPlayerFullscreen.java2 symbols
library/src/androidTest/java/io/jitpack/example/examplelib/ApplicationTest.java2 symbols

For agents

$ claude mcp add YuuPlayer \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact