JResolver for Android!
This is a useful library for those who want to create movie and video apps and resolve common links from hoster to play as raw links. There is an example application which offers an example of how the resolvers work.
Supported Sites/Hosts :
- Google Photos
- Mp4Upload
- Mediafire
- Ok.Ru
- VK
- Youtube
- SolidFiles
- Vidoza
- SendVid
- FEmbed
- FileRio
- DailyMotion
- VidBam
- VideoBin
- BitTube
- 4Shared
- StreamTape
- Vudeo
- Amazon Drive
- Doodstream
- StremSB
- Mixdrop
- GoUnlimited
- Voxzer
- AnaVidz
- Aparat
- Archive
- Bitchute
- Brighteon
- DeadlyBlogger
- Fansubs
- Diasfem (formerly femax20)
- GDStream
- Googleuserconent links (lh3.googleusercontent.com/mediaid)
- Hdvid
- Vidhdthe
- Mediashore
- VoeSX
- GoMoPlayer
- EplayVid
- VidMoly
- Embedsito
- Lajkema
- GdStream
- Diasfem
- Suzihaza
- Superplayyxyz
- Dutrag
- Midian,Appboxes.co (avi not currentlysupported MP4 Only)
- Upstream
- YodBox
- Evoload
- CloudVideo
I will be adding more hosters over time and fixing any issues reported.
How To Use
Add this to the PROJECT build.gradle
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" } //Add this
}}
Add this to the APP build.gradle
dependencies {
implementation 'com.github.Inside4ndroid:resolver:6.6'
}
Add this to you applications manifest.xml
<application .....
android:usesCleartextTraffic="true">
Add the rules to your proguard for okhttp3
# JSR 305 annotations are for embedding nullability information.
-dontwarn javax.annotation.**
# A resource is loaded with a relative path so the package of this class must be preserved.
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
-dontwarn org.codehaus.mojo.animal_sniffer.*
# OkHttp platform used only on JVM and when Conscrypt dependency is available.
-dontwarn okhttp3.internal.platform.ConscryptPlatform
Then to use the library make this call
Jresolver jResolver = new Jresolver(this);
jResolver.onFinish(new Jresolver.OnTaskCompleted() {
@Override
public void onTaskCompleted(ArrayList<Jmodel> vidURL, boolean multiple_quality) {
if (multiple_quality){ //This video you can choose qualities
for (Jmodel model : vidURL){
String url = model.getUrl();
}
}else {//If single
String url = vidURL.get(0).getUrl();
}
}
@Override
public void onError() {
//Error
}
});
Dependencies used in the JResolver Library
Fast Android Networking Library
Special Thanks
The library is based on the xGetter Library by Khun Htetz Naing