├── .classpath ├── .gitignore ├── .project ├── .settings └── org.eclipse.jdt.core.prefs ├── AndroidManifest.xml ├── README.md ├── build.gradle ├── ic_launcher-web.png ├── proguard-project.txt ├── project.properties ├── res ├── drawable-hdpi │ ├── focusads_default.png │ ├── ic_launcher.png │ ├── image_progress.png │ ├── series_bg.png │ └── video_item_play_icon.png ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xhdpi │ └── ic_launcher.png ├── drawable-xxhdpi │ ├── ic_launcher.png │ ├── play_ctrl_share_bg.png │ └── play_ctrl_share_press_bg.png ├── drawable │ ├── item_track.xml │ ├── loading_iamge_progress.xml │ └── play_ctrl_share.xml ├── layout │ ├── common_control_layer.xml │ ├── control_layer.xml │ ├── control_layer_horizon.xml │ ├── list_vision.xml │ ├── list_vision_item.xml │ ├── live_video_detail_control_layer.xml │ ├── live_video_detail_control_layer_horizon.xml │ ├── m3u8_test.xml │ ├── m3u8_ui_control_layer.xml │ ├── m3u8_ui_control_layer_horizon.xml │ ├── main.xml │ ├── my_test_layer1.xml │ ├── only_horizon.xml │ ├── playerlist1_layout.xml │ ├── send_comment_layout_full_screen.xml │ ├── simple_control_layer.xml │ ├── simple_test.xml │ ├── simple_ui_ad_layer.xml │ ├── simple_ui_ad_layer_horizon.xml │ ├── simple_ui_control_layer.xml │ ├── simple_ui_control_layer_horizon.xml │ ├── sinavideo_test.xml │ ├── test1.xml │ ├── test_vid_vms.xml │ ├── test_webview.xml │ ├── video_grid_item.xml │ ├── video_gridview.xml │ ├── video_layout.xml │ ├── video_list_sport.xml │ ├── video_listview.xml │ ├── vidvms_ui_control_layer.xml │ └── vidvms_ui_control_layer_horizon.xml ├── raw │ └── test_webview.html ├── values-v11 │ └── styles.xml ├── values-v14 │ └── styles.xml └── values │ ├── attrs.xml │ ├── color.xml │ ├── strings.xml │ └── styles.xml └── src └── com └── sina └── playerdemo_v2 ├── MainActivity.java ├── MyApplication.java └── activity ├── OnlyHorizonActivity.java ├── SimpleTestActivity.java ├── SinaVideoActivity.java ├── Test2Activity.java ├── TestAutoSaveActivity.java ├── TestListActivity.java ├── TestM3u8Activity.java ├── TestMultiADActivity.java ├── TestSimpleADActivity.java └── TestWebviewActivity.java /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | *.i 3 | 4 | .hg/store/fncache 5 | 6 | .hg/store/phaseroots 7 | 8 | .hg/store/undo 9 | 10 | *.phaseroots 11 | 12 | *.bookmarks 13 | 14 | *.branch 15 | 16 | *.desc 17 | 18 | *.dirstate 19 | 20 | .hg/cache/branchheads 21 | 22 | .hg/cache/tags 23 | 24 | .hg/dirstate 25 | 26 | .hg/last-message.txt 27 | 28 | .hg/requires 29 | 30 | .hg/sourcetreeconfig 31 | 32 | bin/AndroidManifest.xml 33 | 34 | *.class 35 | 36 | *.apk 37 | 38 | *.dex 39 | 40 | *.jar 41 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | demo 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.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 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 23 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 35 | 36 | 39 | 40 | 43 | 44 | 47 | 48 | 51 | 52 | 55 | 56 | 59 | 60 | 64 | 65 | 69 | 70 | 73 | 74 | 77 | 78 | 81 | 82 | 85 | 86 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # demo 2 | 播放器的例子代码 3 | 4 | 直接从当前的代码里面copy一份出去,就可以成为一个新的播放器代码。 5 | 6 | 【具体请参考https://github.com/SinaVDDeveloper/demo/wiki/】 -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'android' 2 | 3 | dependencies { 4 | compile fileTree(dir: 'libs', include: '*.jar') 5 | compile project(':sinavideo_playersdk') 6 | } 7 | 8 | android { 9 | compileSdkVersion 20 10 | buildToolsVersion "22.0.1" 11 | 12 | sourceSets { 13 | main { 14 | manifest.srcFile 'AndroidManifest.xml' 15 | java.srcDirs = ['src'] 16 | resources.srcDirs = ['src'] 17 | aidl.srcDirs = ['src'] 18 | renderscript.srcDirs = ['src'] 19 | res.srcDirs = ['res'] 20 | assets.srcDirs = ['assets'] 21 | } 22 | 23 | // Move the tests to tests/java, tests/res, etc... 24 | instrumentTest.setRoot('tests') 25 | 26 | // Move the build types to build-types/ 27 | // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... 28 | // This moves them out of them default location under src//... which would 29 | // conflict with src/ being used by the main source set. 30 | // Adding new build types or product flavors should be accompanied 31 | // by a similar customization. 32 | debug.setRoot('build-types/debug') 33 | release.setRoot('build-types/release') 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SinaVDDeveloper/demo/ce1f1a479dc431f21161b88150fd67fb790da154/ic_launcher-web.png -------------------------------------------------------------------------------- /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 | target=android-20 15 | android.library.reference.1=../sinavideo_playersdk 16 | -------------------------------------------------------------------------------- /res/drawable-hdpi/focusads_default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SinaVDDeveloper/demo/ce1f1a479dc431f21161b88150fd67fb790da154/res/drawable-hdpi/focusads_default.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SinaVDDeveloper/demo/ce1f1a479dc431f21161b88150fd67fb790da154/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-hdpi/image_progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SinaVDDeveloper/demo/ce1f1a479dc431f21161b88150fd67fb790da154/res/drawable-hdpi/image_progress.png -------------------------------------------------------------------------------- /res/drawable-hdpi/series_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SinaVDDeveloper/demo/ce1f1a479dc431f21161b88150fd67fb790da154/res/drawable-hdpi/series_bg.png -------------------------------------------------------------------------------- /res/drawable-hdpi/video_item_play_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SinaVDDeveloper/demo/ce1f1a479dc431f21161b88150fd67fb790da154/res/drawable-hdpi/video_item_play_icon.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SinaVDDeveloper/demo/ce1f1a479dc431f21161b88150fd67fb790da154/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SinaVDDeveloper/demo/ce1f1a479dc431f21161b88150fd67fb790da154/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SinaVDDeveloper/demo/ce1f1a479dc431f21161b88150fd67fb790da154/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xxhdpi/play_ctrl_share_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SinaVDDeveloper/demo/ce1f1a479dc431f21161b88150fd67fb790da154/res/drawable-xxhdpi/play_ctrl_share_bg.png -------------------------------------------------------------------------------- /res/drawable-xxhdpi/play_ctrl_share_press_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SinaVDDeveloper/demo/ce1f1a479dc431f21161b88150fd67fb790da154/res/drawable-xxhdpi/play_ctrl_share_press_bg.png -------------------------------------------------------------------------------- /res/drawable/item_track.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /res/drawable/loading_iamge_progress.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | -------------------------------------------------------------------------------- /res/drawable/play_ctrl_share.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 7 | 9 | 11 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /res/layout/common_control_layer.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /res/layout/control_layer.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 18 | 19 | 28 | 29 | 33 | 34 | 41 | 42 | 47 | 48 | 49 | 50 | 62 | 63 | 74 | 75 | 76 | 82 | 83 | 86 | 87 | 90 | 91 | 92 | 97 | 98 | 105 | 106 | 114 | 115 | 123 | 124 | 128 | 129 | 133 | 134 | 135 | 136 | 137 | 138 | 148 | 149 | 154 | 155 | 164 | 165 | -------------------------------------------------------------------------------- /res/layout/control_layer_horizon.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 20 | 21 | 26 | 27 | 36 | 37 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 61 | 62 | 66 | 67 | 73 | 74 | 89 | 90 | 98 | 99 | 100 | 101 | 102 | 109 | 110 | 111 | 112 | 121 | 122 | 129 | 130 | 137 | 138 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 167 | 168 | 179 | 180 | 181 | 186 | 187 | 191 | 192 | 193 | 199 | 200 | 203 | 204 | 207 | 208 | 209 | 215 | 216 | 220 | 221 | 227 | 228 | 229 | 234 | 235 | 242 | 243 | 251 | 252 | 256 | 257 | 261 | 262 | 263 | 274 | 275 | 279 | 280 | 284 | 285 | -------------------------------------------------------------------------------- /res/layout/list_vision.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | -------------------------------------------------------------------------------- /res/layout/list_vision_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 14 | 15 | 20 | 21 | 25 | 26 | 27 | 33 | 34 | 41 | 42 | 48 | 49 | 59 | 60 | 61 | 62 | 68 | 69 | -------------------------------------------------------------------------------- /res/layout/live_video_detail_control_layer.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 14 | 23 | 24 | 28 | 29 | 36 | 37 | 42 | 43 | 44 | 45 | 57 | 58 | 68 | 69 | 70 | 76 | 77 | 80 | 81 | 84 | 85 | 86 | 91 | 92 | 99 | 100 | 108 | 109 | 114 | 115 | 119 | 120 | 123 | 124 | 125 | 126 | 127 | 128 | 138 | 139 | 143 | 144 | -------------------------------------------------------------------------------- /res/layout/live_video_detail_control_layer_horizon.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 17 | 18 | 19 | 28 | 29 | 36 | 37 | 42 | 43 | 52 | 53 | 61 | 62 | 69 | 70 | 76 | 77 | 85 | 86 | 91 | 92 | 93 | 99 | 100 | 101 | 102 | 103 | 104 | 113 | 114 | 119 | 120 | 131 | 132 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 165 | 166 | 177 | 178 | 179 | 184 | 185 | 189 | 190 | 191 | 197 | 198 | 201 | 202 | 205 | 206 | 207 | 213 | 214 | 218 | 219 | 225 | 226 | 227 | 232 | 233 | 240 | 241 | 249 | 250 | 255 | 256 | 260 | 261 | 264 | 265 | 266 | 272 | 273 | 274 | 281 | 282 | 289 | 290 | 291 | 302 | 303 | 307 | 308 | 312 | 313 | 314 | 325 | 326 |