Skip to content

Library for playing Youtube Videos with clean User Interface

Notifications You must be signed in to change notification settings

ShankarKakumani/YoutubeVideoPlayer

Repository files navigation

APK

Download apk file here YoutubeVideoPlayer

https://github.com/ShankarKakumani/SampleAPK/blob/main/YoutubeVideoPlayer.apk

Usage

Step 1

Gradle

add jitpack.io

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath "com.android.tools.build:gradle:4.1.1"
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven {
            url "https://jitpack.io"
        }
    }
}

add YoutubeVideoPlayer

dependencies {
    
    implementation 'com.github.ShankarKakumani:YoutubeVideoPlayer:1.0.6'
}

Step 2

Add permissions (if necessary) to your AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" /> 

Step 3

Usage:

YoutubeVideoPlayer.playVideo(MainActivity.this,VideoID);

Replace VideoID with youtube video ID. Replace MainActivity.this with your Activity

YoutubeVideoPlayer.playVideo(MainActivity.this,"h2JH0vqDcYc");

About

Library for playing Youtube Videos with clean User Interface

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages