From 9e57767d14858ca6f6db193066744900160ff2bc Mon Sep 17 00:00:00 2001 From: JayGoo <1015121748@qq.com> Date: Mon, 27 Nov 2017 17:10:57 +0800 Subject: [PATCH] first commit --- app/.gitignore | 1 + app/build.gradle | 36 + app/proguard-rules.pro | 25 + app/src/main/AndroidManifest.xml | 27 + .../m3u8downloader/FullScreenActivity.java | 99 + .../jaygoo/m3u8downloader/MainActivity.java | 179 ++ .../jaygoo/m3u8downloader/StorageUtils.java | 184 ++ .../java/jaygoo/m3u8downloader/VideoBean.java | 14 + .../m3u8downloader/VideoListAdapter.java | 99 + .../main/res/layout/activity_fullscreen.xml | 10 + app/src/main/res/layout/activity_main.xml | 18 + app/src/main/res/layout/list_item.xml | 30 + app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3418 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 4208 bytes app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2206 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 2555 bytes app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4842 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 6114 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7718 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 10056 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 10486 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 14696 bytes app/src/main/res/values/colors.xml | 6 + app/src/main/res/values/strings.xml | 3 + app/src/main/res/values/styles.xml | 15 + build.gradle | 25 + gradle.properties | 17 + gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 53636 bytes gradle/wrapper/gradle-wrapper.properties | 6 + gradlew | 160 ++ gradlew.bat | 90 + library/.gitignore | 1 + library/build.gradle | 60 + library/proguard-rules.pro | 25 + library/src/main/AndroidManifest.xml | 12 + .../m3u8downloader/M3U8DownloadTask.java | 344 +++ .../m3u8downloader/M3U8Downloader.java | 257 ++ .../m3u8downloader/M3U8DownloaderConfig.java | 78 + .../m3u8downloader/M3U8EncryptHelper.java | 74 + .../m3u8downloader/M3U8InfoManger.java | 96 + .../m3u8downloader/OnDownloadListener.java | 35 + .../OnM3U8DownloadListener.java | 49 + .../m3u8downloader/bean/BaseListener.java | 20 + .../library/m3u8downloader/bean/M3U8.java | 113 + .../library/m3u8downloader/bean/M3U8Task.java | 86 + .../m3u8downloader/bean/M3U8TaskState.java | 19 + .../library/m3u8downloader/bean/M3U8Ts.java | 64 + .../bean/OnM3U8InfoListener.java | 16 + .../m3u8downloader/server/M3u8Server.java | 122 + .../m3u8downloader/server/NanoHTTPD.java | 2314 +++++++++++++++++ .../m3u8downloader/utils/AES128Utils.java | 119 + .../library/m3u8downloader/utils/M3U8Log.java | 28 + .../m3u8downloader/utils/MD5Utils.java | 30 + .../library/m3u8downloader/utils/MUtils.java | 163 ++ .../m3u8downloader/utils/SPHelper.java | 105 + library/src/main/res/values/strings.xml | 3 + settings.gradle | 1 + 57 files changed, 5278 insertions(+) create mode 100644 app/.gitignore create mode 100644 app/build.gradle create mode 100644 app/proguard-rules.pro create mode 100644 app/src/main/AndroidManifest.xml create mode 100644 app/src/main/java/jaygoo/m3u8downloader/FullScreenActivity.java create mode 100644 app/src/main/java/jaygoo/m3u8downloader/MainActivity.java create mode 100644 app/src/main/java/jaygoo/m3u8downloader/StorageUtils.java create mode 100644 app/src/main/java/jaygoo/m3u8downloader/VideoBean.java create mode 100644 app/src/main/java/jaygoo/m3u8downloader/VideoListAdapter.java create mode 100644 app/src/main/res/layout/activity_fullscreen.xml create mode 100644 app/src/main/res/layout/activity_main.xml create mode 100644 app/src/main/res/layout/list_item.xml create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/values/colors.xml create mode 100644 app/src/main/res/values/strings.xml create mode 100644 app/src/main/res/values/styles.xml create mode 100644 build.gradle create mode 100644 gradle.properties create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100755 gradlew create mode 100644 gradlew.bat create mode 100644 library/.gitignore create mode 100644 library/build.gradle create mode 100644 library/proguard-rules.pro create mode 100644 library/src/main/AndroidManifest.xml create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/M3U8DownloadTask.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/M3U8Downloader.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/M3U8DownloaderConfig.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/M3U8EncryptHelper.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/M3U8InfoManger.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/OnDownloadListener.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/OnM3U8DownloadListener.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/bean/BaseListener.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8Task.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8TaskState.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8Ts.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/bean/OnM3U8InfoListener.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/server/M3u8Server.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/server/NanoHTTPD.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/utils/AES128Utils.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/utils/M3U8Log.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/utils/MD5Utils.java create mode 100644 library/src/main/java/jaygoo/library/m3u8downloader/utils/MUtils.java create mode 100755 library/src/main/java/jaygoo/library/m3u8downloader/utils/SPHelper.java create mode 100644 library/src/main/res/values/strings.xml create mode 100644 settings.gradle diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..2851754 --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,36 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 26 + buildToolsVersion "26.0.2" + defaultConfig { + applicationId "jaygoo.m3u8downloader" + minSdkVersion 16 + targetSdkVersion 26 + versionCode 1 + versionName "1.0" + multiDexEnabled true + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile fileTree(dir: 'libs', include: ['*.jar']) + androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { + exclude group: 'com.android.support', module: 'support-annotations' + }) + compile 'com.android.support:appcompat-v7:26.+' + compile 'com.android.support:design:26.+' + compile 'com.android.support.constraint:constraint-layout:1.0.2' + testCompile 'junit:junit:4.12' + compile 'com.karumi:dexter:4.2.0' + compile project(path: ':library') + compile 'com.shuyu:GSYVideoPlayer:2.1.1' + +} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..7e3f83c --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,25 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /Users/mac/Library/Android/sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..c65fd25 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/jaygoo/m3u8downloader/FullScreenActivity.java b/app/src/main/java/jaygoo/m3u8downloader/FullScreenActivity.java new file mode 100644 index 0000000..af7b280 --- /dev/null +++ b/app/src/main/java/jaygoo/m3u8downloader/FullScreenActivity.java @@ -0,0 +1,99 @@ +package jaygoo.m3u8downloader; + +import android.app.Activity; +import android.net.Uri; +import android.os.Bundle; +import android.support.annotation.Nullable; +import android.util.Log; +import android.view.View; + +import com.shuyu.gsyvideoplayer.GSYVideoManager; +import com.shuyu.gsyvideoplayer.model.VideoOptionModel; +import com.shuyu.gsyvideoplayer.utils.OrientationUtils; +import com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer; +import com.shuyu.gsyvideoplayer.video.base.GSYVideoPlayer; + +import java.util.ArrayList; +import java.util.List; + +import jaygoo.library.m3u8downloader.server.M3u8Server; +import jaygoo.library.m3u8downloader.utils.M3U8Log; +import tv.danmaku.ijk.media.player.IjkMediaPlayer; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/21 + * 描 述: + * ================================================ + */ +public class FullScreenActivity extends Activity{ + + private StandardGSYVideoPlayer videoPlayer; + private OrientationUtils orientationUtils; + private String encryptKey = "63F06F99D823D33AAB89A0A93DECFEE0"; + @Override + protected void onCreate(@Nullable Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_fullscreen); + videoPlayer = (StandardGSYVideoPlayer)findViewById(R.id.videoView); + orientationUtils = new OrientationUtils(this, videoPlayer); + orientationUtils.resolveByClick(); + videoPlayer.startWindowFullscreen(this,false,false); + List optionModels = new ArrayList<>(); + optionModels.add(new VideoOptionModel(IjkMediaPlayer.OPT_CATEGORY_FORMAT, + "protocol_whitelist", "crypto,file,http,https,tcp,tls,udp")); + GSYVideoManager.instance().setOptionModelList(optionModels); + String url = null; + Bundle bundle = getIntent().getExtras(); + if (bundle != null){ + url = bundle.getString("M3U8_URL"); + } + Uri uri = Uri.parse(url); + M3U8Log.d("uri: "+uri); + String scheme = uri.getScheme(); + M3U8Log.d("scheme: "+scheme); + String mVideoSource; + if (null != scheme) { + mVideoSource = uri.toString(); + } else { + mVideoSource = uri.getPath(); + } + M3U8Log.d("mVideoSource: "+mVideoSource); + String mSource = M3u8Server.createLocalUrl(mVideoSource); + M3U8Log.d("mSource: "+mSource); + M3u8Server.execute(); + videoPlayer.setUp(mSource,false,""); + videoPlayer.getBackButton().setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + finish(); + } + }); + videoPlayer.startPlayLogic(); + + } + + @Override + protected void onResume() { + super.onResume(); + M3u8Server.onResume(encryptKey); + } + + @Override + protected void onPause() { + super.onPause(); + M3u8Server.onPause(encryptKey); + } + + @Override + protected void onDestroy() { + super.onDestroy(); + M3u8Server.finish(); + //释放所有 + videoPlayer.getCurrentPlayer().release(); + GSYVideoPlayer.releaseAllVideos(); + videoPlayer.setStandardVideoAllCallBack(null); + } +} diff --git a/app/src/main/java/jaygoo/m3u8downloader/MainActivity.java b/app/src/main/java/jaygoo/m3u8downloader/MainActivity.java new file mode 100644 index 0000000..3fe710e --- /dev/null +++ b/app/src/main/java/jaygoo/m3u8downloader/MainActivity.java @@ -0,0 +1,179 @@ +package jaygoo.m3u8downloader; + +import android.Manifest; +import android.content.Intent; +import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; +import android.view.View; +import android.widget.AdapterView; +import android.widget.ListView; +import android.widget.Toast; + +import com.karumi.dexter.Dexter; +import com.karumi.dexter.MultiplePermissionsReport; +import com.karumi.dexter.PermissionToken; +import com.karumi.dexter.listener.PermissionRequest; +import com.karumi.dexter.listener.multi.MultiplePermissionsListener; + +import java.util.List; + +import jaygoo.library.m3u8downloader.M3U8Downloader; +import jaygoo.library.m3u8downloader.M3U8DownloaderConfig; +import jaygoo.library.m3u8downloader.OnM3U8DownloadListener; +import jaygoo.library.m3u8downloader.bean.M3U8Task; +import jaygoo.library.m3u8downloader.utils.AES128Utils; +import jaygoo.library.m3u8downloader.utils.M3U8Log; + +public class MainActivity extends AppCompatActivity { + static final String[] PERMISSIONS = new String[]{ + Manifest.permission.WRITE_EXTERNAL_STORAGE, + Manifest.permission.READ_EXTERNAL_STORAGE, + }; + + M3U8Task[] taskList = new M3U8Task[6]; + private VideoListAdapter adapter; + private String dirPath; + private String encryptKey = "63F06F99D823D33AAB89A0A93DECFEE0"; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + requestAppPermissions(); + try { + M3U8Log.d("AES BASE64 Random Key:"+AES128Utils.getAESKey() ); + } catch (Exception e) { + e.printStackTrace(); + } + + } + + private void initView() { + dirPath = StorageUtils.getCacheDirectory(this).getPath()+"/m3u8Downloader"; + //common config ! + M3U8DownloaderConfig + .build(getApplicationContext()) + .setSaveDir(dirPath) + .setDebugMode(true) + ; + + // add listener + M3U8Downloader.getInstance().setOnM3U8DownloadListener(onM3U8DownloadListener); + M3U8Downloader.getInstance().setEncryptKey(encryptKey); + initData(); + adapter = new VideoListAdapter(this, R.layout.list_item, taskList); + ListView listView = (ListView) findViewById(R.id.list_view); + listView.setAdapter(adapter); + listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { + @Override + public void onItemClick(AdapterView parent, View view, int position, long id) { + String url = taskList[position].getUrl(); + if (M3U8Downloader.getInstance().checkM3U8IsExist(url)){ + Toast.makeText(getApplicationContext(),"本地文件已下载,正在播放中!!!", Toast.LENGTH_SHORT).show(); + Intent intent = new Intent(MainActivity.this,FullScreenActivity.class); + intent.putExtra("M3U8_URL",M3U8Downloader.getInstance().getM3U8Path(url)); + startActivity(intent); + }else { + if (M3U8Downloader.getInstance().isTaskDownloading(url)) { + M3U8Downloader.getInstance().pause(url); + } else { + M3U8Downloader.getInstance().download(url); + } + } + } + }); + } + + private void initData(){ +// MUtils.clearDir(new File(dirPath)); + M3U8Task bean0 = new M3U8Task("https://media6.smartstudy.com/52/9c/10732/4/dest.m3u8"); + M3U8Task bean1 = new M3U8Task("https://media6.smartstudy.com/b2/75/2475/4/dest.m3u8"); + M3U8Task bean2 = new M3U8Task("https://media6.smartstudy.com/ae/07/3997/2/dest.m3u8"); + M3U8Task bean3 = new M3U8Task("http://hls.ciguang.tv/hdtv/video.m3u8"); + M3U8Task bean4 = new M3U8Task("http://hcjs2ra2rytd8v8np1q.exp.bcevod.com/mda-hegtjx8n5e8jt9zv/mda-hegtjx8n5e8jt9zv.m3u8"); + M3U8Task bean5 = new M3U8Task("https://media6.smartstudy.com/55/34/2542/4/dest.m3u8"); + taskList[0] = bean0; + taskList[1] = bean1; + taskList[2] = bean2; + taskList[3] = bean3; + taskList[4] = bean4; + taskList[5] = bean5; + } + + private OnM3U8DownloadListener onM3U8DownloadListener = new OnM3U8DownloadListener() { + + @Override + public void onDownloadSuccess(M3U8Task task) { + super.onDownloadSuccess(task); + adapter.notifyChanged(taskList, task); + } + + @Override + public void onDownloadPending(M3U8Task task) { + super.onDownloadPending(task); + adapter.notifyChanged(taskList, task); + } + + @Override + public void onDownloadPause(M3U8Task task) { + super.onDownloadPause(task); + adapter.notifyChanged(taskList, task); + } + + @Override + public void onDownloadProgress(final M3U8Task task) { + super.onDownloadProgress(task); + runOnUiThread(new Runnable() { + @Override + public void run() { + adapter.notifyChanged(taskList, task); + } + }); + + } + + @Override + public void onDownloadPrepare(final M3U8Task task) { + super.onDownloadPrepare(task); + runOnUiThread(new Runnable() { + @Override + public void run() { + adapter.notifyChanged(taskList, task); + } + }); + } + + @Override + public void onDownloadError(M3U8Task task, Throwable errorMsg) { + super.onDownloadError(task, errorMsg); + adapter.notifyChanged(taskList, task); + } + + @Override + public void onAllTaskComplete() { + super.onAllTaskComplete(); + Toast.makeText(getApplicationContext(),"文件全部下载完成!!!!", Toast.LENGTH_LONG).show(); + + } + }; + + private void requestAppPermissions() { + Dexter.withActivity(this) + .withPermissions(PERMISSIONS) + .withListener(new MultiplePermissionsListener() { + @Override + public void onPermissionsChecked(MultiplePermissionsReport report) { + if (report.areAllPermissionsGranted()) { + initView(); + Toast.makeText(getApplicationContext(),"权限获取成功",Toast.LENGTH_LONG).show(); + }else { + Toast.makeText(getApplicationContext(),"权限获取失败",Toast.LENGTH_LONG).show(); + } + } + + @Override + public void onPermissionRationaleShouldBeShown(List permissions, PermissionToken token) { + } + }) + .check(); + } +} diff --git a/app/src/main/java/jaygoo/m3u8downloader/StorageUtils.java b/app/src/main/java/jaygoo/m3u8downloader/StorageUtils.java new file mode 100644 index 0000000..9b08817 --- /dev/null +++ b/app/src/main/java/jaygoo/m3u8downloader/StorageUtils.java @@ -0,0 +1,184 @@ +package jaygoo.m3u8downloader; + +import android.content.Context; +import android.content.pm.PackageManager; +import android.os.Environment; + +import java.io.File; +import java.io.IOException; + +import static android.os.Environment.MEDIA_MOUNTED; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本:1.0 + * 创建日期:16/9/19 + * 描 述:文件操作,文件夹、文件处理、图片选择 + * 类 型:工具类 + * 修订历史: + * ================================================ + */ + +/** + * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) + * @created : JayGoo + * @Description: Provides application storage paths + *

+ * Methods get storage path samples: + *

+ * getCacheDirectory: /storage/emulated/0/Android/data/com.example.google_acmer.asimplecachedemo/cache + * getCacheDirectory true: /storage/emulated/0/Android/data/com.example.google_acmer.asimplecachedemo/cache + * getCacheDirectory false: /data/user/0/com.example.google_acmer.asimplecachedemo/cache + * getIndividualCacheDirectory:/storage/emulated/0/Android/data/com.example.google_acmer.asimplecachedemo/cache/uil-images + * getOwnCacheDirectory:/storage/emulated/0/JayGoo + */ +public final class StorageUtils { + + private static final String EXTERNAL_STORAGE_PERMISSION = "android.permission.WRITE_EXTERNAL_STORAGE"; + private static final String INDIVIDUAL_DIR_NAME = "uil-images"; + + + private StorageUtils() { + } + + /** + * Returns application cache directory. Cache directory will be created on SD card + * ("/Android/data/[app_package_name]/cache") if card is mounted and app has appropriate permission. Else - + * Android defines cache directory on device's file system. + * + * @param context Application context + * @return Cache {@link File directory}.
+ * NOTE: Can be null in some unpredictable cases (if SD card is unmounted and + * {@link Context#getCacheDir() Context.getCacheDir()} returns null). + */ + public static File getCacheDirectory(Context context) { + return getCacheDirectory(context, true); + } + + /** + * Returns application cache directory. Cache directory will be created on SD card + * ("/Android/data/[app_package_name]/cache") (if card is mounted and app has appropriate permission) or + * on device's file system depending incoming parameters. + * + * @param context Application context + * @param preferExternal Whether prefer external location for cache + * @return Cache {@link File directory}.
+ * NOTE: Can be null in some unpredictable cases (if SD card is unmounted and + * {@link Context#getCacheDir() Context.getCacheDir()} returns null). + */ + public static File getCacheDirectory(Context context, boolean preferExternal) { + File appCacheDir = null; + String externalStorageState; + try { + externalStorageState = Environment.getExternalStorageState(); + } catch (NullPointerException e) { // (sh)it happens (Issue #660) + externalStorageState = ""; + } + if (preferExternal && MEDIA_MOUNTED.equals(externalStorageState) && hasExternalStoragePermission(context)) { + appCacheDir = getExternalCacheDir(context); + } + if (appCacheDir == null) { + appCacheDir = context.getCacheDir(); + } + if (appCacheDir == null) { + String cacheDirPath = "/data/data/" + context.getPackageName() + "/cache/"; + appCacheDir = new File(cacheDirPath); + } + return appCacheDir; + } + + /** + * Returns individual application cache directory (for only image caching from ImageLoader). Cache directory will be + * created on SD card ("/Android/data/[app_package_name]/cache/uil-images") if card is mounted and app has + * appropriate permission. Else - Android defines cache directory on device's file system. + * + * @param context Application context + * @return Cache {@link File directory} + */ + public static File getIndividualCacheDirectory(Context context) { + File cacheDir = getCacheDirectory(context); + File individualCacheDir = new File(cacheDir, INDIVIDUAL_DIR_NAME); + if (!individualCacheDir.exists()) { + if (!individualCacheDir.mkdir()) { + individualCacheDir = cacheDir; + } + } + return individualCacheDir; + } + + /** + * Returns specified application cache directory. Cache directory will be created on SD card by defined path if card + * is mounted and app has appropriate permission. Else - Android defines cache directory on device's file system. + * + * @param context Application context + * @param cacheDir Cache directory path (e.g.: "AppCacheDir", "AppDir/cache/images") + * @return Cache {@link File directory} + */ + public static File getOwnCacheDirectory(Context context, String cacheDir) { + File appCacheDir = null; + if (MEDIA_MOUNTED.equals(Environment.getExternalStorageState()) && hasExternalStoragePermission(context)) { + appCacheDir = new File(Environment.getExternalStorageDirectory(), cacheDir); + } + if (appCacheDir == null || (!appCacheDir.exists() && !appCacheDir.mkdirs())) { + appCacheDir = context.getCacheDir(); + } + return appCacheDir; + } + + private static File getExternalCacheDir(Context context) { + File dataDir = new File(new File(Environment.getExternalStorageDirectory(), "Android"), "data"); + File appCacheDir = new File(new File(dataDir, context.getPackageName()), "cache"); + if (!appCacheDir.exists()) { + if (!appCacheDir.mkdirs()) { + return null; + } + try { + new File(appCacheDir, ".nomedia").createNewFile(); + } catch (IOException e) { + } + } + return appCacheDir; + } + + private static boolean hasExternalStoragePermission(Context context) { + int perm = context.checkCallingOrSelfPermission(EXTERNAL_STORAGE_PERMISSION); + return perm == PackageManager.PERMISSION_GRANTED; + } + + public static boolean makeDir(String dirPath) { + File fileDir = new File(dirPath); + if (!fileDir.exists()) { + try { + fileDir.mkdirs(); + return true; + } catch (Exception e) { + } + + } + return false; + } + + public static boolean fileIsExists(String filePath) { + File f = new File(filePath); + if (!f.exists()) { + return false; + } + return true; + } + + /** + * 是否有sd卡 + * + * @return + */ + public static boolean hasSdcard() { + if (Environment.getExternalStorageState().equals( + Environment.MEDIA_MOUNTED)) { + return true; + } else { + return false; + } + } + +} \ No newline at end of file diff --git a/app/src/main/java/jaygoo/m3u8downloader/VideoBean.java b/app/src/main/java/jaygoo/m3u8downloader/VideoBean.java new file mode 100644 index 0000000..b4b9be4 --- /dev/null +++ b/app/src/main/java/jaygoo/m3u8downloader/VideoBean.java @@ -0,0 +1,14 @@ +package jaygoo.m3u8downloader; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/21 + * 描 述: + * ================================================ + */ +public class VideoBean { + public String url; + public String state; +} diff --git a/app/src/main/java/jaygoo/m3u8downloader/VideoListAdapter.java b/app/src/main/java/jaygoo/m3u8downloader/VideoListAdapter.java new file mode 100644 index 0000000..14c121b --- /dev/null +++ b/app/src/main/java/jaygoo/m3u8downloader/VideoListAdapter.java @@ -0,0 +1,99 @@ +package jaygoo.m3u8downloader; + +import android.content.Context; +import android.support.annotation.LayoutRes; +import android.support.annotation.NonNull; +import android.support.annotation.Nullable; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ArrayAdapter; +import android.widget.TextView; + +import jaygoo.library.m3u8downloader.M3U8Downloader; +import jaygoo.library.m3u8downloader.bean.M3U8Task; +import jaygoo.library.m3u8downloader.bean.M3U8TaskState; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/21 + * 描 述: + * ================================================ + */ +public class VideoListAdapter extends ArrayAdapter { + + public VideoListAdapter(@NonNull Context context, @LayoutRes int resource, @NonNull M3U8Task[] objects) { + super(context, resource, objects); + } + + @NonNull + @Override + public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) { + M3U8Task mediaBean = getItem(position); + View view = LayoutInflater.from(getContext()).inflate(R.layout.list_item, null); + TextView urlName = (TextView) view.findViewById(R.id.url_tv); + urlName.setText(mediaBean.getUrl()); + TextView stateTv = (TextView) view.findViewById(R.id.state_tv); + setStateText(stateTv,mediaBean); + TextView progressTv = (TextView) view.findViewById(R.id.progress_tv); + setProgressText(progressTv, mediaBean); + return view; + } + + private void setProgressText(TextView progressTv, M3U8Task task) { + switch (task.getState()) { + case M3U8TaskState.DOWNLOADING: + progressTv.setText("进度:" + String.format("%.1f ",task.getProgress() * 100)+ "% 速度:" + task.getFormatSpeed()); + break; + case M3U8TaskState.SUCCESS: + progressTv.setText(task.getFormatTotalSize()); + break; + case M3U8TaskState.PAUSE: + progressTv.setText("进度:" + String.format("%.1f ",task.getProgress() * 100)+ "%" + task.getFormatTotalSize()); + break; + default: + progressTv.setText(""); + break; + } + } + + private void setStateText(TextView stateTv, M3U8Task task){ + if (M3U8Downloader.getInstance().checkM3U8IsExist(task.getUrl())){ + stateTv.setText("已下载"); + return; + } + switch (task.getState()){ + case M3U8TaskState.PENDING: + stateTv.setText("等待中"); + break; + case M3U8TaskState.DOWNLOADING: + stateTv.setText("正在下载"); + break; + case M3U8TaskState.ERROR: + stateTv.setText("下载出错"); + break; + case M3U8TaskState.PREPARE: + stateTv.setText("准备中"); + break; + case M3U8TaskState.SUCCESS: + stateTv.setText("下载完成"); + break; + case M3U8TaskState.PAUSE: + stateTv.setText("暂停中"); + break; + default:stateTv.setText("未下载"); + break; + } + } + + public void notifyChanged(M3U8Task[] taskList, M3U8Task m3U8Task){ + for (int i = 0; i < getCount(); i++){ + if (getItem(i).equals(m3U8Task)){ + taskList[i] = m3U8Task; + notifyDataSetChanged(); + } + } + } +} diff --git a/app/src/main/res/layout/activity_fullscreen.xml b/app/src/main/res/layout/activity_fullscreen.xml new file mode 100644 index 0000000..659f791 --- /dev/null +++ b/app/src/main/res/layout/activity_fullscreen.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..442c251 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,18 @@ + + + + + + + + diff --git a/app/src/main/res/layout/list_item.xml b/app/src/main/res/layout/list_item.xml new file mode 100644 index 0000000..a8d7754 --- /dev/null +++ b/app/src/main/res/layout/list_item.xml @@ -0,0 +1,30 @@ + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..cde69bcccec65160d92116f20ffce4fce0b5245c GIT binary patch literal 3418 zcmZ{nX*|@A^T0p5j$I+^%FVhdvMbgt%d+mG98ubwNv_tpITppba^GiieBBZGI>I89 zGgm8TA>_)DlEu&W;s3#ZUNiH4&CF{a%siTjzG;eOzQB6{003qKeT?}z_5U*{{kgZ; zdV@U&tqa-&4FGisjMN8o=P}$t-`oTM2oeB5d9mHPgTYJx4jup)+5a;Tke$m708DocFzDL>U$$}s6FGiy_I1?O zHXq`q884|^O4Q*%V#vwxqCz-#8i`Gu)2LeB0{%%VKunOF%9~JcFB9MM>N00M`E~;o zBU%)O5u-D6NF~OQV7TV#JAN;=Lylgxy0kncoQpGq<<_gxw`FC=C-cV#$L|(47Hatl ztq3Jngq00x#}HGW@_tj{&A?lwOwrVX4@d66vLVyj1H@i}VD2YXd)n03?U5?cKtFz4 zW#@+MLeDVP>fY0F2IzT;r5*MAJ2}P8Z{g3utX0<+ZdAC)Tvm-4uN!I7|BTw&G%RQn zR+A5VFx(}r<1q9^N40XzP=Jp?i=jlS7}T~tB4CsWx!XbiHSm zLu}yar%t>-3jlutK=wdZhES->*1X({YI;DN?6R=C*{1U6%wG`0>^?u}h0hhqns|SeTmV=s;Gxx5F9DtK>{>{f-`SpJ`dO26Ujk?^%ucsuCPe zIUk1(@I3D^7{@jmXO2@<84|}`tDjB}?S#k$ik;jC))BH8>8mQWmZ zF#V|$gW|Xc_wmmkoI-b5;4AWxkA>>0t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Rh)!g~R>!jaR9;K|#82kfE5^;R!~}H4C?q{1AG?O$5kGp)G$f%VML%aPD?{ zG6)*KodSZRXbl8OD=ETxQLJz)KMI7xjArKUNh3@0f|T|75?Yy=pD7056ja0W)O;Td zCEJ=7q?d|$3rZb+8Cvt6mybV-#1B2}Jai^DOjM2<90tpql|M5tmheg){2NyZR}x3w zL6u}F+C-PIzZ56q0x$;mVJXM1V0;F}y9F29ob51f;;+)t&7l30gloMMHPTuod530FC}j^4#qOJV%5!&e!H9#!N&XQvs5{R zD_FOomd-uk@?_JiWP%&nQ_myBlM6so1Ffa1aaL7B`!ZTXPg_S%TUS*>M^8iJRj1*~ e{{%>Z1YfTk|3C04d;8A^0$7;Zm{b|L#{L(;l>}-4 literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000000000000000000000000000000000000..efc028a636dd690a51db5a525cf781a5a7daba68 GIT binary patch literal 2555 zcmVDi>vW`@Y|P=j^x3Ifn%y?#weBmhZgZ z^Srn3`_5s_nkW1KfDd9V!jFD>F_Mc=&(D`S9F8`G9j`|SbWPvU-)IaU`}$WdghKD(z^U%DuFl=dhBq1 zV2N08FaBOdb12Qd668Nb;&Z~}bITyD2yV;4Q;V)Yd}0yejcD*w$?M!}^D9N(BLyEz zzdw5PC}r6q#BPAbGB|lDe_=J@3Wft_XJ;=W1)n8}5Q_(meMaO(qlBrMNwAM~()TMt z7``0qU^YGKgUvTFF>zWD;p2?}U+(!oOP=>E(#D=LI9;^|21mP}Sb%-B3r<$-f`)GE zf+ENH9giPBhLMqxk3?>Z_Ib>|pGpO*ls1Edc1SPZ4+Zs6n5(m@o)w`qhVIR+3x!nc z2QWA^sF+UVL`bPYG*m}z-@eUAx}Y&)U4(ZX!1ID&B)9UZ-m)SmI=x*&DX z(4U0VQSCNkV`Ff+G6~M!-Uofd_rTVE5zbccg%jm(Lo!1!!}0Rp$Ve*N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gt^scLydQWbo7XN-o9X1i7;l+J_8Ncu zc=EX&dg`GRo4==cz2d_Rz28oLS`Suf6OCp~f{0-aQ`t5YZ=!CAMc6-RZw#}A%;s44 znf2`6gcgm=0SezTH9h+JzeR3Lcm;8?*@+?FDfguK^9)z(Z`I!RKrSAI?H~4et6GTkz07Qgq4B6%Q*8Y0yPc4x z8(^YwtZjYIeOvVLey#>@$UzIciJ#x0pJLFg=8UaZv%-&?Yzp7gWNIo_x^(d75=x2c zv|LQ`HrKP(8TqFxTiP5gdT2>aTN0S7XW*pilASS$UkJ2*n+==D)0mgTGxv43t61fr z47GkfMnD-zSH@|mZ26r*d3WEtr+l-xH@L}BM)~ThoMvKqGw=Ifc}BdkL$^wC}=(XSf4YpG;sA9#OSJf)V=rs#Wq$?Wj+nTlu$YXn yn3SQon5>kvtkl(BT2@T#Mvca!|08g9w{vm``2PjZHg=b<1c17-HkzPl9sXa)&-Ts$ literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000000000000000000000000000000000000..3af2608a4492ef9ae63a77ec3305aedda89594cb GIT binary patch literal 6114 zcmV<87aiz{P)QBg$Z&8YKy<2dSjG6I2&!iu7JRdT!gcBlJx2NL9-^PTGD_Ptf# z_t*dbRdw&}d+xcr-QAko7-Mb(cL9%PAop{-%ba$?L0~%p4=0Y}p*W8FU1n`tILPv} zML2!uMd(K8O&CZREHF@fhVQ(Z5yVrJcYBD!LfyzFt;&e2oN5Pm5Z@1b~qKj96+4}@|h;R-VA2(=2-37BtnR`#_JMV#vgaqj!A)$dLw zzAqt=kf%brlHdkMtlkP5%mgwQBTv+&?;R(E^s|ch{RoQ*)slEY&`lQ-Zm%FW<@tmV z)uL|w%v_~goAvXG*IfwH2{j7hrMtKlq}vjs(Nzf{YD8VTsI{f7SiPs>{X2v+3gRt% zb1Q)~2q^^WJXX;T&sN_Xm~Vh zb#=9En0OP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E+E$T{EpBESy_`f2@A0XP) zQM9pD|D_=YBKJM^*kj$hb?b(ICjCvP6-x%LaS@ltE?m-Jm>{bTRTd|41uQ zht;cBFM8&gXZ|4E%|O%@brx3d(H6LfFb5-hhTK4$NNMZLHW^QvKA?TDuaazO=@1&@6gpQS&WUqV9i9^wKM-|89fhxN z*Vc(wiw)??9pO_&wglHSm`HeX;J|^u4+seOf(AMpl9G~+;;Mr3@^ZewE&p3UtUNJm zn^>dZSr?w~!ynRDSy`W-pI@1roO~3=#yM~lW29pNtM``b5s=k5x!TRq|b4{^B1?GF9`<{9 literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..324e72cdd7480cb983fa1bcc7ce686e51ef87fe7 GIT binary patch literal 7718 zcmZ{JWl)?=u?hpbj?h-6mfK3P*Eck~k0Tzeg5-hkABxtZea0_k$f-mlF z0S@Qqtva`>x}TYzc}9LrO?P#qj+P1@HZ?W?0C;Muih9o&|G$cb@ocx1*PEUJ%~tM} z901hB;rx4#{@jOHs_MN00ADr$2n+#$yJuJ64gh!x0KlF(07#?(0ENrf7G3D`0EUHz zisCaq%dJ9dz%zhdRNuG*01nCjDhiPCl@b8xIMfv7^t~4jVRrSTGYyZUWqY@yW=)V_ z&3sUP1SK9v1f{4lDSN(agrKYULc;#EGDVeU*5b@#MOSY5JBn#QG8wqxQh+mdR638{mo5f>O zLUdZIPSjFk0~F26zDrM3y_#P^P91oWtLlPaZrhnM$NR%qsbHHK#?fN?cX?EvAhY1Sr9A(1;Kw4@87~|;2QP~ z(kKOGvCdB}qr4m#)1DwQFlh^NdBZvNLkld&yg%&GU`+boBMsoj5o?8tVuY^b0?4;E zsxoLxz8?S$y~a~x0{?dqk+6~Dd(EG7px_yH(X&NX&qEtHPUhu*JHD258=5$JS12rQ zcN+7p>R>tbFJ3NzEcRIpS98?}YEYxBIA8}1Y8zH9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Yg3(mdEd$8P2Yzjt9*EM zLE|cp-Tzsdyt(dvLhU8}_IX&I?B=|yoZ!&<`9&H5PtApt=VUIB4l0a1NH v0SQqt3DM`an1p};^>=lX|A*k@Y-MNT^ZzF}9G-1G696?OEyXH%^Pv9$0dR%J literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000000000000000000000000000000000000..9bec2e623103ac9713b00cad8502a057c1efda61 GIT binary patch literal 10056 zcmV-OC%4#%P)f{b8~La&ABzzjS$j|sySB+3lg7e=Ipr#6B0nslBeFh90 zSSvo;k;;{-H`UWrL#ckvHI)CYH~&mWOOQywast)FplM+W82a~aRKuwzQB9{>M-@hu zN|i@dN_B^-lB$~2Zq@v6clc-W_;w$o0*U~HsH7SRTub^rz-g7#hsU6Ec|iLuRk{&0*aR?Y!eR?l3@CnX($h`nZRl-$kvK*5?~ zZ16HwhzvM2O&AfiDtMnXb6O*rSV!{y6<#yBUtN{Gt}WTft+ja2;c=0? zpD8ihO(mmpSmuU{Nzy+v<@)e}D+u!UeW{|1td0{J)A5n$D)d=jxl+e{e+xpqud1qg zgZ{f*Vs&bqkXUwW5^Gfc%P+sYDc83TLcHVSv^vUIqsq!kU)rV3?(4Wnl4Z4`4c{$E z&7HB1eVH1|`tRPoyXVZAGp+B-R9^&o6%`d-__PYA%TmFm-Me=$Av-&}>wOhmi>u+z zojWKDW^s7#IR{>G-9yLHnCNstK|%lf!V-xF&_)fS?~9!9I1Hkq!otEKO&TI$LTO{3 zrSGrufX4}sgCL?7zvSGxb3>b?JCnFA%-Ol^?c0q!osAUQcX;~Q0G zCTOO97KOrVN=*Pmr_n5qT)K3L?1=RvOJc|CA=+~MD{`gea+7yu!gXD_c8RP{{69TB z{?T4!TZ}Jldy!HA=_ja_(oL(?KGi6KYNNO(O353e!UA2se3`@_k0vXlKG6fTG;Sh^ z$lAhOSyQ$`a8GDMSms*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t9E1M}xUr z>e{hLG(;iw3Zm*NRSJ$Yj5GJ6stae8K4MWq#m-{!Msy&m0v7A+Y zRP2D$GA5b(?MY$il7$I`v01_A6glGWlG;l+6f>LrwAwGE10tq3N_!hlI@5joTdhv; zxDlZ(vLJ@OR3;+v@Y?UJ=O_$IN)$L*Fu!axdK1vGfa{-`#RhEm2HXObZ`0G#>Yz_g zg#*HqIRdsKJ?x?d3-5OS=0aPg$DE-9e;-6bAGx64j4}WCGe^UOmue)!Sd)oES6PAu zZZEgMs1@*@?ry{RIVRMyxTK`sIJ?y!x!X!~djuWN$?NPDcy5v{& z!LDd9Q_G>xXVD8dYv z85kIz-Y%CIXINf2C9g}WgxN~2t$M087;`7KU|B!Y?j!hA+tGo_Eg(jZy@4t15 z>-BN}4Gpj#@8fEzF`r%r-k(7^Rw~BQIlxNa(ht+v)Rx>3bi8!QRev}JNoC@=l6Qqv zcShO+EuHMRt*tHpF9bKG8)y*wfbeDR-yR-%9GY2KZNK5F;(?zdfMGJi7x;xiDjjrB z8-#I&`#ep-_6e-yX(1o!*V*H*pL`p9SJK1zId0F8?d2n51Ub4=B;UsCeMSN)P7d79G#XB(mxS>G zF0TaP3?K~11V!Gn#qN6H9EW%>&0$})XijA?@nMYD{-K06@p0g_^QjHvTDx{E_`x8t ztW?gKO2GS&yjb*MOjovn2ssPup~n*}nW1#B^>Dua@W5z~km(ENNMcO-wsr;onLMfo ziEw=ATF!d%BibpC0H+k*punkbRklp|*QyQZeDr6NuyqAm{*v!VU8F}c27KY3OI{ww z@QlC0pEsa66gSHd--B(AYo<1v1Rugf&!-T6MhGyTBpUr9}NwYYI zBY~zd6KSXg?eD_at<(P3Hu2Y*I(YNt->t<^u& + + #3F51B5 + #303F9F + #FF4081 + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..21d339a --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + M3U8Downloader + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..83fdad7 --- /dev/null +++ b/app/src/main/res/values/styles.xml @@ -0,0 +1,15 @@ + + + + + + + diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..4a7af7b --- /dev/null +++ b/build.gradle @@ -0,0 +1,25 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + repositories { + jcenter() + } + dependencies { + classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' + + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +allprojects { + repositories { + jcenter() + maven { url "https://jitpack.io" } + } +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..aac7c9b --- /dev/null +++ b/gradle.properties @@ -0,0 +1,17 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx1536m + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..13372aef5e24af05341d49695ee84e5f9b594659 GIT binary patch literal 53636 zcmafaW0a=B^559DjdyHo$F^PVt zzd|cWgMz^T0YO0lQ8%TE1O06v|NZl~LH{LLQ58WtNjWhFP#}eWVO&eiP!jmdp!%24 z{&z-MK{-h=QDqf+S+Pgi=_wg$I{F28X*%lJ>A7Yl#$}fMhymMu?R9TEB?#6@|Q^e^AHhxcRL$z1gsc`-Q`3j+eYAd<4@z^{+?J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;(Dc^`q(7X8kkeFyO8 z{XOq^07=u|7*P2`m;>PIFf=i80MKUxsN{d2cX0M+REsE*20+WQ79T9&cqT>=I_U% z{=8~^Isg(Nzo~`4iQfIb_#CVCD>#5h>=-Z#5dH}WxYzn%0)GAm6L2WdUdP=0_h>7f z(jh&7%1i(ZOn+}D8$iGK4Vs{pmHl_w4Qm-46H9>4^{3dz^DZDh+dw)6Xd@CpQNK$j z{CU;-cmpK=egplZ3y3%y=sEnCJ^eYVKXzV8H2_r*fJ*%*B;a1_lOpt6)IT1IAK2eB z{rie|uDJUrbgfUE>~C>@RO|m5ex55F{=~Bb4Cucp{ok7Yf9V}QuZ`#Gc|WaqsQlK- zKaV)iMRR__&Ak2Z=IM9R9g5$WM4u{a^C-7uX*!myEym z#_#p^T!P~#Dx$%^K>Y_nj_3J*E_LwJ60-5Xu=LkJAwcP@|0;a&+|+ZX`Jbj9P5;T% z|KOc}4*#4o{U?09`9Hz`Xo-I!P=9XfIrr*MQ}y=$!qgv?_J38^bNb4kM&_OVg^_=Eu-qG5U(fw0KMgH){C8pazq~51rN97hf#20-7=aK0)N|UM H-+%o-(+5aQ literal 0 HcmV?d00001 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..27d7567 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Fri Nov 17 17:07:24 CST 2017 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip diff --git a/gradlew b/gradlew new file mode 100755 index 0000000..9d82f78 --- /dev/null +++ b/gradlew @@ -0,0 +1,160 @@ +#!/usr/bin/env bash + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; +esac + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..8a0b282 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windowz variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/library/.gitignore b/library/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/library/.gitignore @@ -0,0 +1 @@ +/build diff --git a/library/build.gradle b/library/build.gradle new file mode 100644 index 0000000..28c6795 --- /dev/null +++ b/library/build.gradle @@ -0,0 +1,60 @@ +apply plugin: 'com.android.library' +apply plugin: 'com.github.dcendents.android-maven' +group='com.github.Jay-Goo' + +android { + compileSdkVersion 26 + buildToolsVersion "26.0.2" + + defaultConfig { + minSdkVersion 16 + targetSdkVersion 26 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + + compile fileTree(include: ['*.jar'], dir: 'libs') + provided 'com.android.support:appcompat-v7:26.+' + +} + +// 指定编码 +tasks.withType(JavaCompile) { + options.encoding = "UTF-8" +} + +// 打包源码 +task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' +} + +task javadoc(type: Javadoc) { + failOnError false + source = android.sourceSets.main.java.sourceFiles + classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) + classpath += configurations.compile +} + +// 制作文档(Javadoc) +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir +} + +artifacts { + archives sourcesJar + archives javadocJar +} diff --git a/library/proguard-rules.pro b/library/proguard-rules.pro new file mode 100644 index 0000000..7e3f83c --- /dev/null +++ b/library/proguard-rules.pro @@ -0,0 +1,25 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /Users/mac/Library/Android/sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/library/src/main/AndroidManifest.xml b/library/src/main/AndroidManifest.xml new file mode 100644 index 0000000..b75981b --- /dev/null +++ b/library/src/main/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + + + diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/M3U8DownloadTask.java b/library/src/main/java/jaygoo/library/m3u8downloader/M3U8DownloadTask.java new file mode 100644 index 0000000..5801aeb --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/M3U8DownloadTask.java @@ -0,0 +1,344 @@ +package jaygoo.library.m3u8downloader; + +import android.os.Handler; +import android.os.Message; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.InterruptedIOException; +import java.net.HttpURLConnection; +import java.net.MalformedURLException; +import java.net.URL; +import java.util.Timer; +import java.util.TimerTask; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +import jaygoo.library.m3u8downloader.bean.M3U8; +import jaygoo.library.m3u8downloader.bean.M3U8Ts; +import jaygoo.library.m3u8downloader.bean.OnM3U8InfoListener; +import jaygoo.library.m3u8downloader.utils.M3U8Log; +import jaygoo.library.m3u8downloader.utils.MUtils; + +/** + * M3U8下载管理器 + * Created by HDL on 2017/8/10. + */ + +class M3U8DownloadTask { + private OnDownloadListener onDownloadListener; + private static final int WHAT_ON_ERROR = 1001; + private static final int WHAT_ON_PROGRESS = 1002; + private static final int WHAT_ON_SUCCESS = 1003; + //加密Key,默认为空,不加密 + private String encryptKey = null; + private String m3u8FileName = "local.m3u8"; + //文件保存的路径 + private String saveDir; + //当前下载完成的文件个数 + private volatile int curTs = 0; + //总文件的个数 + private volatile int totalTs = 0; + //单个文件的大小 + private volatile long itemFileSize = 0; + //所有文件的大小 + private volatile long totalFileSize = 0; + /** + * 当前已经在下完成的大小 + */ + private long curLength = 0; + /** + * 任务是否正在运行中 + */ + private boolean isRunning = false; + /** + * 线程池最大线程数,默认为3 + */ + private int threadCount = 3; + /** + * 读取超时时间 + */ + private int readTimeout = 30 * 60 * 1000; + /** + * 链接超时时间 + */ + private int connTimeout = 10 * 1000; + /** + * 定时任务 + */ + private Timer netSpeedTimer; + private ExecutorService executor;//线程池 + private Handler mHandler = new Handler() { + @Override + public void handleMessage(Message msg) { + switch (msg.what) { + case WHAT_ON_ERROR: + onDownloadListener.onError((Throwable) msg.obj); + break; + case WHAT_ON_PROGRESS: + onDownloadListener.onDownloading(totalFileSize, itemFileSize, totalTs, curTs); + break; + case WHAT_ON_SUCCESS: + if (netSpeedTimer != null) { + netSpeedTimer.cancel(); + } + onDownloadListener.onSuccess(currentM3U8); + break; + } + } + }; + + private M3U8 currentM3U8; + + public M3U8DownloadTask(){ + connTimeout = M3U8DownloaderConfig.getConnTimeout(); + readTimeout = M3U8DownloaderConfig.getReadTimeout(); + threadCount = M3U8DownloaderConfig.getThreadCount(); + } + + /** + * 开始下载 + * + * @param url + * @param onDownloadListener + */ + public void download(final String url, OnDownloadListener onDownloadListener) { + saveDir = MUtils.getSaveFileDir(url); + M3U8Log.d("start download ,SaveDir: "+ saveDir); + this.onDownloadListener = onDownloadListener; + if (!isRunning()) { + getM3U8Info(url); + } else { + handlerError(new Throwable("Task running")); + } + } + + + public void setEncryptKey(String encryptKey){ + this.encryptKey = encryptKey; + } + + public String getEncryptKey(){ + return encryptKey; + } + + + /** + * 获取任务是否正在执行 + * + * @return + */ + public boolean isRunning() { + return isRunning; + } + + /** + * 先获取m3u8信息 + * + * @param url + */ + private void getM3U8Info(String url) { + + M3U8InfoManger.getInstance().getM3U8Info(url, new OnM3U8InfoListener() { + @Override + public void onSuccess(final M3U8 m3U8) { + currentM3U8 = m3U8; + new Thread() { + @Override + public void run() { + try { + startDownload(m3U8); + if (executor != null) { + executor.shutdown();//下载完成之后要关闭线程池 + } + while (executor != null && !executor.isTerminated()) { + //等待中 + Thread.sleep(100); + } + if (isRunning) { + File m3u8File = MUtils.createLocalM3U8(new File(saveDir), m3u8FileName, currentM3U8); + currentM3U8.setM3u8FilePath(m3u8File.getPath()); + currentM3U8.setDirFilePath(saveDir); + currentM3U8.getFileSize(); + mHandler.sendEmptyMessage(WHAT_ON_SUCCESS); + isRunning = false; + } + } catch (InterruptedIOException e) { + //被中断了,使用stop时会抛出这个,不需要处理 + return; + } catch (IOException e) { + handlerError(e); + return; + } catch (InterruptedException e) { + handlerError(e); + return; + } catch (Exception e) { + handlerError(e); + } + } + }.start(); + } + + @Override + public void onStart() { + + } + + @Override + public void onError(Throwable errorMsg) { + handlerError(errorMsg); + } + }); + } + + /** + * 开始下载 + * 关于断点续传,每个任务会根据url进行生成相应Base64目录 + * 如果任务已经停止、开始下载之前,下一次会判断相关任务目录中已经下载完成的ts文件是否已经下载过了,下载了就不再下载 + * @param m3U8 + */ + private void startDownload(final M3U8 m3U8) { + final File dir = new File(saveDir); + //没有就创建 + if (!dir.exists()) { + dir.mkdirs(); + } + totalTs = m3U8.getTsList().size(); + if (executor != null) { + executor.shutdownNow(); + } + //等待线程池完全关闭 + while (executor != null && !executor.isTerminated()) { + //等待中 + try { + M3U8Log.d("wait"); + Thread.sleep(100); + } catch (InterruptedException e) { + e.printStackTrace(); + } + } + onDownloadListener.onStart(); + isRunning = true; + executor = null; + executor = Executors.newFixedThreadPool(threadCount); + final String basePath = m3U8.getBasePath(); + netSpeedTimer = new Timer(); + netSpeedTimer.schedule(new TimerTask() { + @Override + public void run() { + onDownloadListener.onProgress(curLength); + } + }, 0, 1000); + curTs = 0; + + for (final M3U8Ts m3U8Ts : m3U8.getTsList()) {//循环下载 + executor.execute(new Runnable() { + @Override + public void run() { + + File file; + try { + String fileName = M3U8EncryptHelper.encryptFileName(encryptKey,m3U8Ts.getFile()); + file = new File(dir + File.separator + fileName); + } catch (Exception e) { + file = new File(dir + File.separator + m3U8Ts.getFile()); + } + + if (!file.exists()) {//下载过的就不管了 + + FileOutputStream fos = null; + InputStream inputStream = null; + try { + URL url = new URL(basePath + m3U8Ts.getFile()); + HttpURLConnection conn = (HttpURLConnection) url.openConnection(); + conn.setConnectTimeout(connTimeout); + conn.setReadTimeout(readTimeout); + if (conn.getResponseCode() == 200) { + inputStream = conn.getInputStream(); + fos = new FileOutputStream(file);//会自动创建文件 + int len = 0; + byte[] buf = new byte[8 * 1024 * 1024]; + while ((len = inputStream.read(buf)) != -1) { + curLength += len; + fos.write(buf, 0, len);//写入流中 + } + } else { + handlerError(new Throwable(String.valueOf(conn.getResponseCode()))); + } + } catch (MalformedURLException e) { + handlerError(e); + } catch (IOException e) { + handlerError(e); + } catch (Exception e) { + handlerError(e); + } + finally + {//关流 + if (inputStream != null) { + try { + inputStream.close(); + } catch (IOException e) { + } + } + if (fos != null) { + try { + fos.close(); + } catch (IOException e) { + } + } + } + curTs++; + itemFileSize = file.length(); + m3U8Ts.setFileSize(itemFileSize); + mHandler.sendEmptyMessage(WHAT_ON_PROGRESS); + }else { + curTs ++; + itemFileSize = file.length(); + m3U8Ts.setFileSize(itemFileSize); + } + } + }); + } + } + + + /** + * 通知异常 + * + * @param e + */ + private void handlerError(Throwable e) { + if (!"Task running".equals(e.getMessage())) { + stop(); + } + //不提示被中断的情况 + if ("thread interrupted".equals(e.getMessage())) { + return; + } + Message msg = mHandler.obtainMessage(); + msg.obj = e; + msg.what = WHAT_ON_ERROR; + mHandler.sendMessage(msg); + } + + /** + * 停止任务 + */ + public void stop() { + if (netSpeedTimer != null) { + netSpeedTimer.cancel(); + netSpeedTimer = null; + } + isRunning = false; + if (executor != null) { + executor.shutdownNow(); + } + } + + public File getM3u8File(String url){ + return new File(MUtils.getSaveFileDir(url), m3u8FileName); + } + +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/M3U8Downloader.java b/library/src/main/java/jaygoo/library/m3u8downloader/M3U8Downloader.java new file mode 100644 index 0000000..1753688 --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/M3U8Downloader.java @@ -0,0 +1,257 @@ +package jaygoo.library.m3u8downloader; + +import android.text.TextUtils; + +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +import jaygoo.library.m3u8downloader.bean.M3U8; +import jaygoo.library.m3u8downloader.bean.M3U8Task; +import jaygoo.library.m3u8downloader.bean.M3U8TaskState; +import jaygoo.library.m3u8downloader.utils.M3U8Log; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/17 + * 描 述: M3U8下载器 + * ================================================ + */ +public class M3U8Downloader { + + private long currentTime; + private M3U8Task currentM3U8Task; + private Queue downLoadQueue; + private static M3U8Downloader instance; + private M3U8DownloadTask m3U8DownLoadTask; + private List pauseList = new ArrayList<>(); + private OnM3U8DownloadListener onM3U8DownloadListener; + + private M3U8Downloader() { + downLoadQueue = new LinkedList<>(); + m3U8DownLoadTask = new M3U8DownloadTask(); + } + + public static M3U8Downloader getInstance(){ + if (instance == null){ + instance = new M3U8Downloader(); + } + return instance; + } + + + /** + * 防止快速点击引起ThreadPoolExecutor 频繁创建销毁引起crash + * @return + */ + private boolean isQuicklyClick(){ + boolean result = false; + if (System.currentTimeMillis() - currentTime <= 100){ + result = true; + } + currentTime = System.currentTimeMillis(); + return result; + } + + /** + * 忽略当前任务将其移至队列尾部.开始下一个任务 + */ + private void ignoreDownloadTask() { + if (null != downLoadQueue.poll() && downLoadQueue.size() > 0){ + download(downLoadQueue.element()); + } + } + + /** + * 下载下一个任务,直到任务全部完成 + */ + private void downloadNextTask() { + if (null != downLoadQueue.poll() && downLoadQueue.size() > 0){ + startDownloadTask(downLoadQueue.element()); + }else { + //所有任务都完成了 + if (onM3U8DownloadListener != null && pauseList.size() == 0){ + onM3U8DownloadListener.onAllTaskComplete(); + } + } + } + + /** + * 插队任务 + * @param url + */ + private void insertDownloadTask(String url){ + //停止当前任务 + m3U8DownLoadTask.stop(); + //依次出队,直至找到要插队的任务 + while (!url.equals(downLoadQueue.element())){ + downLoadQueue.poll(); + } + //开始当前任务 + if (downLoadQueue.size() > 0) { + startDownloadTask(downLoadQueue.element()); + } + } + + private void pendingTask(M3U8Task task){ + task.setState(M3U8TaskState.PENDING); + if (onM3U8DownloadListener != null){ + onM3U8DownloadListener.onDownloadPending(task); + } + } + + /** + * 暂停,如果此任务正在下载则暂停,否则无反应 + * @param url + */ + public void pause(String url){ + if (TextUtils.isEmpty(url) || isQuicklyClick())return; + m3U8DownLoadTask.stop(); + pauseList.add(url); + currentM3U8Task.setState(M3U8TaskState.PAUSE); + if (onM3U8DownloadListener != null){ + onM3U8DownloadListener.onDownloadPause(currentM3U8Task); + } + if (downLoadQueue.size() > 0 && url.equals(downLoadQueue.element())){ + downloadNextTask(); + } + } + + /** + * 下载任务,如果当前任务在下载列表中则认为是插队,否则入队等候下载 + * @param url + */ + public void download(String url){ + if (TextUtils.isEmpty(url) || isQuicklyClick())return; + if (downLoadQueue.contains(url)){ + pendingTask(currentM3U8Task); + insertDownloadTask(url); + }else { + pendingTask(new M3U8Task(url)); + downLoadQueue.offer(url); + startDownloadTask(url); + } + } + + /** + * 检查m3u8文件是否存在 + * @param url + * @return + */ + public boolean checkM3U8IsExist(String url){ + return m3U8DownLoadTask.getM3u8File(url).exists(); + } + + /** + * 得到m3u8文件路径 + * @param url + * @return + */ + public String getM3U8Path(String url){ + return m3U8DownLoadTask.getM3u8File(url).getPath(); + } + + public boolean isRunning(){ + return downLoadQueue.size() > 0 && m3U8DownLoadTask.isRunning(); + } + + public List getPauseList(){ + return pauseList; + } + + public boolean isTaskDownloading(String url){ + return !TextUtils.isEmpty(url) + && downLoadQueue.size() > 0 + && url.equals(downLoadQueue.element()) + && m3U8DownLoadTask.isRunning(); + } + + + public void setOnM3U8DownloadListener(OnM3U8DownloadListener onM3U8DownloadListener) { + this.onM3U8DownloadListener = onM3U8DownloadListener; + } + + public void setEncryptKey(String encryptKey){ + m3U8DownLoadTask.setEncryptKey(encryptKey); + } + + public String getEncryptKey(){ + return m3U8DownLoadTask.getEncryptKey(); + } + + private void startDownloadTask(String url){ + if (m3U8DownLoadTask.isRunning())return; + try { + if (pauseList.contains(url))pauseList.remove(url); + m3U8DownLoadTask.download(url, onDownloadListener); + }catch (Exception e){ + M3U8Log.e("startDownloadTask Error:"+e.getMessage()); + } + } + + private OnDownloadListener onDownloadListener = new OnDownloadListener() { + private long lastLength; + private float downloadProgress; + + @Override + public void onDownloading(long totalFileSize, long itemFileSize, int totalTs, int curTs) { + if (!m3U8DownLoadTask.isRunning())return; + M3U8Log.d("onDownloading: "+totalFileSize+"|"+itemFileSize+"|"+totalTs+"|"+curTs); + currentM3U8Task.setState(M3U8TaskState.DOWNLOADING); + downloadProgress = 1.0f * curTs / totalTs; + + if (onM3U8DownloadListener != null){ + onM3U8DownloadListener.onDownloadItem(currentM3U8Task, itemFileSize, totalTs, curTs); + } + } + + @Override + public void onSuccess(M3U8 m3U8) { + m3U8DownLoadTask.stop(); + currentM3U8Task.setState( M3U8TaskState.SUCCESS); + if (onM3U8DownloadListener != null) { + onM3U8DownloadListener.onDownloadSuccess(currentM3U8Task); + } + M3U8Log.d("m3u8 Downloader onSuccess: "+ m3U8); + downloadNextTask(); + + } + + @Override + public void onProgress(long curLength) { + if (curLength - lastLength > 0) { + currentM3U8Task.setProgress(downloadProgress); + currentM3U8Task.setSpeed(curLength - lastLength); + if (onM3U8DownloadListener != null ){ + onM3U8DownloadListener.onDownloadProgress(currentM3U8Task); + } + lastLength = curLength; + } + } + + @Override + public void onStart() { + currentM3U8Task = new M3U8Task(downLoadQueue.peek()); + currentM3U8Task.setState(M3U8TaskState.PREPARE); + if (onM3U8DownloadListener != null){ + onM3U8DownloadListener.onDownloadPrepare(currentM3U8Task); + } + M3U8Log.d("onDownloadPrepare: "+ currentM3U8Task.getUrl()); + } + + @Override + public void onError(Throwable errorMsg) { + ignoreDownloadTask(); + currentM3U8Task.setState(M3U8TaskState.ERROR); + if (onM3U8DownloadListener != null){ + onM3U8DownloadListener.onDownloadError(currentM3U8Task, errorMsg); + } + M3U8Log.e("onError: "+ errorMsg.getMessage()); + } + + }; + +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/M3U8DownloaderConfig.java b/library/src/main/java/jaygoo/library/m3u8downloader/M3U8DownloaderConfig.java new file mode 100644 index 0000000..499bae1 --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/M3U8DownloaderConfig.java @@ -0,0 +1,78 @@ +package jaygoo.library.m3u8downloader; + +import android.content.Context; +import android.os.Environment; + +import java.io.File; + +import jaygoo.library.m3u8downloader.utils.SPHelper; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/24 + * 描 述: M3U8Downloader 配置类 + * ================================================ + */ +public class M3U8DownloaderConfig { + + private static final String TAG_SAVE_DIR = "TAG_SAVE_DIR_M3U8"; + private static final String TAG_THREAD_COUNT = "TAG_THREAD_COUNT_M3U8"; + private static final String TAG_CONN_TIMEOUT = "TAG_CONN_TIMEOUT_M3U8"; + private static final String TAG_READ_TIMEOUT = "TAG_READ_TIMEOUT_M3U8"; + private static final String TAG_DEBUG = "TAG_DEBUG_M3U8"; + + public static M3U8DownloaderConfig build(Context context){ + SPHelper.init(context); + return new M3U8DownloaderConfig(); + } + + public M3U8DownloaderConfig setSaveDir(String saveDir){ + SPHelper.putString(TAG_SAVE_DIR, saveDir); + return this; + } + + public static String getSaveDir(){ + return SPHelper.getString(TAG_SAVE_DIR, Environment.getExternalStorageDirectory().getPath() + File.separator + "M3u8Downloader"); + } + + public M3U8DownloaderConfig setThreadCount(int threadCount){ + if (threadCount > 5) threadCount = 5; + if (threadCount <= 0) threadCount = 1; + SPHelper.putInt(TAG_THREAD_COUNT, threadCount); + return this; + } + + public static int getThreadCount(){ + return SPHelper.getInt(TAG_THREAD_COUNT, 3); + } + + public M3U8DownloaderConfig setConnTimeout(int connTimeout){ + SPHelper.putInt(TAG_CONN_TIMEOUT, connTimeout); + return this; + } + + public static int getConnTimeout(){ + return SPHelper.getInt(TAG_CONN_TIMEOUT, 10 * 1000); + } + + public M3U8DownloaderConfig setReadTimeout(int readTimeout){ + SPHelper.putInt(TAG_READ_TIMEOUT, readTimeout); + return this; + } + + public static int getReadTimeout(){ + return SPHelper.getInt(TAG_READ_TIMEOUT, 30 * 60 * 1000); + } + + + public M3U8DownloaderConfig setDebugMode(boolean debug){ + SPHelper.putBoolean(TAG_DEBUG, debug); + return this; + } + + public static boolean isDebugMode(){ + return SPHelper.getBoolean(TAG_DEBUG, false); + } +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/M3U8EncryptHelper.java b/library/src/main/java/jaygoo/library/m3u8downloader/M3U8EncryptHelper.java new file mode 100644 index 0000000..404bebe --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/M3U8EncryptHelper.java @@ -0,0 +1,74 @@ +package jaygoo.library.m3u8downloader; + +import android.text.TextUtils; + +import java.io.File; + +import jaygoo.library.m3u8downloader.utils.AES128Utils; + +import static jaygoo.library.m3u8downloader.utils.AES128Utils.parseByte2HexStr; +import static jaygoo.library.m3u8downloader.utils.AES128Utils.parseHexStr2Byte; +import static jaygoo.library.m3u8downloader.utils.MUtils.readFile; +import static jaygoo.library.m3u8downloader.utils.MUtils.saveFile; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/27 + * 描 述: M3U8加密助手类 + * ================================================ + */ +public class M3U8EncryptHelper { + public static void encryptFile(String key, String fileName) throws Exception{ + if (TextUtils.isEmpty(key)) return; + byte[] bytes = AES128Utils.getAESEncode(key,readFile(fileName)); + saveFile(bytes, fileName); + } + + public static void decryptFile(String key, String fileName) throws Exception{ + if (TextUtils.isEmpty(key)) return; + byte[] bytes = AES128Utils.getAESDecode(key,readFile(fileName)); + saveFile(bytes, fileName); + } + + + public static String encryptFileName(String key, String str) throws Exception{ + if (TextUtils.isEmpty(key)) return str; + str = parseByte2HexStr(AES128Utils.getAESEncode(key,str)); + return str; + } + + public static String decryptFileName(String key, String str) throws Exception{ + if (TextUtils.isEmpty(key)) return str; + str = new String(AES128Utils.getAESDecode(key,parseHexStr2Byte(str))); + return str; + } + + public static void encryptTsFilesName(String key, String dirPath) throws Exception{ + if (TextUtils.isEmpty(key)) return; + File dirFile = new File(dirPath); + if (dirFile.exists() && dirFile.isDirectory()){ + File[] files = dirFile.listFiles(); + for (int i = 0; i < files.length; i++) {// 遍历目录下所有的文件 + if (files[i].getName().contains("m3u8"))continue; + File renameFile = new File(dirPath, encryptFileName(key, files[i].getName())); + files[i].renameTo(renameFile); + } + } + + } + + public static void decryptTsFilesName(String key, String dirPath) throws Exception{ + if (TextUtils.isEmpty(key)) return ; + File dirFile = new File(dirPath); + if (dirFile.exists() && dirFile.isDirectory()){ + File[] files = dirFile.listFiles(); + for (int i = 0; i < files.length; i++) {// 遍历目录下所有的文件 + if (files[i].getName().contains("m3u8"))continue; + File renameFile = new File(dirPath,decryptFileName(key, files[i].getName())); + files[i].renameTo(renameFile); + } + } + } +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/M3U8InfoManger.java b/library/src/main/java/jaygoo/library/m3u8downloader/M3U8InfoManger.java new file mode 100644 index 0000000..17b8c90 --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/M3U8InfoManger.java @@ -0,0 +1,96 @@ +package jaygoo.library.m3u8downloader; + +import android.os.Handler; +import android.os.Message; + + + +import java.io.IOException; + +import jaygoo.library.m3u8downloader.bean.M3U8; +import jaygoo.library.m3u8downloader.bean.OnM3U8InfoListener; +import jaygoo.library.m3u8downloader.utils.MUtils; + +/** + * 获取M3U8信息的管理器 + * Created by HDL on 2017/8/10. + */ + +public class M3U8InfoManger { + private static M3U8InfoManger mM3U8InfoManger; + private OnM3U8InfoListener onM3U8InfoListener; + private static final int WHAT_ON_ERROR = 1101; + private static final int WHAT_ON_SUCCESS = 1102; + private Handler mHandler = new Handler() { + @Override + public void handleMessage(Message msg) { + switch (msg.what) { + case WHAT_ON_ERROR: + onM3U8InfoListener.onError((Throwable) msg.obj); + break; + case WHAT_ON_SUCCESS: + onM3U8InfoListener.onSuccess((M3U8) msg.obj); + break; + } + } + }; + + private M3U8InfoManger() { + } + + public static M3U8InfoManger getInstance() { + synchronized (M3U8InfoManger.class) { + if (mM3U8InfoManger == null) { + mM3U8InfoManger = new M3U8InfoManger(); + } + } + return mM3U8InfoManger; + } + + /** + * 获取m3u8信息 + * + * @param url + * @param onM3U8InfoListener + */ + public synchronized void getM3U8Info(final String url, OnM3U8InfoListener onM3U8InfoListener) { + this.onM3U8InfoListener = onM3U8InfoListener; + onM3U8InfoListener.onStart(); + new Thread() { + @Override + public void run() { + try { + M3U8 m3u8 = MUtils.parseIndex(url); + handlerSuccess(m3u8); + } catch (IOException e) { + handlerError(e); + } + } + }.start(); + + } + + /** + * 通知异常 + * + * @param e + */ + private void handlerError(Throwable e) { + Message msg = mHandler.obtainMessage(); + msg.obj = e; + msg.what = WHAT_ON_ERROR; + mHandler.sendMessage(msg); + } + + /** + * 通知成功 + * + * @param m3u8 + */ + private void handlerSuccess(M3U8 m3u8) { + Message msg = mHandler.obtainMessage(); + msg.obj = m3u8; + msg.what = WHAT_ON_SUCCESS; + mHandler.sendMessage(msg); + } +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/OnDownloadListener.java b/library/src/main/java/jaygoo/library/m3u8downloader/OnDownloadListener.java new file mode 100644 index 0000000..3204264 --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/OnDownloadListener.java @@ -0,0 +1,35 @@ +package jaygoo.library.m3u8downloader; + + +import jaygoo.library.m3u8downloader.bean.BaseListener; +import jaygoo.library.m3u8downloader.bean.M3U8; + +/** + * 下载监听 + * Created by HDL on 2017/8/10. + */ + +interface OnDownloadListener extends BaseListener { + /** + * 下载m3u8文件. + * 注意:这个方法是异步的(子线程中执行),所以不能在此方法中回调,其他方法为主线程中回调 + * + * @param totalFileSize + * @param itemFileSize 单个文件的大小 + * @param totalTs ts总数 + * @param curTs 当前下载完成的ts个数 + */ + void onDownloading(long totalFileSize, long itemFileSize, int totalTs, int curTs); + + /** + * 下载成功 + */ + void onSuccess(M3U8 m3U8); + + /** + * 当前已经下载的文件大小 + * + * @param curLength + */ + void onProgress(long curLength); +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/OnM3U8DownloadListener.java b/library/src/main/java/jaygoo/library/m3u8downloader/OnM3U8DownloadListener.java new file mode 100644 index 0000000..6f8d3d5 --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/OnM3U8DownloadListener.java @@ -0,0 +1,49 @@ +package jaygoo.library.m3u8downloader; + +import jaygoo.library.m3u8downloader.bean.M3U8Task; + + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/17 + * 描 述: + * ================================================ + */ +public abstract class OnM3U8DownloadListener { + + //切片下载 + public void onDownloadItem(M3U8Task task, long itemFileSize, int totalTs, int curTs) { + + } + + public void onDownloadSuccess(M3U8Task task) { + + } + + public void onDownloadPause(M3U8Task task) { + + } + + public void onDownloadPending(M3U8Task task) { + + } + + public void onDownloadProgress(M3U8Task task) { + + } + + public void onDownloadPrepare(M3U8Task task) { + + } + + public void onDownloadError(M3U8Task task, Throwable errorMsg) { + + } + + public void onAllTaskComplete() { + + } + +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/bean/BaseListener.java b/library/src/main/java/jaygoo/library/m3u8downloader/bean/BaseListener.java new file mode 100644 index 0000000..f892d74 --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/bean/BaseListener.java @@ -0,0 +1,20 @@ +package jaygoo.library.m3u8downloader.bean; + +/** + * 监听基类 + * Created by HDL on 2017/8/10. + */ + +public interface BaseListener { + /** + * 开始的时候回调 + */ + void onStart(); + + /** + * 错误的时候回调 + * + * @param errorMsg + */ + void onError(Throwable errorMsg); +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8.java b/library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8.java new file mode 100644 index 0000000..b4ebfdb --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8.java @@ -0,0 +1,113 @@ +package jaygoo.library.m3u8downloader.bean; + +import android.text.TextUtils; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +import jaygoo.library.m3u8downloader.utils.MUtils; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/20 + * 描 述: m3u8实体类 + * ================================================ + */ +public class M3U8 { + private String basePath;//去除后缀文件名的url + private String m3u8FilePath;//m3u8索引文件路径 + private String dirFilePath;//切片文件目录 + private long fileSize;//切片文件总大小 + private long totalTime;//总时间,单位毫秒 + private List tsList = new ArrayList();//视频切片 + + public String getBasePath() { + return basePath; + } + + public void setBasePath(String basePath) { + this.basePath = basePath; + } + + public String getM3u8FilePath() { + return m3u8FilePath; + } + + public void setM3u8FilePath(String m3u8FilePath) { + this.m3u8FilePath = m3u8FilePath; + } + + public String getDirFilePath() { + return dirFilePath; + } + + public void setDirFilePath(String dirFilePath) { + this.dirFilePath = dirFilePath; + } + + public long getFileSize() { + fileSize = 0; + for (M3U8Ts m3U8Ts : tsList){ + fileSize = fileSize + m3U8Ts.getFileSize(); + } + return fileSize; + } + + public String getFormatFileSize() { + fileSize = getFileSize(); + if (fileSize == 0)return ""; + return MUtils.formatFileSize(fileSize); + } + + public void setFileSize(long fileSize) { + this.fileSize = fileSize; + } + + public List getTsList() { + return tsList; + } + + public void setTsList(List tsList) { + this.tsList = tsList; + } + + public void addTs(M3U8Ts ts) { + this.tsList.add(ts); + } + + public long getTotalTime(){ + totalTime = 0; + for (M3U8Ts m3U8Ts : tsList){ + totalTime = totalTime + (int)(m3U8Ts.getSeconds() * 1000); + } + return totalTime; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("basePath: " + basePath); + sb.append("\nm3u8FilePath: " + m3u8FilePath); + sb.append("\ndirFilePath: " + dirFilePath); + sb.append("\nfileSize: " + getFileSize()); + sb.append("\nfileFormatSize: " + MUtils.formatFileSize(fileSize)); + sb.append("\ntotalTime: " + totalTime); + + for (M3U8Ts ts : tsList) { + sb.append("\nts: " + ts); + } + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof M3U8){ + M3U8 m3U8 = (M3U8)obj; + if (basePath != null && basePath.equals(m3U8.basePath))return true; + } + return false; + } +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8Task.java b/library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8Task.java new file mode 100644 index 0000000..a3b9bbf --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8Task.java @@ -0,0 +1,86 @@ +package jaygoo.library.m3u8downloader.bean; + +import jaygoo.library.m3u8downloader.utils.MUtils; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/22 + * 描 述: M3U8下载任务 + * ================================================ + */ +public class M3U8Task { + + private String url; + private int state = M3U8TaskState.DEFAULT; + private long speed; + private float progress; + private M3U8 m3U8; + + private M3U8Task(){} + + public M3U8Task(String url){ + this.url = url; + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof M3U8Task){ + M3U8Task m3U8Task = (M3U8Task)obj; + if (url != null && url.equals(m3U8Task.getUrl()))return true; + } + return false; + } + + public String getFormatSpeed() { + if (speed == 0)return ""; + return MUtils.formatFileSize(speed) + "/s"; + } + + public String getFormatTotalSize() { + if (m3U8 == null)return ""; + return m3U8.getFormatFileSize(); + } + + public float getProgress() { + return progress; + } + + public void setProgress(float progress) { + this.progress = progress; + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public int getState() { + return state; + } + + public void setState(int state) { + this.state = state; + } + + public long getSpeed() { + return speed; + } + + public void setSpeed(long speed) { + this.speed = speed; + } + + public M3U8 getM3U8() { + return m3U8; + } + + public void setM3U8(M3U8 m3U8) { + this.m3U8 = m3U8; + } + +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8TaskState.java b/library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8TaskState.java new file mode 100644 index 0000000..80cb72a --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8TaskState.java @@ -0,0 +1,19 @@ +package jaygoo.library.m3u8downloader.bean; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/22 + * 描 述: + * ================================================ + */ +public class M3U8TaskState { + public static final int DEFAULT = 0;//默认状态 + public static final int PENDING = -1;//下载排队 + public static final int PREPARE = 1;//下载准备中 + public static final int DOWNLOADING = 2;//下载中 + public static final int SUCCESS = 3;//下载完成 + public static final int ERROR = 4;//下载出错 + public static final int PAUSE = 5;//下载暂停 +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8Ts.java b/library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8Ts.java new file mode 100644 index 0000000..e531225 --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/bean/M3U8Ts.java @@ -0,0 +1,64 @@ +package jaygoo.library.m3u8downloader.bean; + +import android.support.annotation.NonNull; + +/** + * m3u8切片类 + * Created by HDL on 2017/7/24. + */ + +public class M3U8Ts implements Comparable { + private String file; + private long fileSize; + private float seconds; + + public M3U8Ts(String file, float seconds) { + this.file = file; + this.seconds = seconds; + } + + public String getFile() { + return file; + } + + public void setFile(String file) { + this.file = file; + } + + public float getSeconds() { + return seconds; + } + + public void setSeconds(float seconds) { + this.seconds = seconds; + } + + @Override + public String toString() { + return file + " (" + seconds + "sec)"; + } + + /** + * 获取时间 + */ + public long getLongDate() { + try { + return Long.parseLong(file.substring(0, file.lastIndexOf("."))); + }catch (NumberFormatException e){ + return 0; + } + } + + @Override + public int compareTo(@NonNull M3U8Ts o) { + return file.compareTo(o.file); + } + + public long getFileSize() { + return fileSize; + } + + public void setFileSize(long fileSize) { + this.fileSize = fileSize; + } +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/bean/OnM3U8InfoListener.java b/library/src/main/java/jaygoo/library/m3u8downloader/bean/OnM3U8InfoListener.java new file mode 100644 index 0000000..40a1b4f --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/bean/OnM3U8InfoListener.java @@ -0,0 +1,16 @@ +package jaygoo.library.m3u8downloader.bean; + + + +/** + * 获取M3U8信息 + * Created by HDL on 2017/8/10. + */ + +public interface OnM3U8InfoListener extends BaseListener { + + /** + * 获取成功的时候回调 + */ + void onSuccess(M3U8 m3U8); +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/server/M3u8Server.java b/library/src/main/java/jaygoo/library/m3u8downloader/server/M3u8Server.java new file mode 100644 index 0000000..45c4abf --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/server/M3u8Server.java @@ -0,0 +1,122 @@ +package jaygoo.library.m3u8downloader.server; + + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.IOException; + +import jaygoo.library.m3u8downloader.M3U8Downloader; +import jaygoo.library.m3u8downloader.M3U8DownloaderConfig; +import jaygoo.library.m3u8downloader.M3U8EncryptHelper; +import jaygoo.library.m3u8downloader.bean.M3U8; +import jaygoo.library.m3u8downloader.utils.M3U8Log; + +import static jaygoo.library.m3u8downloader.server.NanoHTTPD.Response.Status; + + +public class M3u8Server extends NanoHTTPD { + private static NanoHTTPD server; + public static final int PORT = 8686; + private static String filesDir = null; + + public static String createLocalUrl(String filePath){ + if (filePath != null) filesDir = filePath.substring(0, filePath.lastIndexOf("/") + 1); + return String.format("http://127.0.0.1:%d%s", PORT,filePath); + } + + /** + * 启动服务 + */ + public static void execute() { + try { + server = M3u8Server.class.newInstance(); + server.start(NanoHTTPD.SOCKET_READ_TIMEOUT, false); + } catch (IOException ioe) { + M3U8Log.e("M3u8Server 启动服务失败:\n" + ioe); + System.exit(-1); + } catch (Exception e) { + M3U8Log.e("M3u8Server 启动服务失败:\n" + e); + System.exit(-1); + } + + M3U8Log.d("M3u8Server 服务启动成功:\n"); + + try { + System.in.read(); + } catch (Throwable ignored) { + } + } + + public static void onPause(final String encryptKey){ + new Thread(new Runnable() { + @Override + public void run() { + try { + M3U8EncryptHelper.encryptTsFilesName(encryptKey,filesDir); + } catch (Exception e) { + M3U8Log.e("M3u8Server onPause"+e.getMessage()); + } + } + }).start(); + + } + + public static void onResume(final String encryptKey){ + new Thread(new Runnable() { + @Override + public void run() { + try { + M3U8EncryptHelper.decryptTsFilesName(encryptKey,filesDir); + } catch (Exception e) { + M3U8Log.e("M3u8Server onResume"+e.getMessage()); + } + } + }).start(); + + } + + /** + * 关闭服务 + */ + public static void finish() { + if(server != null){ + server.stop(); + M3U8Log.d("M3u8Server 服务已经关闭:\n"); + server = null; + } + } + + public M3u8Server() { + super(PORT); + } + + @Override + public Response serve(IHTTPSession session) { + + String url = String.valueOf(session.getUri()); + + M3U8Log.d("M3u8Server 请求URL:" + url); + + File file = new File(url); + + if(file.exists()){ + FileInputStream fis = null; + try { + fis = new FileInputStream(file); + } catch (FileNotFoundException e) { + e.printStackTrace(); + return newFixedLengthResponse(Status.NOT_FOUND, "text/html", "文件不存在:" + url); + } + // ts文件 + String mimeType = "video/mpeg"; + if(url.contains(".m3u8")){ + // m3u8文件 + mimeType = "video/x-mpegURL"; + } + return newChunkedResponse(Status.OK, mimeType, fis); + } else { + return newFixedLengthResponse(Status.NOT_FOUND, "text/html", "文件不存在:" + url); + } + } +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/server/NanoHTTPD.java b/library/src/main/java/jaygoo/library/m3u8downloader/server/NanoHTTPD.java new file mode 100644 index 0000000..1f22e79 --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/server/NanoHTTPD.java @@ -0,0 +1,2314 @@ +package jaygoo.library.m3u8downloader.server; + +/* + * #%L + * NanoHttpd-Core + * %% + * Copyright (C) 2012 - 2015 nanohttpd + * %% + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. Neither the name of the nanohttpd nor the names of its contributors + * may be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * #L% + */ + +import java.io.BufferedInputStream; +import java.io.BufferedReader; +import java.io.BufferedWriter; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.Closeable; +import java.io.DataOutput; +import java.io.DataOutputStream; +import java.io.File; +import java.io.FileOutputStream; +import java.io.FilterOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.OutputStream; +import java.io.OutputStreamWriter; +import java.io.PrintWriter; +import java.io.RandomAccessFile; +import java.io.UnsupportedEncodingException; +import java.net.InetAddress; +import java.net.InetSocketAddress; +import java.net.ServerSocket; +import java.net.Socket; +import java.net.SocketException; +import java.net.SocketTimeoutException; +import java.net.URL; +import java.net.URLDecoder; +import java.nio.ByteBuffer; +import java.nio.channels.FileChannel; +import java.nio.charset.Charset; +import java.nio.charset.CharsetEncoder; +import java.security.KeyStore; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collections; +import java.util.Date; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Properties; +import java.util.StringTokenizer; +import java.util.TimeZone; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import java.util.zip.GZIPOutputStream; + +import javax.net.ssl.KeyManager; +import javax.net.ssl.KeyManagerFactory; +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLException; +import javax.net.ssl.SSLServerSocket; +import javax.net.ssl.SSLServerSocketFactory; +import javax.net.ssl.TrustManagerFactory; +import jaygoo.library.m3u8downloader.server.NanoHTTPD.Response.Status; +import jaygoo.library.m3u8downloader.server.NanoHTTPD.Response.IStatus; + + +/** + * A simple, tiny, nicely embeddable HTTP server in Java + *

+ *

+ * NanoHTTPD + *

+ * Copyright (c) 2012-2013 by Paul S. Hawke, 2001,2005-2013 by Jarno Elonen, + * 2010 by Konstantinos Togias + *

+ *

+ *

+ * Features + limitations: + *

    + *

    + *

  • Only one Java file
  • + *
  • Java 5 compatible
  • + *
  • Released as open source, Modified BSD licence
  • + *
  • No fixed config files, logging, authorization etc. (Implement yourself if + * you need them.)
  • + *
  • Supports parameter parsing of GET and POST methods (+ rudimentary PUT + * support in 1.25)
  • + *
  • Supports both dynamic content and file serving
  • + *
  • Supports file upload (since version 1.2, 2010)
  • + *
  • Supports partial content (streaming)
  • + *
  • Supports ETags
  • + *
  • Never caches anything
  • + *
  • Doesn't limit bandwidth, request time or simultaneous connections
  • + *
  • Default code serves files and shows all HTTP parameters and headers
  • + *
  • File server supports directory listing, index.html and index.htm
  • + *
  • File server supports partial content (streaming)
  • + *
  • File server supports ETags
  • + *
  • File server does the 301 redirection trick for directories without '/'
  • + *
  • File server supports simple skipping for files (continue download)
  • + *
  • File server serves also very long files without memory overhead
  • + *
  • Contains a built-in list of most common MIME types
  • + *
  • All header names are converted to lower case so they don't vary between + * browsers/clients
  • + *

    + *

+ *

+ *

+ * How to use: + *

    + *

    + *

  • Subclass and implement serve() and embed to your own program
  • + *

    + *

+ *

+ * See the separate "LICENSE.md" file for the distribution license (Modified BSD + * licence) + */ +public abstract class NanoHTTPD { + + /** + * Pluggable strategy for asynchronously executing requests. + */ + public interface AsyncRunner { + + void closeAll(); + + void closed(ClientHandler clientHandler); + + void exec(ClientHandler code); + } + + /** + * The runnable that will be used for every new client connection. + */ + public class ClientHandler implements Runnable { + + private final InputStream inputStream; + + private final Socket acceptSocket; + + private ClientHandler(InputStream inputStream, Socket acceptSocket) { + this.inputStream = inputStream; + this.acceptSocket = acceptSocket; + } + + public void close() { + safeClose(this.inputStream); + safeClose(this.acceptSocket); + } + + @Override + public void run() { + OutputStream outputStream = null; + try { + outputStream = this.acceptSocket.getOutputStream(); + TempFileManager tempFileManager = NanoHTTPD.this.tempFileManagerFactory.create(); + HTTPSession session = new HTTPSession(tempFileManager, this.inputStream, outputStream, this.acceptSocket.getInetAddress()); + while (!this.acceptSocket.isClosed()) { + session.execute(); + } + } catch (Exception e) { + // When the socket is closed by the client, + // we throw our own SocketException + // to break the "keep alive" loop above. If + // the exception was anything other + // than the expected SocketException OR a + // SocketTimeoutException, print the + // stacktrace + if (!(e instanceof SocketException && "NanoHttpd Shutdown".equals(e.getMessage())) && !(e instanceof SocketTimeoutException)) { + NanoHTTPD.LOG.log(Level.SEVERE, "Communication with the client broken, or an bug in the handler code", e); + } + } finally { + safeClose(outputStream); + safeClose(this.inputStream); + safeClose(this.acceptSocket); + NanoHTTPD.this.asyncRunner.closed(this); + } + } + } + + public static class Cookie { + + public static String getHTTPTime(int days) { + Calendar calendar = Calendar.getInstance(); + SimpleDateFormat dateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.US); + dateFormat.setTimeZone(TimeZone.getTimeZone("GMT")); + calendar.add(Calendar.DAY_OF_MONTH, days); + return dateFormat.format(calendar.getTime()); + } + + private final String n, v, e; + + public Cookie(String name, String value) { + this(name, value, 30); + } + + public Cookie(String name, String value, int numDays) { + this.n = name; + this.v = value; + this.e = getHTTPTime(numDays); + } + + public Cookie(String name, String value, String expires) { + this.n = name; + this.v = value; + this.e = expires; + } + + public String getHTTPHeader() { + String fmt = "%s=%s; expires=%s"; + return String.format(fmt, this.n, this.v, this.e); + } + } + + /** + * Provides rudimentary support for cookies. Doesn't support 'path', + * 'secure' nor 'httpOnly'. Feel free to improve it and/or add unsupported + * features. + * + * @author LordFokas + */ + public class CookieHandler implements Iterable { + + private final HashMap cookies = new HashMap(); + + private final ArrayList queue = new ArrayList(); + + public CookieHandler(Map httpHeaders) { + String raw = httpHeaders.get("cookie"); + if (raw != null) { + String[] tokens = raw.split(";"); + for (String token : tokens) { + String[] data = token.trim().split("="); + if (data.length == 2) { + this.cookies.put(data[0], data[1]); + } + } + } + } + + /** + * Set a cookie with an expiration date from a month ago, effectively + * deleting it on the client side. + * + * @param name + * The cookie name. + */ + public void delete(String name) { + set(name, "-delete-", -30); + } + + @Override + public Iterator iterator() { + return this.cookies.keySet().iterator(); + } + + /** + * Read a cookie from the HTTP Headers. + * + * @param name + * The cookie's name. + * @return The cookie's value if it exists, null otherwise. + */ + public String read(String name) { + return this.cookies.get(name); + } + + public void set(Cookie cookie) { + this.queue.add(cookie); + } + + /** + * Sets a cookie. + * + * @param name + * The cookie's name. + * @param value + * The cookie's value. + * @param expires + * How many days until the cookie expires. + */ + public void set(String name, String value, int expires) { + this.queue.add(new Cookie(name, value, Cookie.getHTTPTime(expires))); + } + + /** + * Internally used by the webserver to add all queued cookies into the + * Response's HTTP Headers. + * + * @param response + * The Response object to which headers the queued cookies + * will be added. + */ + public void unloadQueue(Response response) { + for (Cookie cookie : this.queue) { + response.addHeader("Set-Cookie", cookie.getHTTPHeader()); + } + } + } + + /** + * Default threading strategy for NanoHTTPD. + *

+ *

+ * By default, the server spawns a new Thread for every incoming request. + * These are set to daemon status, and named according to the request + * number. The name is useful when profiling the application. + *

+ */ + public static class DefaultAsyncRunner implements AsyncRunner { + + private long requestCount; + + private final List running = Collections.synchronizedList(new ArrayList()); + + /** + * @return a list with currently running clients. + */ + public List getRunning() { + return running; + } + + @Override + public void closeAll() { + // copy of the list for concurrency + for (ClientHandler clientHandler : new ArrayList(this.running)) { + clientHandler.close(); + } + } + + @Override + public void closed(ClientHandler clientHandler) { + this.running.remove(clientHandler); + } + + @Override + public void exec(ClientHandler clientHandler) { + ++this.requestCount; + Thread t = new Thread(clientHandler); + t.setDaemon(true); + t.setName("NanoHttpd Request Processor (#" + this.requestCount + ")"); + this.running.add(clientHandler); + t.start(); + } + } + + /** + * Default strategy for creating and cleaning up temporary files. + *

+ *

+ * By default, files are created by File.createTempFile() in + * the directory specified. + *

+ */ + public static class DefaultTempFile implements TempFile { + + private final File file; + + private final OutputStream fstream; + + public DefaultTempFile(File tempdir) throws IOException { + this.file = File.createTempFile("NanoHTTPD-", "", tempdir); + this.fstream = new FileOutputStream(this.file); + } + + @Override + public void delete() throws Exception { + safeClose(this.fstream); + if (!this.file.delete()) { + throw new Exception("could not delete temporary file"); + } + } + + @Override + public String getName() { + return this.file.getAbsolutePath(); + } + + @Override + public OutputStream open() throws Exception { + return this.fstream; + } + } + + /** + * Default strategy for creating and cleaning up temporary files. + *

+ *

+ * This class stores its files in the standard location (that is, wherever + * java.io.tmpdir points to). Files are added to an internal + * list, and deleted when no longer needed (that is, when + * clear() is invoked at the end of processing a request). + *

+ */ + public static class DefaultTempFileManager implements TempFileManager { + + private final File tmpdir; + + private final List tempFiles; + + public DefaultTempFileManager() { + this.tmpdir = new File(System.getProperty("java.io.tmpdir")); + if (!tmpdir.exists()) { + tmpdir.mkdirs(); + } + this.tempFiles = new ArrayList(); + } + + @Override + public void clear() { + for (TempFile file : this.tempFiles) { + try { + file.delete(); + } catch (Exception ignored) { + NanoHTTPD.LOG.log(Level.WARNING, "could not delete file ", ignored); + } + } + this.tempFiles.clear(); + } + + @Override + public TempFile createTempFile(String filename_hint) throws Exception { + DefaultTempFile tempFile = new DefaultTempFile(this.tmpdir); + this.tempFiles.add(tempFile); + return tempFile; + } + } + + /** + * Default strategy for creating and cleaning up temporary files. + */ + private class DefaultTempFileManagerFactory implements TempFileManagerFactory { + + @Override + public TempFileManager create() { + return new DefaultTempFileManager(); + } + } + + /** + * Creates a normal ServerSocket for TCP connections + */ + public static class DefaultServerSocketFactory implements ServerSocketFactory { + + @Override + public ServerSocket create() throws IOException { + return new ServerSocket(); + } + + } + + /** + * Creates a new SSLServerSocket + */ + public static class SecureServerSocketFactory implements ServerSocketFactory { + + private SSLServerSocketFactory sslServerSocketFactory; + + private String[] sslProtocols; + + public SecureServerSocketFactory(SSLServerSocketFactory sslServerSocketFactory, String[] sslProtocols) { + this.sslServerSocketFactory = sslServerSocketFactory; + this.sslProtocols = sslProtocols; + } + + @Override + public ServerSocket create() throws IOException { + SSLServerSocket ss = null; + ss = (SSLServerSocket) this.sslServerSocketFactory.createServerSocket(); + if (this.sslProtocols != null) { + ss.setEnabledProtocols(this.sslProtocols); + } else { + ss.setEnabledProtocols(ss.getSupportedProtocols()); + } + ss.setUseClientMode(false); + ss.setWantClientAuth(false); + ss.setNeedClientAuth(false); + return ss; + } + + } + + private static final String CONTENT_DISPOSITION_REGEX = "([ |\t]*Content-Disposition[ |\t]*:)(.*)"; + + private static final Pattern CONTENT_DISPOSITION_PATTERN = Pattern.compile(CONTENT_DISPOSITION_REGEX, Pattern.CASE_INSENSITIVE); + + private static final String CONTENT_TYPE_REGEX = "([ |\t]*content-type[ |\t]*:)(.*)"; + + private static final Pattern CONTENT_TYPE_PATTERN = Pattern.compile(CONTENT_TYPE_REGEX, Pattern.CASE_INSENSITIVE); + + private static final String CONTENT_DISPOSITION_ATTRIBUTE_REGEX = "[ |\t]*([a-zA-Z]*)[ |\t]*=[ |\t]*['|\"]([^\"^']*)['|\"]"; + + private static final Pattern CONTENT_DISPOSITION_ATTRIBUTE_PATTERN = Pattern.compile(CONTENT_DISPOSITION_ATTRIBUTE_REGEX); + + protected static class ContentType { + + private static final String ASCII_ENCODING = "US-ASCII"; + + private static final String MULTIPART_FORM_DATA_HEADER = "multipart/form-data"; + + private static final String CONTENT_REGEX = "[ |\t]*([^/^ ^;^,]+/[^ ^;^,]+)"; + + private static final Pattern MIME_PATTERN = Pattern.compile(CONTENT_REGEX, Pattern.CASE_INSENSITIVE); + + private static final String CHARSET_REGEX = "[ |\t]*(charset)[ |\t]*=[ |\t]*['|\"]?([^\"^'^;^,]*)['|\"]?"; + + private static final Pattern CHARSET_PATTERN = Pattern.compile(CHARSET_REGEX, Pattern.CASE_INSENSITIVE); + + private static final String BOUNDARY_REGEX = "[ |\t]*(boundary)[ |\t]*=[ |\t]*['|\"]?([^\"^'^;^,]*)['|\"]?"; + + private static final Pattern BOUNDARY_PATTERN = Pattern.compile(BOUNDARY_REGEX, Pattern.CASE_INSENSITIVE); + + private final String contentTypeHeader; + + private final String contentType; + + private final String encoding; + + private final String boundary; + + public ContentType(String contentTypeHeader) { + this.contentTypeHeader = contentTypeHeader; + if (contentTypeHeader != null) { + contentType = getDetailFromContentHeader(contentTypeHeader, MIME_PATTERN, "", 1); + encoding = getDetailFromContentHeader(contentTypeHeader, CHARSET_PATTERN, null, 2); + } else { + contentType = ""; + encoding = "UTF-8"; + } + if (MULTIPART_FORM_DATA_HEADER.equalsIgnoreCase(contentType)) { + boundary = getDetailFromContentHeader(contentTypeHeader, BOUNDARY_PATTERN, null, 2); + } else { + boundary = null; + } + } + + private String getDetailFromContentHeader(String contentTypeHeader, Pattern pattern, String defaultValue, int group) { + Matcher matcher = pattern.matcher(contentTypeHeader); + return matcher.find() ? matcher.group(group) : defaultValue; + } + + public String getContentTypeHeader() { + return contentTypeHeader; + } + + public String getContentType() { + return contentType; + } + + public String getEncoding() { + return encoding == null ? ASCII_ENCODING : encoding; + } + + public String getBoundary() { + return boundary; + } + + public boolean isMultipart() { + return MULTIPART_FORM_DATA_HEADER.equalsIgnoreCase(contentType); + } + + public ContentType tryUTF8() { + if (encoding == null) { + return new ContentType(this.contentTypeHeader + "; charset=UTF-8"); + } + return this; + } + } + + protected class HTTPSession implements IHTTPSession { + + private static final int REQUEST_BUFFER_LEN = 512; + + private static final int MEMORY_STORE_LIMIT = 1024; + + public static final int BUFSIZE = 8192; + + public static final int MAX_HEADER_SIZE = 1024; + + private final TempFileManager tempFileManager; + + private final OutputStream outputStream; + + private final BufferedInputStream inputStream; + + private int splitbyte; + + private int rlen; + + private String uri; + + private Method method; + + private Map parms; + + private Map headers; + + private CookieHandler cookies; + + private String queryParameterString; + + private String remoteIp; + + private String remoteHostname; + + private String protocolVersion; + + public HTTPSession(TempFileManager tempFileManager, InputStream inputStream, OutputStream outputStream) { + this.tempFileManager = tempFileManager; + this.inputStream = new BufferedInputStream(inputStream, HTTPSession.BUFSIZE); + this.outputStream = outputStream; + } + + public HTTPSession(TempFileManager tempFileManager, InputStream inputStream, OutputStream outputStream, InetAddress inetAddress) { + this.tempFileManager = tempFileManager; + this.inputStream = new BufferedInputStream(inputStream, HTTPSession.BUFSIZE); + this.outputStream = outputStream; + this.remoteIp = inetAddress.isLoopbackAddress() || inetAddress.isAnyLocalAddress() ? "127.0.0.1" : inetAddress.getHostAddress().toString(); + this.remoteHostname = inetAddress.isLoopbackAddress() || inetAddress.isAnyLocalAddress() ? "localhost" : inetAddress.getHostName().toString(); + this.headers = new HashMap(); + } + + /** + * Decodes the sent headers and loads the data into Key/value pairs + */ + private void decodeHeader(BufferedReader in, Map pre, Map parms, Map headers) throws ResponseException { + try { + // Read the request line + String inLine = in.readLine(); + if (inLine == null) { + return; + } + + StringTokenizer st = new StringTokenizer(inLine); + if (!st.hasMoreTokens()) { + throw new ResponseException(Status.BAD_REQUEST, "BAD REQUEST: Syntax error. Usage: GET /example/file.html"); + } + + pre.put("method", st.nextToken()); + + if (!st.hasMoreTokens()) { + throw new ResponseException(Status.BAD_REQUEST, "BAD REQUEST: Missing URI. Usage: GET /example/file.html"); + } + + String uri = st.nextToken(); + + // Decode parameters from the URI + int qmi = uri.indexOf('?'); + if (qmi >= 0) { + decodeParms(uri.substring(qmi + 1), parms); + uri = decodePercent(uri.substring(0, qmi)); + } else { + uri = decodePercent(uri); + } + + // If there's another token, its protocol version, + // followed by HTTP headers. + // NOTE: this now forces header names lower case since they are + // case insensitive and vary by client. + if (st.hasMoreTokens()) { + protocolVersion = st.nextToken(); + } else { + protocolVersion = "HTTP/1.1"; + NanoHTTPD.LOG.log(Level.FINE, "no protocol version specified, strange. Assuming HTTP/1.1."); + } + String line = in.readLine(); + while (line != null && !line.trim().isEmpty()) { + int p = line.indexOf(':'); + if (p >= 0) { + headers.put(line.substring(0, p).trim().toLowerCase(Locale.US), line.substring(p + 1).trim()); + } + line = in.readLine(); + } + + pre.put("uri", uri); + } catch (IOException ioe) { + throw new ResponseException(Status.INTERNAL_ERROR, "SERVER INTERNAL ERROR: IOException: " + ioe.getMessage(), ioe); + } + } + + /** + * Decodes the Multipart Body data and put it into Key/Value pairs. + */ + private void decodeMultipartFormData(ContentType contentType, ByteBuffer fbuf, Map parms, Map files) throws ResponseException { + int pcount = 0; + try { + int[] boundaryIdxs = getBoundaryPositions(fbuf, contentType.getBoundary().getBytes()); + if (boundaryIdxs.length < 2) { + throw new ResponseException(Status.BAD_REQUEST, "BAD REQUEST: Content type is multipart/form-data but contains less than two boundary strings."); + } + + byte[] partHeaderBuff = new byte[MAX_HEADER_SIZE]; + for (int boundaryIdx = 0; boundaryIdx < boundaryIdxs.length - 1; boundaryIdx++) { + fbuf.position(boundaryIdxs[boundaryIdx]); + int len = (fbuf.remaining() < MAX_HEADER_SIZE) ? fbuf.remaining() : MAX_HEADER_SIZE; + fbuf.get(partHeaderBuff, 0, len); + BufferedReader in = + new BufferedReader(new InputStreamReader(new ByteArrayInputStream(partHeaderBuff, 0, len), Charset.forName(contentType.getEncoding())), len); + + int headerLines = 0; + // First line is boundary string + String mpline = in.readLine(); + headerLines++; + if (mpline == null || !mpline.contains(contentType.getBoundary())) { + throw new ResponseException(Status.BAD_REQUEST, "BAD REQUEST: Content type is multipart/form-data but chunk does not start with boundary."); + } + + String partName = null, fileName = null, partContentType = null; + // Parse the reset of the header lines + mpline = in.readLine(); + headerLines++; + while (mpline != null && mpline.trim().length() > 0) { + Matcher matcher = CONTENT_DISPOSITION_PATTERN.matcher(mpline); + if (matcher.matches()) { + String attributeString = matcher.group(2); + matcher = CONTENT_DISPOSITION_ATTRIBUTE_PATTERN.matcher(attributeString); + while (matcher.find()) { + String key = matcher.group(1); + if ("name".equalsIgnoreCase(key)) { + partName = matcher.group(2); + } else if ("filename".equalsIgnoreCase(key)) { + fileName = matcher.group(2); + // add these two line to support multiple + // files uploaded using the same field Id + if (!fileName.isEmpty()) { + if (pcount > 0) + partName = partName + String.valueOf(pcount++); + else + pcount++; + } + } + } + } + matcher = CONTENT_TYPE_PATTERN.matcher(mpline); + if (matcher.matches()) { + partContentType = matcher.group(2).trim(); + } + mpline = in.readLine(); + headerLines++; + } + int partHeaderLength = 0; + while (headerLines-- > 0) { + partHeaderLength = scipOverNewLine(partHeaderBuff, partHeaderLength); + } + // Read the part data + if (partHeaderLength >= len - 4) { + throw new ResponseException(Status.INTERNAL_ERROR, "Multipart header size exceeds MAX_HEADER_SIZE."); + } + int partDataStart = boundaryIdxs[boundaryIdx] + partHeaderLength; + int partDataEnd = boundaryIdxs[boundaryIdx + 1] - 4; + + fbuf.position(partDataStart); + if (partContentType == null) { + // Read the part into a string + byte[] data_bytes = new byte[partDataEnd - partDataStart]; + fbuf.get(data_bytes); + parms.put(partName, new String(data_bytes, contentType.getEncoding())); + } else { + // Read it into a file + String path = saveTmpFile(fbuf, partDataStart, partDataEnd - partDataStart, fileName); + if (!files.containsKey(partName)) { + files.put(partName, path); + } else { + int count = 2; + while (files.containsKey(partName + count)) { + count++; + } + files.put(partName + count, path); + } + parms.put(partName, fileName); + } + } + } catch (ResponseException re) { + throw re; + } catch (Exception e) { + throw new ResponseException(Status.INTERNAL_ERROR, e.toString()); + } + } + + private int scipOverNewLine(byte[] partHeaderBuff, int index) { + while (partHeaderBuff[index] != '\n') { + index++; + } + return ++index; + } + + /** + * Decodes parameters in percent-encoded URI-format ( e.g. + * "name=Jack%20Daniels&pass=Single%20Malt" ) and adds them to given + * Map. NOTE: this doesn't support multiple identical keys due to the + * simplicity of Map. + */ + private void decodeParms(String parms, Map p) { + if (parms == null) { + this.queryParameterString = ""; + return; + } + + this.queryParameterString = parms; + StringTokenizer st = new StringTokenizer(parms, "&"); + while (st.hasMoreTokens()) { + String e = st.nextToken(); + int sep = e.indexOf('='); + if (sep >= 0) { + p.put(decodePercent(e.substring(0, sep)).trim(), decodePercent(e.substring(sep + 1))); + } else { + p.put(decodePercent(e).trim(), ""); + } + } + } + + @Override + public void execute() throws IOException { + Response r = null; + try { + // Read the first 8192 bytes. + // The full header should fit in here. + // Apache's default header limit is 8KB. + // Do NOT assume that a single read will get the entire header + // at once! + byte[] buf = new byte[HTTPSession.BUFSIZE]; + this.splitbyte = 0; + this.rlen = 0; + + int read = -1; + this.inputStream.mark(HTTPSession.BUFSIZE); + try { + read = this.inputStream.read(buf, 0, HTTPSession.BUFSIZE); + } catch (SSLException e) { + throw e; + } catch (IOException e) { + safeClose(this.inputStream); + safeClose(this.outputStream); + throw new SocketException("NanoHttpd Shutdown"); + } + if (read == -1) { + // socket was been closed + safeClose(this.inputStream); + safeClose(this.outputStream); + throw new SocketException("NanoHttpd Shutdown"); + } + while (read > 0) { + this.rlen += read; + this.splitbyte = findHeaderEnd(buf, this.rlen); + if (this.splitbyte > 0) { + break; + } + read = this.inputStream.read(buf, this.rlen, HTTPSession.BUFSIZE - this.rlen); + } + + if (this.splitbyte < this.rlen) { + this.inputStream.reset(); + this.inputStream.skip(this.splitbyte); + } + + this.parms = new HashMap(); + if (null == this.headers) { + this.headers = new HashMap(); + } else { + this.headers.clear(); + } + + // Create a BufferedReader for parsing the header. + BufferedReader hin = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(buf, 0, this.rlen))); + + // Decode the header into parms and header java properties + Map pre = new HashMap(); + decodeHeader(hin, pre, this.parms, this.headers); + + if (null != this.remoteIp) { + this.headers.put("remote-addr", this.remoteIp); + this.headers.put("http-client-ip", this.remoteIp); + } + + this.method = Method.lookup(pre.get("method")); + if (this.method == null) { + throw new ResponseException(Status.BAD_REQUEST, "BAD REQUEST: Syntax error. HTTP verb " + pre.get("method") + " unhandled."); + } + + this.uri = pre.get("uri"); + + this.cookies = new CookieHandler(this.headers); + + String connection = this.headers.get("connection"); + boolean keepAlive = "HTTP/1.1".equals(protocolVersion) && (connection == null || !connection.matches("(?i).*close.*")); + + // Ok, now do the serve() + + // TODO: long body_size = getBodySize(); + // TODO: long pos_before_serve = this.inputStream.totalRead() + // (requires implementation for totalRead()) + r = serve(this); + // TODO: this.inputStream.skip(body_size - + // (this.inputStream.totalRead() - pos_before_serve)) + + if (r == null) { + throw new ResponseException(Status.INTERNAL_ERROR, "SERVER INTERNAL ERROR: Serve() returned a null response."); + } else { + String acceptEncoding = this.headers.get("accept-encoding"); + this.cookies.unloadQueue(r); + r.setRequestMethod(this.method); + r.setGzipEncoding(useGzipWhenAccepted(r) && acceptEncoding != null && acceptEncoding.contains("gzip")); + r.setKeepAlive(keepAlive); + r.send(this.outputStream); + } + if (!keepAlive || r.isCloseConnection()) { + throw new SocketException("NanoHttpd Shutdown"); + } + } catch (SocketException e) { + // throw it out to close socket object (finalAccept) + throw e; + } catch (SocketTimeoutException ste) { + // treat socket timeouts the same way we treat socket exceptions + // i.e. close the stream & finalAccept object by throwing the + // exception up the call stack. + throw ste; + } catch (SSLException ssle) { + Response resp = newFixedLengthResponse(Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, "SSL PROTOCOL FAILURE: " + ssle.getMessage()); + resp.send(this.outputStream); + safeClose(this.outputStream); + } catch (IOException ioe) { + Response resp = newFixedLengthResponse(Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, "SERVER INTERNAL ERROR: IOException: " + ioe.getMessage()); + resp.send(this.outputStream); + safeClose(this.outputStream); + } catch (ResponseException re) { + Response resp = newFixedLengthResponse(re.getStatus(), NanoHTTPD.MIME_PLAINTEXT, re.getMessage()); + resp.send(this.outputStream); + safeClose(this.outputStream); + } finally { + safeClose(r); + this.tempFileManager.clear(); + } + } + + /** + * Find byte index separating header from body. It must be the last byte + * of the first two sequential new lines. + */ + private int findHeaderEnd(final byte[] buf, int rlen) { + int splitbyte = 0; + while (splitbyte + 1 < rlen) { + + // RFC2616 + if (buf[splitbyte] == '\r' && buf[splitbyte + 1] == '\n' && splitbyte + 3 < rlen && buf[splitbyte + 2] == '\r' && buf[splitbyte + 3] == '\n') { + return splitbyte + 4; + } + + // tolerance + if (buf[splitbyte] == '\n' && buf[splitbyte + 1] == '\n') { + return splitbyte + 2; + } + splitbyte++; + } + return 0; + } + + /** + * Find the byte positions where multipart boundaries start. This reads + * a large block at a time and uses a temporary buffer to optimize + * (memory mapped) file access. + */ + private int[] getBoundaryPositions(ByteBuffer b, byte[] boundary) { + int[] res = new int[0]; + if (b.remaining() < boundary.length) { + return res; + } + + int search_window_pos = 0; + byte[] search_window = new byte[4 * 1024 + boundary.length]; + + int first_fill = (b.remaining() < search_window.length) ? b.remaining() : search_window.length; + b.get(search_window, 0, first_fill); + int new_bytes = first_fill - boundary.length; + + do { + // Search the search_window + for (int j = 0; j < new_bytes; j++) { + for (int i = 0; i < boundary.length; i++) { + if (search_window[j + i] != boundary[i]) + break; + if (i == boundary.length - 1) { + // Match found, add it to results + int[] new_res = new int[res.length + 1]; + System.arraycopy(res, 0, new_res, 0, res.length); + new_res[res.length] = search_window_pos + j; + res = new_res; + } + } + } + search_window_pos += new_bytes; + + // Copy the end of the buffer to the start + System.arraycopy(search_window, search_window.length - boundary.length, search_window, 0, boundary.length); + + // Refill search_window + new_bytes = search_window.length - boundary.length; + new_bytes = (b.remaining() < new_bytes) ? b.remaining() : new_bytes; + b.get(search_window, boundary.length, new_bytes); + } while (new_bytes > 0); + return res; + } + + @Override + public CookieHandler getCookies() { + return this.cookies; + } + + @Override + public final Map getHeaders() { + return this.headers; + } + + @Override + public final InputStream getInputStream() { + return this.inputStream; + } + + @Override + public final Method getMethod() { + return this.method; + } + + @Override + public final Map getParms() { + return this.parms; + } + + @Override + public String getQueryParameterString() { + return this.queryParameterString; + } + + private RandomAccessFile getTmpBucket() { + try { + TempFile tempFile = this.tempFileManager.createTempFile(null); + return new RandomAccessFile(tempFile.getName(), "rw"); + } catch (Exception e) { + throw new Error(e); // we won't recover, so throw an error + } + } + + @Override + public final String getUri() { + return this.uri; + } + + /** + * Deduce body length in bytes. Either from "content-length" header or + * read bytes. + */ + public long getBodySize() { + if (this.headers.containsKey("content-length")) { + return Long.parseLong(this.headers.get("content-length")); + } else if (this.splitbyte < this.rlen) { + return this.rlen - this.splitbyte; + } + return 0; + } + + @Override + public void parseBody(Map files) throws IOException, ResponseException { + RandomAccessFile randomAccessFile = null; + try { + long size = getBodySize(); + ByteArrayOutputStream baos = null; + DataOutput requestDataOutput = null; + + // Store the request in memory or a file, depending on size + if (size < MEMORY_STORE_LIMIT) { + baos = new ByteArrayOutputStream(); + requestDataOutput = new DataOutputStream(baos); + } else { + randomAccessFile = getTmpBucket(); + requestDataOutput = randomAccessFile; + } + + // Read all the body and write it to request_data_output + byte[] buf = new byte[REQUEST_BUFFER_LEN]; + while (this.rlen >= 0 && size > 0) { + this.rlen = this.inputStream.read(buf, 0, (int) Math.min(size, REQUEST_BUFFER_LEN)); + size -= this.rlen; + if (this.rlen > 0) { + requestDataOutput.write(buf, 0, this.rlen); + } + } + + ByteBuffer fbuf = null; + if (baos != null) { + fbuf = ByteBuffer.wrap(baos.toByteArray(), 0, baos.size()); + } else { + fbuf = randomAccessFile.getChannel().map(FileChannel.MapMode.READ_ONLY, 0, randomAccessFile.length()); + randomAccessFile.seek(0); + } + + // If the method is POST, there may be parameters + // in data section, too, read it: + if (Method.POST.equals(this.method)) { + ContentType contentType = new ContentType(this.headers.get("content-type")); + if (contentType.isMultipart()) { + String boundary = contentType.getBoundary(); + if (boundary == null) { + throw new ResponseException(Status.BAD_REQUEST, + "BAD REQUEST: Content type is multipart/form-data but boundary missing. Usage: GET /example/file.html"); + } + decodeMultipartFormData(contentType, fbuf, this.parms, files); + } else { + byte[] postBytes = new byte[fbuf.remaining()]; + fbuf.get(postBytes); + String postLine = new String(postBytes, contentType.getEncoding()).trim(); + // Handle application/x-www-form-urlencoded + if ("application/x-www-form-urlencoded".equalsIgnoreCase(contentType.getContentType())) { + decodeParms(postLine, this.parms); + } else if (postLine.length() != 0) { + // Special case for raw POST data => create a + // special files entry "postData" with raw content + // data + files.put("postData", postLine); + } + } + } else if (Method.PUT.equals(this.method)) { + files.put("content", saveTmpFile(fbuf, 0, fbuf.limit(), null)); + } + } finally { + safeClose(randomAccessFile); + } + } + + /** + * Retrieves the content of a sent file and saves it to a temporary + * file. The full path to the saved file is returned. + */ + private String saveTmpFile(ByteBuffer b, int offset, int len, String filename_hint) { + String path = ""; + if (len > 0) { + FileOutputStream fileOutputStream = null; + try { + TempFile tempFile = this.tempFileManager.createTempFile(filename_hint); + ByteBuffer src = b.duplicate(); + fileOutputStream = new FileOutputStream(tempFile.getName()); + FileChannel dest = fileOutputStream.getChannel(); + src.position(offset).limit(offset + len); + dest.write(src.slice()); + path = tempFile.getName(); + } catch (Exception e) { // Catch exception if any + throw new Error(e); // we won't recover, so throw an error + } finally { + safeClose(fileOutputStream); + } + } + return path; + } + + @Override + public String getRemoteIpAddress() { + return this.remoteIp; + } + + @Override + public String getRemoteHostName() { + return this.remoteHostname; + } + } + + /** + * Handles one session, i.e. parses the HTTP request and returns the + * response. + */ + public interface IHTTPSession { + + void execute() throws IOException; + + CookieHandler getCookies(); + + Map getHeaders(); + + InputStream getInputStream(); + + Method getMethod(); + + Map getParms(); + + String getQueryParameterString(); + + /** + * @return the path part of the URL. + */ + String getUri(); + + /** + * Adds the files in the request body to the files map. + * + * @param files + * map to modify + */ + void parseBody(Map files) throws IOException, ResponseException; + + /** + * Get the remote ip address of the requester. + * + * @return the IP address. + */ + String getRemoteIpAddress(); + + /** + * Get the remote hostname of the requester. + * + * @return the hostname. + */ + String getRemoteHostName(); + } + + /** + * HTTP Request methods, with the ability to decode a String + * back to its enum value. + */ + public enum Method { + GET, + PUT, + POST, + DELETE, + HEAD, + OPTIONS, + TRACE, + CONNECT, + PATCH, + PROPFIND, + PROPPATCH, + MKCOL, + MOVE, + COPY, + LOCK, + UNLOCK; + + static Method lookup(String method) { + if (method == null) + return null; + + try { + return valueOf(method); + } catch (IllegalArgumentException e) { + // TODO: Log it? + return null; + } + } + } + + /** + * HTTP response. Return one of these from serve(). + */ + public static class Response implements Closeable { + + public interface IStatus { + + String getDescription(); + + int getRequestStatus(); + } + + /** + * Some HTTP response status codes + */ + public enum Status implements IStatus { + SWITCH_PROTOCOL(101, "Switching Protocols"), + + OK(200, "OK"), + CREATED(201, "Created"), + ACCEPTED(202, "Accepted"), + NO_CONTENT(204, "No Content"), + PARTIAL_CONTENT(206, "Partial Content"), + MULTI_STATUS(207, "Multi-Status"), + + REDIRECT(301, "Moved Permanently"), + /** + * Many user agents mishandle 302 in ways that violate the RFC1945 spec (i.e., redirect a POST to a GET). + * 303 and 307 were added in RFC2616 to address this. You should prefer 303 and 307 unless the calling + * user agent does not support 303 and 307 functionality + */ + @Deprecated + FOUND(302, "Found"), + REDIRECT_SEE_OTHER(303, "See Other"), + NOT_MODIFIED(304, "Not Modified"), + TEMPORARY_REDIRECT(307,"Temporary Redirect"), + + BAD_REQUEST(400, "Bad Request"), + UNAUTHORIZED(401, "Unauthorized"), + FORBIDDEN(403, "Forbidden"), + NOT_FOUND(404, "Not Found"), + METHOD_NOT_ALLOWED(405, "Method Not Allowed"), + NOT_ACCEPTABLE(406, "Not Acceptable"), + REQUEST_TIMEOUT(408, "Request Timeout"), + CONFLICT(409, "Conflict"), + GONE(410, "Gone"), + LENGTH_REQUIRED(411, "Length Required"), + PRECONDITION_FAILED(412, "Precondition Failed"), + PAYLOAD_TOO_LARGE(413, "Payload Too Large"), + UNSUPPORTED_MEDIA_TYPE(415, "Unsupported Media Type"), + RANGE_NOT_SATISFIABLE(416, "Requested Range Not Satisfiable"), + EXPECTATION_FAILED(417, "Expectation Failed"), + TOO_MANY_REQUESTS(429, "Too Many Requests"), + + INTERNAL_ERROR(500, "Internal Server Error"), + NOT_IMPLEMENTED(501, "Not Implemented"), + SERVICE_UNAVAILABLE(503, "Service Unavailable"), + UNSUPPORTED_HTTP_VERSION(505, "HTTP Version Not Supported"); + + private final int requestStatus; + + private final String description; + + Status(int requestStatus, String description) { + this.requestStatus = requestStatus; + this.description = description; + } + + public static Status lookup(int requestStatus) { + for (Status status : Status.values()) { + if (status.getRequestStatus() == requestStatus) { + return status; + } + } + return null; + } + + @Override + public String getDescription() { + return "" + this.requestStatus + " " + this.description; + } + + @Override + public int getRequestStatus() { + return this.requestStatus; + } + + } + + /** + * Output stream that will automatically send every write to the wrapped + * OutputStream according to chunked transfer: + * http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6.1 + */ + private static class ChunkedOutputStream extends FilterOutputStream { + + public ChunkedOutputStream(OutputStream out) { + super(out); + } + + @Override + public void write(int b) throws IOException { + byte[] data = { + (byte) b + }; + write(data, 0, 1); + } + + @Override + public void write(byte[] b) throws IOException { + write(b, 0, b.length); + } + + @Override + public void write(byte[] b, int off, int len) throws IOException { + if (len == 0) + return; + out.write(String.format("%x\r\n", len).getBytes()); + out.write(b, off, len); + out.write("\r\n".getBytes()); + } + + public void finish() throws IOException { + out.write("0\r\n\r\n".getBytes()); + } + + } + + /** + * HTTP status code after processing, e.g. "200 OK", Status.OK + */ + private IStatus status; + + /** + * MIME type of content, e.g. "text/html" + */ + private String mimeType; + + /** + * Data of the response, may be null. + */ + private InputStream data; + + private long contentLength; + + /** + * Headers for the HTTP response. Use addHeader() to add lines. the + * lowercase map is automatically kept up to date. + */ + @SuppressWarnings("serial") + private final Map header = new HashMap() { + + public String put(String key, String value) { + lowerCaseHeader.put(key == null ? key : key.toLowerCase(), value); + return super.put(key, value); + }; + }; + + /** + * copy of the header map with all the keys lowercase for faster + * searching. + */ + private final Map lowerCaseHeader = new HashMap(); + + /** + * The request method that spawned this response. + */ + private Method requestMethod; + + /** + * Use chunkedTransfer + */ + private boolean chunkedTransfer; + + private boolean encodeAsGzip; + + private boolean keepAlive; + + /** + * Creates a fixed length response if totalBytes>=0, otherwise chunked. + */ + protected Response(IStatus status, String mimeType, InputStream data, long totalBytes) { + this.status = status; + this.mimeType = mimeType; + if (data == null) { + this.data = new ByteArrayInputStream(new byte[0]); + this.contentLength = 0L; + } else { + this.data = data; + this.contentLength = totalBytes; + } + this.chunkedTransfer = this.contentLength < 0; + keepAlive = true; + } + + @Override + public void close() throws IOException { + if (this.data != null) { + this.data.close(); + } + } + + /** + * Adds given line to the header. + */ + public void addHeader(String name, String value) { + this.header.put(name, value); + } + + /** + * Indicate to close the connection after the Response has been sent. + * + * @param close + * {@code true} to hint connection closing, {@code false} to + * let connection be closed by client. + */ + public void closeConnection(boolean close) { + if (close) + this.header.put("connection", "close"); + else + this.header.remove("connection"); + } + + /** + * @return {@code true} if connection is to be closed after this + * Response has been sent. + */ + public boolean isCloseConnection() { + return "close".equals(getHeader("connection")); + } + + public InputStream getData() { + return this.data; + } + + public String getHeader(String name) { + return this.lowerCaseHeader.get(name.toLowerCase()); + } + + public String getMimeType() { + return this.mimeType; + } + + public Method getRequestMethod() { + return this.requestMethod; + } + + public IStatus getStatus() { + return this.status; + } + + public void setGzipEncoding(boolean encodeAsGzip) { + this.encodeAsGzip = encodeAsGzip; + } + + public void setKeepAlive(boolean useKeepAlive) { + this.keepAlive = useKeepAlive; + } + + /** + * Sends given response to the socket. + */ + protected void send(OutputStream outputStream) { + SimpleDateFormat gmtFrmt = new SimpleDateFormat("E, d MMM yyyy HH:mm:ss 'GMT'", Locale.US); + gmtFrmt.setTimeZone(TimeZone.getTimeZone("GMT")); + + try { + if (this.status == null) { + throw new Error("sendResponse(): Status can't be null."); + } + PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream, new ContentType(this.mimeType).getEncoding())), false); + pw.append("HTTP/1.1 ").append(this.status.getDescription()).append(" \r\n"); + if (this.mimeType != null) { + printHeader(pw, "Content-Type", this.mimeType); + } + if (getHeader("date") == null) { + printHeader(pw, "Date", gmtFrmt.format(new Date())); + } + for (Entry entry : this.header.entrySet()) { + printHeader(pw, entry.getKey(), entry.getValue()); + } + if (getHeader("connection") == null) { + printHeader(pw, "Connection", (this.keepAlive ? "keep-alive" : "close")); + } + if (getHeader("content-length") != null) { + encodeAsGzip = false; + } + if (encodeAsGzip) { + printHeader(pw, "Content-Encoding", "gzip"); + setChunkedTransfer(true); + } + long pending = this.data != null ? this.contentLength : 0; + if (this.requestMethod != Method.HEAD && this.chunkedTransfer) { + printHeader(pw, "Transfer-Encoding", "chunked"); + } else if (!encodeAsGzip) { + pending = sendContentLengthHeaderIfNotAlreadyPresent(pw, pending); + } + pw.append("\r\n"); + pw.flush(); + sendBodyWithCorrectTransferAndEncoding(outputStream, pending); + outputStream.flush(); + safeClose(this.data); + } catch (IOException ioe) { + NanoHTTPD.LOG.log(Level.SEVERE, "Could not send response to the client", ioe); + } + } + + @SuppressWarnings("static-method") + protected void printHeader(PrintWriter pw, String key, String value) { + pw.append(key).append(": ").append(value).append("\r\n"); + } + + protected long sendContentLengthHeaderIfNotAlreadyPresent(PrintWriter pw, long defaultSize) { + String contentLengthString = getHeader("content-length"); + long size = defaultSize; + if (contentLengthString != null) { + try { + size = Long.parseLong(contentLengthString); + } catch (NumberFormatException ex) { + LOG.severe("content-length was no number " + contentLengthString); + } + } + pw.print("Content-Length: " + size + "\r\n"); + return size; + } + + private void sendBodyWithCorrectTransferAndEncoding(OutputStream outputStream, long pending) throws IOException { + if (this.requestMethod != Method.HEAD && this.chunkedTransfer) { + ChunkedOutputStream chunkedOutputStream = new ChunkedOutputStream(outputStream); + sendBodyWithCorrectEncoding(chunkedOutputStream, -1); + chunkedOutputStream.finish(); + } else { + sendBodyWithCorrectEncoding(outputStream, pending); + } + } + + private void sendBodyWithCorrectEncoding(OutputStream outputStream, long pending) throws IOException { + if (encodeAsGzip) { + GZIPOutputStream gzipOutputStream = new GZIPOutputStream(outputStream); + sendBody(gzipOutputStream, -1); + gzipOutputStream.finish(); + } else { + sendBody(outputStream, pending); + } + } + + /** + * Sends the body to the specified OutputStream. The pending parameter + * limits the maximum amounts of bytes sent unless it is -1, in which + * case everything is sent. + * + * @param outputStream + * the OutputStream to send data to + * @param pending + * -1 to send everything, otherwise sets a max limit to the + * number of bytes sent + * @throws IOException + * if something goes wrong while sending the data. + */ + private void sendBody(OutputStream outputStream, long pending) throws IOException { + long BUFFER_SIZE = 16 * 1024; + byte[] buff = new byte[(int) BUFFER_SIZE]; + boolean sendEverything = pending == -1; + while (pending > 0 || sendEverything) { + long bytesToRead = sendEverything ? BUFFER_SIZE : Math.min(pending, BUFFER_SIZE); + int read = this.data.read(buff, 0, (int) bytesToRead); + if (read <= 0) { + break; + } + outputStream.write(buff, 0, read); + if (!sendEverything) { + pending -= read; + } + } + } + + public void setChunkedTransfer(boolean chunkedTransfer) { + this.chunkedTransfer = chunkedTransfer; + } + + public void setData(InputStream data) { + this.data = data; + } + + public void setMimeType(String mimeType) { + this.mimeType = mimeType; + } + + public void setRequestMethod(Method requestMethod) { + this.requestMethod = requestMethod; + } + + public void setStatus(IStatus status) { + this.status = status; + } + } + + public static final class ResponseException extends Exception { + + private static final long serialVersionUID = 6569838532917408380L; + + private final Status status; + + public ResponseException(Status status, String message) { + super(message); + this.status = status; + } + + public ResponseException(Status status, String message, Exception e) { + super(message, e); + this.status = status; + } + + public Status getStatus() { + return this.status; + } + } + + /** + * The runnable that will be used for the main listening thread. + */ + public class ServerRunnable implements Runnable { + + private final int timeout; + + private IOException bindException; + + private boolean hasBinded = false; + + private ServerRunnable(int timeout) { + this.timeout = timeout; + } + + @Override + public void run() { + try { + myServerSocket.bind(hostname != null ? new InetSocketAddress(hostname, myPort) : new InetSocketAddress(myPort)); + hasBinded = true; + } catch (IOException e) { + this.bindException = e; + return; + } + do { + try { + final Socket finalAccept = NanoHTTPD.this.myServerSocket.accept(); + if (this.timeout > 0) { + finalAccept.setSoTimeout(this.timeout); + } + final InputStream inputStream = finalAccept.getInputStream(); + NanoHTTPD.this.asyncRunner.exec(createClientHandler(finalAccept, inputStream)); + } catch (IOException e) { + NanoHTTPD.LOG.log(Level.FINE, "Communication with the client broken", e); + } + } while (!NanoHTTPD.this.myServerSocket.isClosed()); + } + } + + /** + * A temp file. + *

+ *

+ * Temp files are responsible for managing the actual temporary storage and + * cleaning themselves up when no longer needed. + *

+ */ + public interface TempFile { + + public void delete() throws Exception; + + public String getName(); + + public OutputStream open() throws Exception; + } + + /** + * Temp file manager. + *

+ *

+ * Temp file managers are created 1-to-1 with incoming requests, to create + * and cleanup temporary files created as a result of handling the request. + *

+ */ + public interface TempFileManager { + + void clear(); + + public TempFile createTempFile(String filename_hint) throws Exception; + } + + /** + * Factory to create temp file managers. + */ + public interface TempFileManagerFactory { + + public TempFileManager create(); + } + + /** + * Factory to create ServerSocketFactories. + */ + public interface ServerSocketFactory { + + public ServerSocket create() throws IOException; + + } + + /** + * Maximum time to wait on Socket.getInputStream().read() (in milliseconds) + * This is required as the Keep-Alive HTTP connections would otherwise block + * the socket reading thread forever (or as long the browser is open). + */ + public static final int SOCKET_READ_TIMEOUT = 5000; + + /** + * Common MIME type for dynamic content: plain text + */ + public static final String MIME_PLAINTEXT = "text/plain"; + + /** + * Common MIME type for dynamic content: html + */ + public static final String MIME_HTML = "text/html"; + + /** + * Pseudo-Parameter to use to store the actual query string in the + * parameters map for later re-processing. + */ + private static final String QUERY_STRING_PARAMETER = "NanoHttpd.QUERY_STRING"; + + /** + * logger to log to. + */ + private static final Logger LOG = Logger.getLogger(NanoHTTPD.class.getName()); + + /** + * Hashtable mapping (String)FILENAME_EXTENSION -> (String)MIME_TYPE + */ + protected static Map MIME_TYPES; + + public static Map mimeTypes() { + if (MIME_TYPES == null) { + MIME_TYPES = new HashMap(); + loadMimeTypes(MIME_TYPES, "META-INF/nanohttpd/default-mimetypes.properties"); + loadMimeTypes(MIME_TYPES, "META-INF/nanohttpd/mimetypes.properties"); + if (MIME_TYPES.isEmpty()) { + LOG.log(Level.WARNING, "no mime types found in the classpath! please provide mimetypes.properties"); + } + } + return MIME_TYPES; + } + + @SuppressWarnings({ + "unchecked", + "rawtypes" + }) + private static void loadMimeTypes(Map result, String resourceName) { + try { + Enumeration resources = NanoHTTPD.class.getClassLoader().getResources(resourceName); + while (resources.hasMoreElements()) { + URL url = (URL) resources.nextElement(); + Properties properties = new Properties(); + InputStream stream = null; + try { + stream = url.openStream(); + properties.load(url.openStream()); + } catch (IOException e) { + LOG.log(Level.SEVERE, "could not load mimetypes from " + url, e); + } finally { + safeClose(stream); + } + result.putAll((Map) properties); + } + } catch (IOException e) { + LOG.log(Level.INFO, "no mime types available at " + resourceName); + } + }; + + /** + * Creates an SSLSocketFactory for HTTPS. Pass a loaded KeyStore and an + * array of loaded KeyManagers. These objects must properly + * loaded/initialized by the caller. + */ + public static SSLServerSocketFactory makeSSLSocketFactory(KeyStore loadedKeyStore, KeyManager[] keyManagers) throws IOException { + SSLServerSocketFactory res = null; + try { + TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); + trustManagerFactory.init(loadedKeyStore); + SSLContext ctx = SSLContext.getInstance("TLS"); + ctx.init(keyManagers, trustManagerFactory.getTrustManagers(), null); + res = ctx.getServerSocketFactory(); + } catch (Exception e) { + throw new IOException(e.getMessage()); + } + return res; + } + + /** + * Creates an SSLSocketFactory for HTTPS. Pass a loaded KeyStore and a + * loaded KeyManagerFactory. These objects must properly loaded/initialized + * by the caller. + */ + public static SSLServerSocketFactory makeSSLSocketFactory(KeyStore loadedKeyStore, KeyManagerFactory loadedKeyFactory) throws IOException { + try { + return makeSSLSocketFactory(loadedKeyStore, loadedKeyFactory.getKeyManagers()); + } catch (Exception e) { + throw new IOException(e.getMessage()); + } + } + + /** + * Creates an SSLSocketFactory for HTTPS. Pass a KeyStore resource with your + * certificate and passphrase + */ + public static SSLServerSocketFactory makeSSLSocketFactory(String keyAndTrustStoreClasspathPath, char[] passphrase) throws IOException { + try { + KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType()); + InputStream keystoreStream = NanoHTTPD.class.getResourceAsStream(keyAndTrustStoreClasspathPath); + + if (keystoreStream == null) { + throw new IOException("Unable to load keystore from classpath: " + keyAndTrustStoreClasspathPath); + } + + keystore.load(keystoreStream, passphrase); + KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm()); + keyManagerFactory.init(keystore, passphrase); + return makeSSLSocketFactory(keystore, keyManagerFactory); + } catch (Exception e) { + throw new IOException(e.getMessage()); + } + } + + /** + * Get MIME type from file name extension, if possible + * + * @param uri + * the string representing a file + * @return the connected mime/type + */ + public static String getMimeTypeForFile(String uri) { + int dot = uri.lastIndexOf('.'); + String mime = null; + if (dot >= 0) { + mime = mimeTypes().get(uri.substring(dot + 1).toLowerCase()); + } + return mime == null ? "application/octet-stream" : mime; + } + + private static final void safeClose(Object closeable) { + try { + if (closeable != null) { + if (closeable instanceof Closeable) { + ((Closeable) closeable).close(); + } else if (closeable instanceof Socket) { + ((Socket) closeable).close(); + } else if (closeable instanceof ServerSocket) { + ((ServerSocket) closeable).close(); + } else { + throw new IllegalArgumentException("Unknown object to close"); + } + } + } catch (IOException e) { + NanoHTTPD.LOG.log(Level.SEVERE, "Could not close", e); + } + } + + private final String hostname; + + private final int myPort; + + private volatile ServerSocket myServerSocket; + + private ServerSocketFactory serverSocketFactory = new DefaultServerSocketFactory(); + + private Thread myThread; + + /** + * Pluggable strategy for asynchronously executing requests. + */ + protected AsyncRunner asyncRunner; + + /** + * Pluggable strategy for creating and cleaning up temporary files. + */ + private TempFileManagerFactory tempFileManagerFactory; + + /** + * Constructs an HTTP server on given port. + */ + public NanoHTTPD(int port) { + this(null, port); + } + + // ------------------------------------------------------------------------------- + // // + // + // Threading Strategy. + // + // ------------------------------------------------------------------------------- + // // + + /** + * Constructs an HTTP server on given hostname and port. + */ + public NanoHTTPD(String hostname, int port) { + this.hostname = hostname; + this.myPort = port; + setTempFileManagerFactory(new DefaultTempFileManagerFactory()); + setAsyncRunner(new DefaultAsyncRunner()); + } + + /** + * Forcibly closes all connections that are open. + */ + public synchronized void closeAllConnections() { + stop(); + } + + /** + * create a instance of the client handler, subclasses can return a subclass + * of the ClientHandler. + * + * @param finalAccept + * the socket the cleint is connected to + * @param inputStream + * the input stream + * @return the client handler + */ + protected ClientHandler createClientHandler(final Socket finalAccept, final InputStream inputStream) { + return new ClientHandler(inputStream, finalAccept); + } + + /** + * Instantiate the server runnable, can be overwritten by subclasses to + * provide a subclass of the ServerRunnable. + * + * @param timeout + * the socet timeout to use. + * @return the server runnable. + */ + protected ServerRunnable createServerRunnable(final int timeout) { + return new ServerRunnable(timeout); + } + + /** + * Decode parameters from a URL, handing the case where a single parameter + * name might have been supplied several times, by return lists of values. + * In general these lists will contain a single element. + * + * @param parms + * original NanoHTTPD parameters values, as passed to the + * serve() method. + * @return a map of String (parameter name) to + * List<String> (a list of the values supplied). + */ + protected static Map> decodeParameters(Map parms) { + return decodeParameters(parms.get(NanoHTTPD.QUERY_STRING_PARAMETER)); + } + + // ------------------------------------------------------------------------------- + // // + + /** + * Decode parameters from a URL, handing the case where a single parameter + * name might have been supplied several times, by return lists of values. + * In general these lists will contain a single element. + * + * @param queryString + * a query string pulled from the URL. + * @return a map of String (parameter name) to + * List<String> (a list of the values supplied). + */ + protected static Map> decodeParameters(String queryString) { + Map> parms = new HashMap>(); + if (queryString != null) { + StringTokenizer st = new StringTokenizer(queryString, "&"); + while (st.hasMoreTokens()) { + String e = st.nextToken(); + int sep = e.indexOf('='); + String propertyName = sep >= 0 ? decodePercent(e.substring(0, sep)).trim() : decodePercent(e).trim(); + if (!parms.containsKey(propertyName)) { + parms.put(propertyName, new ArrayList()); + } + String propertyValue = sep >= 0 ? decodePercent(e.substring(sep + 1)) : null; + if (propertyValue != null) { + parms.get(propertyName).add(propertyValue); + } + } + } + return parms; + } + + /** + * Decode percent encoded String values. + * + * @param str + * the percent encoded String + * @return expanded form of the input, for example "foo%20bar" becomes + * "foo bar" + */ + protected static String decodePercent(String str) { + String decoded = null; + try { + decoded = URLDecoder.decode(str, "UTF8"); + } catch (UnsupportedEncodingException ignored) { + NanoHTTPD.LOG.log(Level.WARNING, "Encoding not supported, ignored", ignored); + } + return decoded; + } + + /** + * @return true if the gzip compression should be used if the client + * accespts it. Default this option is on for text content and off + * for everything. Override this for custom semantics. + */ + @SuppressWarnings("static-method") + protected boolean useGzipWhenAccepted(Response r) { + return r.getMimeType() != null && r.getMimeType().toLowerCase().contains("text/"); + } + + public final int getListeningPort() { + return this.myServerSocket == null ? -1 : this.myServerSocket.getLocalPort(); + } + + public final boolean isAlive() { + return wasStarted() && !this.myServerSocket.isClosed() && this.myThread.isAlive(); + } + + public ServerSocketFactory getServerSocketFactory() { + return serverSocketFactory; + } + + public void setServerSocketFactory(ServerSocketFactory serverSocketFactory) { + this.serverSocketFactory = serverSocketFactory; + } + + public String getHostname() { + return hostname; + } + + public TempFileManagerFactory getTempFileManagerFactory() { + return tempFileManagerFactory; + } + + /** + * Call before start() to serve over HTTPS instead of HTTP + */ + public void makeSecure(SSLServerSocketFactory sslServerSocketFactory, String[] sslProtocols) { + this.serverSocketFactory = new SecureServerSocketFactory(sslServerSocketFactory, sslProtocols); + } + + /** + * Create a response with unknown length (using HTTP 1.1 chunking). + */ + public static Response newChunkedResponse(Response.IStatus status, String mimeType, InputStream data) { + return new Response(status, mimeType, data, -1); + } + + /** + * Create a response with known length. + */ + public static Response newFixedLengthResponse(IStatus status, String mimeType, InputStream data, long totalBytes) { + return new Response(status, mimeType, data, totalBytes); + } + + /** + * 创建一个已知大小的(超)文本相应 + */ + public static Response newFixedLengthResponse(IStatus status, String mimeType, String txt) { + ContentType contentType = new ContentType(mimeType); + if (txt == null) { + return newFixedLengthResponse(status, mimeType, new ByteArrayInputStream(new byte[0]), 0); + } else { + byte[] bytes; + try { + CharsetEncoder newEncoder = Charset.forName(contentType.getEncoding()).newEncoder(); + if (!newEncoder.canEncode(txt)) { + contentType = contentType.tryUTF8(); + } + bytes = txt.getBytes(contentType.getEncoding()); + } catch (UnsupportedEncodingException e) { + NanoHTTPD.LOG.log(Level.SEVERE, "encoding problem, responding nothing", e); + bytes = new byte[0]; + } + return newFixedLengthResponse(status, contentType.getContentTypeHeader(), new ByteArrayInputStream(bytes), bytes.length); + } + } + + /** + * Create a text response with known length. + */ + public static Response newFixedLengthResponse(String msg) { + return newFixedLengthResponse(Status.OK, NanoHTTPD.MIME_HTML, msg); + } + + /** + * Override this to customize the server. + *

+ *

+ * (By default, this returns a 404 "Not Found" plain text error response.) + * + * @param session + * The HTTP session + * @return HTTP response, see class Response for details + */ + public Response serve(IHTTPSession session) { + Map files = new HashMap(); + Method method = session.getMethod(); + if (Method.PUT.equals(method) || Method.POST.equals(method)) { + try { + session.parseBody(files); + } catch (IOException ioe) { + return newFixedLengthResponse(Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, "SERVER INTERNAL ERROR: IOException: " + ioe.getMessage()); + } catch (ResponseException re) { + return newFixedLengthResponse(re.getStatus(), NanoHTTPD.MIME_PLAINTEXT, re.getMessage()); + } + } + + Map parms = session.getParms(); + parms.put(NanoHTTPD.QUERY_STRING_PARAMETER, session.getQueryParameterString()); + return serve(session.getUri(), method, session.getHeaders(), parms, files); + } + + /** + * Override this to customize the server. + *

+ *

+ * (By default, this returns a 404 "Not Found" plain text error response.) + * + * @param uri + * Percent-decoded URI without parameters, for example + * "/index.cgi" + * @param method + * "GET", "POST" etc. + * @param parms + * Parsed, percent decoded parameters from URI and, in case of + * POST, data. + * @param headers + * Header entries, percent decoded + * @return HTTP response, see class Response for details + */ + @Deprecated + public Response serve(String uri, Method method, Map headers, Map parms, Map files) { + return newFixedLengthResponse(Status.NOT_FOUND, NanoHTTPD.MIME_PLAINTEXT, "Not Found"); + } + + /** + * Pluggable strategy for asynchronously executing requests. + * + * @param asyncRunner + * new strategy for handling threads. + */ + public void setAsyncRunner(AsyncRunner asyncRunner) { + this.asyncRunner = asyncRunner; + } + + /** + * Pluggable strategy for creating and cleaning up temporary files. + * + * @param tempFileManagerFactory + * new strategy for handling temp files. + */ + public void setTempFileManagerFactory(TempFileManagerFactory tempFileManagerFactory) { + this.tempFileManagerFactory = tempFileManagerFactory; + } + + /** + * Start the server. + * + * @throws IOException + * if the socket is in use. + */ + public void start() throws IOException { + start(NanoHTTPD.SOCKET_READ_TIMEOUT); + } + + /** + * Starts the server (in setDaemon(true) mode). + */ + public void start(final int timeout) throws IOException { + start(timeout, true); + } + + /** + * Start the server. + * + * @param timeout + * timeout to use for socket connections. + * @param daemon + * start the thread daemon or not. + * @throws IOException + * if the socket is in use. + */ + public void start(final int timeout, boolean daemon) throws IOException { + this.myServerSocket = this.getServerSocketFactory().create(); + this.myServerSocket.setReuseAddress(true); + + ServerRunnable serverRunnable = createServerRunnable(timeout); + this.myThread = new Thread(serverRunnable); + this.myThread.setDaemon(daemon); + this.myThread.setName("NanoHttpd Main Listener"); + this.myThread.start(); + while (!serverRunnable.hasBinded && serverRunnable.bindException == null) { + try { + Thread.sleep(10L); + } catch (Throwable e) { + // on android this may not be allowed, that's why we + // catch throwable the wait should be very short because we are + // just waiting for the bind of the socket + } + } + if (serverRunnable.bindException != null) { + throw serverRunnable.bindException; + } + } + + /** + * Stop the server. + */ + public void stop() { + try { + safeClose(this.myServerSocket); + this.asyncRunner.closeAll(); + if (this.myThread != null) { + this.myThread.join(); + } + } catch (Exception e) { + NanoHTTPD.LOG.log(Level.SEVERE, "Could not stop all connections", e); + } + } + + public final boolean wasStarted() { + return this.myServerSocket != null && this.myThread != null; + } +} + diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/utils/AES128Utils.java b/library/src/main/java/jaygoo/library/m3u8downloader/utils/AES128Utils.java new file mode 100644 index 0000000..6079c20 --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/utils/AES128Utils.java @@ -0,0 +1,119 @@ +package jaygoo.library.m3u8downloader.utils; + +import javax.crypto.Cipher; +import javax.crypto.KeyGenerator; +import javax.crypto.SecretKey; +import javax.crypto.spec.SecretKeySpec; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/23 + * 描 述: AES-128 加密解密工具类 + * ================================================ + */ +public class AES128Utils { + + public final static String ENCODING = "UTF-8"; + + /**将二进制转换成16进制 + * @param buf + * @return + */ + public static String parseByte2HexStr(byte buf[]) { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < buf.length; i++) { + String hex = Integer.toHexString(buf[i] & 0xFF); + if (hex.length() == 1) { + hex = '0' + hex; + } + sb.append(hex.toUpperCase()); + } + return sb.toString(); + } + + /**将16进制转换为二进制 + * @param hexStr + * @return + */ + public static byte[] parseHexStr2Byte(String hexStr) { + if (hexStr.length() < 1) + return null; + byte[] result = new byte[hexStr.length()/2]; + for (int i = 0;i< hexStr.length()/2; i++) { + int high = Integer.parseInt(hexStr.substring(i*2, i*2+1), 16); + int low = Integer.parseInt(hexStr.substring(i*2+1, i*2+2), 16); + result[i] = (byte) (high * 16 + low); + } + return result; + } + + /** + * 生成密钥 + * 自动生成base64 编码后的AES128位密钥 + * @throws NoSuchAlgorithmException + * @throws UnsupportedEncodingException + */ + public static String getAESKey() throws Exception { + KeyGenerator kg = KeyGenerator.getInstance("AES"); + kg.init(128); + SecretKey sk = kg.generateKey(); + byte[] b = sk.getEncoded(); + return parseByte2HexStr(b); + } + + /** + * AES 加密 + * @param base64Key base64编码后的 AES key + * @param text 待加密的字符串 + * @return 加密后的byte[] 数组 + * @throws Exception + */ + public static byte[] getAESEncode(String base64Key, String text) throws Exception{ + return getAESEncode(base64Key, text.getBytes()); + } + + /** + * AES 加密 + * @param base64Key base64编码后的 AES key + * @param bytes 待加密的bytes + * @return 加密后的byte[] 数组 + * @throws Exception + */ + public static byte[] getAESEncode(String base64Key, byte[] bytes) throws Exception{ + if (base64Key == null)return bytes; + byte[] key = parseHexStr2Byte(base64Key); + SecretKeySpec sKeySpec = new SecretKeySpec(key, "AES"); + Cipher cipher = Cipher.getInstance("AES"); + cipher.init(Cipher.ENCRYPT_MODE, sKeySpec); + return cipher.doFinal(bytes); + } + + /** + * AES解密 + * @param base64Key base64编码后的 AES key + * @param text 待解密的字符串 + * @return 解密后的byte[] 数组 + * @throws Exception + */ + public static byte[] getAESDecode(String base64Key, String text) throws Exception{ + return getAESDecode(base64Key, text.getBytes()); + } + + /** + * AES解密 + * @param base64Key base64编码后的 AES key + * @param bytes 待解密的字符串 + * @return 解密后的byte[] 数组 + * @throws Exception + */ + public static byte[] getAESDecode(String base64Key, byte[] bytes) throws Exception{ + if (base64Key == null)return bytes; + byte[] key = parseHexStr2Byte(base64Key); + SecretKeySpec sKeySpec = new SecretKeySpec(key, "AES"); + Cipher cipher = Cipher.getInstance("AES"); + cipher.init(Cipher.DECRYPT_MODE, sKeySpec); + return cipher.doFinal(bytes); + } +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/utils/M3U8Log.java b/library/src/main/java/jaygoo/library/m3u8downloader/utils/M3U8Log.java new file mode 100644 index 0000000..e22b437 --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/utils/M3U8Log.java @@ -0,0 +1,28 @@ +package jaygoo.library.m3u8downloader.utils; + +import android.util.Log; + +import jaygoo.library.m3u8downloader.M3U8DownloaderConfig; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/21 + * 描 述: M3U8日志系统 + * ================================================ + */ +public class M3U8Log { + + private static String TAG = "M3U8Log"; + + public static void d(String msg){ + if (M3U8DownloaderConfig.isDebugMode()) Log.d(TAG, msg); + } + + public static void e(String msg){ + if (M3U8DownloaderConfig.isDebugMode()) Log.e(TAG, msg); + } + + +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/utils/MD5Utils.java b/library/src/main/java/jaygoo/library/m3u8downloader/utils/MD5Utils.java new file mode 100644 index 0000000..db28894 --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/utils/MD5Utils.java @@ -0,0 +1,30 @@ +package jaygoo.library.m3u8downloader.utils; + +import java.math.BigInteger; +import java.security.MessageDigest; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/27 + * 描 述: MD5加密工具 + * ================================================ + */ +public class MD5Utils { + + public static String encode(String str) { + try { + // 生成一个MD5加密计算摘要 + MessageDigest md = MessageDigest.getInstance("MD5"); + // 计算md5函数 + md.update(str.getBytes()); + // digest()最后确定返回md5 hash值,返回值为8为字符串。因为md5 hash值是16位的hex值,实际上就是8位的字符 + // BigInteger函数则将8位的字符串转换成16位hex值,用字符串来表示;得到字符串形式的hash值 + return new BigInteger(1, md.digest()).toString(16); + } catch (Exception e) { + e.printStackTrace(); + } + return str; + } +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/utils/MUtils.java b/library/src/main/java/jaygoo/library/m3u8downloader/utils/MUtils.java new file mode 100644 index 0000000..21594b1 --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/utils/MUtils.java @@ -0,0 +1,163 @@ +package jaygoo.library.m3u8downloader.utils; + +import java.io.BufferedReader; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.FileWriter; +import java.io.IOException; +import java.io.InputStreamReader; +import java.net.URL; + +import jaygoo.library.m3u8downloader.M3U8DownloaderConfig; +import jaygoo.library.m3u8downloader.bean.M3U8; +import jaygoo.library.m3u8downloader.bean.M3U8Ts; + +/** + * ================================================ + * 作 者:JayGoo + * 版 本: + * 创建日期:2017/11/18 + * 描 述: 工具类 + * ================================================ + */ + +public class MUtils { + + /** + * 将Url转换为M3U8对象 + * + * @param url + * @return + * @throws IOException + */ + public static M3U8 parseIndex(String url) throws IOException { + + BufferedReader reader = new BufferedReader(new InputStreamReader(new URL(url).openStream())); + + String basepath = url.substring(0, url.lastIndexOf("/") + 1); + + M3U8 ret = new M3U8(); + ret.setBasePath(basepath); + + String line; + float seconds = 0; + while ((line = reader.readLine()) != null) { + if (line.startsWith("#")) { + if (line.startsWith("#EXTINF:")) { + line = line.substring(8); + if (line.endsWith(",")) { + line = line.substring(0, line.length() - 1); + } + seconds = Float.parseFloat(line); + } + continue; + } + if (line.endsWith("m3u8")) { + return parseIndex(basepath + line); + } + ret.addTs(new M3U8Ts(line, seconds)); + seconds = 0; + } + reader.close(); + + return ret; + } + + + /** + * 清空文件夹 + */ + public static void clearDir(File dir) { + if (dir.exists()) {// 判断文件是否存在 + if (dir.isFile()) {// 判断是否是文件 + dir.delete();// 删除文件 + } else if (dir.isDirectory()) {// 否则如果它是一个目录 + File[] files = dir.listFiles();// 声明目录下所有的文件 files[]; + for (int i = 0; i < files.length; i++) {// 遍历目录下所有的文件 + clearDir(files[i]);// 把每个文件用这个方法进行迭代 + } + dir.delete();// 删除文件夹 + } + } + } + + + private static float KB = 1024; + private static float MB = 1024 * KB; + private static float GB = 1024 * MB; + + /** + * 格式化文件大小 + */ + public static String formatFileSize(long size){ + if (size >= GB) { + return String.format("%.1f GB", size / GB); + } else if (size >= MB) { + float value = size / MB; + return String.format(value > 100 ? "%.0f MB" : "%.1f MB", value); + } else if (size >= KB) { + float value = size / KB; + return String.format(value > 100 ? "%.0f KB" : "%.1f KB", value); + } else { + return String.format("%d B", size); + } + } + + /** + * 生成本地m3u8索引文件,ts切片和m3u8文件放在相同目录下即可 + * @param m3u8Dir + * @param m3U8 + */ + public static File createLocalM3U8(File m3u8Dir, String fileName, M3U8 m3U8) throws IOException{ + return createLocalM3U8(m3u8Dir, fileName, m3U8, null); + } + + /** + * 生成AES-128加密本地m3u8索引文件,ts切片和m3u8文件放在相同目录下即可 + * @param m3u8Dir + * @param m3U8 + */ + public static File createLocalM3U8(File m3u8Dir, String fileName, M3U8 m3U8, String keyPath) throws IOException{ + File m3u8File = new File(m3u8Dir, fileName); + BufferedWriter bfw = new BufferedWriter(new FileWriter(m3u8File, false)); + bfw.write("#EXTM3U\n"); + bfw.write("#EXT-X-VERSION:3\n"); + bfw.write("#EXT-X-MEDIA-SEQUENCE:0\n"); + bfw.write("#EXT-X-TARGETDURATION:13\n"); + for (M3U8Ts m3U8Ts : m3U8.getTsList()) { + if (keyPath != null) bfw.write("#EXT-X-KEY:METHOD=AES-128,URI=\""+keyPath+"\"\n"); + bfw.write("#EXTINF:" + m3U8Ts.getSeconds()+",\n"); + bfw.write(m3U8Ts.getFile()); + bfw.newLine(); + } + bfw.write("#EXT-X-ENDLIST"); + bfw.flush(); + bfw.close(); + return m3u8File; + } + + public static byte[] readFile(String fileName) throws IOException{ + File file = new File(fileName); + FileInputStream fis = new FileInputStream(file); + int length = fis.available(); + byte [] buffer = new byte[length]; + fis.read(buffer); + fis.close(); + return buffer; + } + + public static void saveFile(byte[] bytes, String fileName) throws IOException{ + File file = new File(fileName); + FileOutputStream outputStream = new FileOutputStream(file); + outputStream.write(bytes); + outputStream.flush(); + outputStream.close(); + } + + public static String getSaveFileDir(String url){ + return M3U8DownloaderConfig.getSaveDir() + File.separator + MD5Utils.encode(url); + } + +} diff --git a/library/src/main/java/jaygoo/library/m3u8downloader/utils/SPHelper.java b/library/src/main/java/jaygoo/library/m3u8downloader/utils/SPHelper.java new file mode 100755 index 0000000..740d035 --- /dev/null +++ b/library/src/main/java/jaygoo/library/m3u8downloader/utils/SPHelper.java @@ -0,0 +1,105 @@ +package jaygoo.library.m3u8downloader.utils; + +import android.content.Context; +import android.content.SharedPreferences; +import android.support.annotation.NonNull; +import android.support.annotation.Nullable; +import android.util.Log; + +import java.util.Collections; +import java.util.Set; + +public class SPHelper { + + private static final String NULL_KEY = "NULL_KEY"; + private static final String TAG_NAME = "M3U8PreferenceHelper"; + + private static SharedPreferences PREFERENCES; + + + public static void init(Context context) { + PREFERENCES = context.getSharedPreferences(TAG_NAME, Context.MODE_PRIVATE); + } + + public static void onSetPrefBoolSetting(String Tag, Boolean Value, Context activityContext) { + if (Tag != null && Value != null && activityContext != null) { + SharedPreferences settings = activityContext.getSharedPreferences(TAG_NAME, 0); + settings.edit().putBoolean(Tag, Value).commit(); + } + } + + private static String checkKeyNonNull(String key) { + if (key == null) { + Log.e(NULL_KEY, "Key is null!!!"); + return NULL_KEY; + } + return key; + } + + private static SharedPreferences.Editor newEditor() { + return PREFERENCES.edit(); + } + + public static void putBoolean(@NonNull String key, boolean value) { + newEditor().putBoolean(checkKeyNonNull(key), value).apply(); + } + + public static boolean getBoolean(@NonNull String key, boolean defValue) { + return PREFERENCES.getBoolean(checkKeyNonNull(key), defValue); + } + + public static void putInt(@NonNull String key, int value) { + newEditor().putInt(checkKeyNonNull(key), value).apply(); + } + + public static int getInt(@NonNull String key, int defValue) { + return PREFERENCES.getInt(checkKeyNonNull(key), defValue); + } + + public static void putLong(@NonNull String key, long value) { + newEditor().putLong(checkKeyNonNull(key), value).apply(); + } + + public static long getLong(@NonNull String key, long defValue) { + return PREFERENCES.getLong(checkKeyNonNull(key), defValue); + } + + public static void putFloat(@NonNull String key, float value) { + newEditor().putFloat(checkKeyNonNull(key), value).apply(); + } + + public static float getFloat(@NonNull String key, float defValue) { + return PREFERENCES.getFloat(checkKeyNonNull(key), defValue); + } + + public static void putString(@NonNull String key, @Nullable String value) { + newEditor().putString(checkKeyNonNull(key), value).apply(); + } + + public static String getString(@NonNull String key, @Nullable String defValue) { + return PREFERENCES.getString(checkKeyNonNull(key), defValue); + } + + public static void putStringSet(@NonNull String key, @Nullable Set values) { + newEditor().putStringSet(checkKeyNonNull(key), values).apply(); + } + + public static Set getStringSet(@NonNull String key, @Nullable Set defValues) { + Set result = PREFERENCES.getStringSet(checkKeyNonNull(key), defValues); + return result == null ? null : Collections.unmodifiableSet(result); + } + + public static void increaseCount(String key) { + int count = getInt(key, 0); + putInt(key, ++count); + } + + public static void remove(String key) { + newEditor().remove(key).apply(); + } + + public static void clearPreference() { + newEditor().clear().commit(); + } + +} diff --git a/library/src/main/res/values/strings.xml b/library/src/main/res/values/strings.xml new file mode 100644 index 0000000..6d51856 --- /dev/null +++ b/library/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + Library + diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..3306997 --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +include ':app', ':library'