youtube-dl-android
Android library wrapper for youtube-dl executable. Based on yausername's youtubedl-android but with ability to download binary files at runtime to decrease apk size.
Installation
Gradle
Step 1 : Add jitpack repository to your project build file
Step 2: Add the dependency
Optional FFmpeg dependency can also be added
Usage
- youtube-dl executable and python 3.7 are bundled in the library.
- Initialize library, preferably in
onCreate
.
- Downloading / custom command (A detailed example can be found in the sample app)
- Get stream info (equivalent to
--dump-json
of youtube-dl)
-
youtube-dl supports myriad different options which be seen here
-
youtube-dl binary can be updated from within the library
FFmpeg
If you wish to use ffmpeg features of youtube-dl (e.g. --extract-audio), include and initialize the ffmpeg library(you only need to Initialize FFmpeg library youtube-dl already initialize in this).
Sample app