amankumar7702 / resolver

url resolver library for android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 :

  1. Amazon
  2. Aparat
  3. Archive
  4. BitChute
  5. Brighteon
  6. Cloudvideo
  7. DeadlyBlogger
  8. DailyMotion
  9. Doodstream
  10. Eplayvid
  11. Filerio
  12. 4Shared
  13. Google Photos
  14. Google User Content
  15. Hdvid
  16. MediaFire
  17. Midian
  18. Mixdrop
  19. Mp4upload
  20. Ok.ru
  21. Sendvid
  22. Streamhide
  23. Streamlare
  24. Streamsb
  25. Streamtape
  26. Streamvid
  27. Upstream
  28. VideoBM
  29. VidHD
  30. Vidmoly
  31. Vidoza
  32. VK
  33. Voesx
  34. Vudeo
  35. Yodbox
  36. Youtube

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:7.2'
}

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

JS Evaluator For Android

Fast Android Networking Library

JSoup

Apache Commons Lang

Special Thanks

The library is based on the xGetter Library by Khun Htetz Naing

About

url resolver library for android


Languages

Language:Java 99.9%Language:Kotlin 0.1%