Install VideoDownloader via Gradle
masterTo use the VideoDownloader SDK, you must first add the JitPack repository to your allprojects block in build.gradle, then add the specific dependency to your app's dependencies block.
If you require M3U8 to MP4 merging capabilities, you must also include the JeffFFmpegDemo library. Alternatively, for a smaller footprint, you can use JeffM3U8Lib.
Dependencies:
- Core SDK:
com.github.JeffMony:VideoDownloader:5.8.0 - FFmpeg (for M3U8 to MP4):
com.github.JeffMony:JeffFFmpegDemo:1.6.0 - Lightweight M3U8 Lib:
com.github.JeffMony:JeffM3U8Lib:1.2.0
// 1. Add JitPack to allprojects
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
// 2. Add dependencies
dependencies {
implementation 'com.github.JeffMony:VideoDownloader:5.8.0'
// Optional: for M3U8 to MP4 merging
implementation 'com.github.JeffMony:JeffFFmpegDemo:1.6.0'
// OR: for a smaller library
// implementation 'com.github.JeffMony:JeffM3U8Lib:1.2.0'
}