├── .classpath ├── .project ├── .settings ├── org.eclipse.core.resources.prefs └── org.eclipse.jdt.core.prefs ├── AndroidManifest.xml ├── README.md ├── bin ├── AndroidManifest.xml ├── MyNanoHTTPD.apk ├── classes.dex ├── dexedLibs │ ├── android-async-http-1.4.5-e82107446ae50dd0fb6130e2aa727b09.jar │ └── android-support-v4-c008f691f4860c2efb0be12df1e533ce.jar ├── jarlist.cache ├── res │ └── crunch │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ │ └── drawable-xxhdpi │ │ └── ic_launcher.png └── resources.ap_ ├── ic_launcher-web.png ├── libs ├── android-async-http-1.4.5.jar └── android-support-v4.jar ├── proguard-project.txt ├── project.properties ├── res ├── drawable-hdpi │ └── ic_launcher.png ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xhdpi │ └── ic_launcher.png ├── drawable-xxhdpi │ └── ic_launcher.png ├── layout │ ├── activity_main.xml │ ├── fragment_main.xml │ ├── main.xml │ ├── mediaplayer_fragment.xml │ └── message_toast.xml ├── menu │ └── main.xml ├── raw │ ├── favorite.ico │ ├── index.html │ ├── index2.html │ ├── player.js │ ├── player_controler.swf │ ├── player_object.swf │ └── style.css ├── values-v11 │ └── styles.xml ├── values-v14 │ └── styles.xml ├── values-w820dp │ └── dimens.xml └── values │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml ├── screenshots └── test.jpg └── src └── com └── example └── mynanohttpd ├── Constant.java ├── HttpGetJsonUtil.java ├── LogUtils.java ├── MainActivity.java ├── NanoHTTPD.java ├── NetInfoAdapter.java ├── PlayActivity.java └── StreamingServer.java /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | MyNanoHTTPD 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 53 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TestNanoHTTPD 2 | 一个android为内建微型服务器 用来播放m3u8文件 3 | ![image](https://github.com/tianshiaimili/TestNanoHTTPD/blob/master/screenshots/test.jpg) 4 | -------------------------------------------------------------------------------- /bin/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 53 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /bin/MyNanoHTTPD.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/bin/MyNanoHTTPD.apk -------------------------------------------------------------------------------- /bin/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/bin/classes.dex -------------------------------------------------------------------------------- /bin/dexedLibs/android-async-http-1.4.5-e82107446ae50dd0fb6130e2aa727b09.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/bin/dexedLibs/android-async-http-1.4.5-e82107446ae50dd0fb6130e2aa727b09.jar -------------------------------------------------------------------------------- /bin/dexedLibs/android-support-v4-c008f691f4860c2efb0be12df1e533ce.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/bin/dexedLibs/android-support-v4-c008f691f4860c2efb0be12df1e533ce.jar -------------------------------------------------------------------------------- /bin/jarlist.cache: -------------------------------------------------------------------------------- 1 | # cache for current jar dependency. DO NOT EDIT. 2 | # format is 3 | # Encoding is UTF-8 4 | -------------------------------------------------------------------------------- /bin/res/crunch/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/bin/res/crunch/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/bin/res/crunch/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/bin/res/crunch/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/res/crunch/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/bin/res/crunch/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /bin/resources.ap_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/bin/resources.ap_ -------------------------------------------------------------------------------- /ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/ic_launcher-web.png -------------------------------------------------------------------------------- /libs/android-async-http-1.4.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/libs/android-async-http-1.4.5.jar -------------------------------------------------------------------------------- /libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/libs/android-support-v4.jar -------------------------------------------------------------------------------- /proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | #https://github.com/tianshiaimili/TestNanoHTTPD.git 15 | target=android-16 16 | 17 | -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tianshiaimili/TestNanoHTTPD/c02a3c368fcd5ef3e1aae69c6d0df79816a596ce/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | -------------------------------------------------------------------------------- /res/layout/fragment_main.xml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 16 | 17 | 21 | 22 | 29 | 30 | 36 | 37 | 42 | 43 | 51 | 52 | 60 | 61 | 69 | 70 | 71 | 72 | 78 | 79 |