├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── vcs.xml ├── modules.xml ├── runConfigurations.xml ├── gradle.xml ├── compiler.xml └── misc.xml ├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ └── layout │ │ │ │ ├── frament_list.xml │ │ │ │ ├── activity_viewpager.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── activity_list.xml │ │ │ │ └── activity_play.xml │ │ ├── java │ │ │ └── js │ │ │ │ └── listvideodemo │ │ │ │ ├── Utils.java │ │ │ │ ├── ImageLoaderOptions.java │ │ │ │ ├── viewpager │ │ │ │ ├── VideoFramentAdapter.java │ │ │ │ ├── ViewPagerActivity.java │ │ │ │ └── ListVideoFrament.java │ │ │ │ ├── VideoApplication.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── list │ │ │ │ ├── ListVideoAdapter.java │ │ │ │ └── ListActivity.java │ │ │ │ └── playpage │ │ │ │ └── PlayPageActivity.java │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── js │ │ └── listvideodemo │ │ └── ApplicationTest.java ├── proguard-rules.pro ├── build.gradle └── app.iml ├── ListVideoPlay ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── drawable-xhdpi │ │ │ ├── uu_back.png │ │ │ ├── icon_back_2.png │ │ │ ├── icon_more.png │ │ │ ├── icon_more_h.png │ │ │ ├── uu_enlarge.png │ │ │ ├── uu_shrink.png │ │ │ ├── icon_share_2.png │ │ │ ├── uu_loading_bg.png │ │ │ ├── icon_share_2_h.png │ │ │ ├── sound_open_icon.png │ │ │ ├── uu_backward_icon.png │ │ │ ├── uu_error_normal.png │ │ │ ├── uu_error_pressed.png │ │ │ ├── uu_forward_icon.png │ │ │ ├── uu_pause_normal.png │ │ │ ├── uu_pause_pressed.png │ │ │ ├── uu_play_normal.png │ │ │ ├── uu_play_pressed.png │ │ │ ├── uu_volume_icon.png │ │ │ └── video_stop_btn.png │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ ├── dimens.xml │ │ │ ├── styles.xml │ │ │ └── strings.xml │ │ ├── drawable │ │ │ ├── uu_loading.xml │ │ │ ├── uu_seek_thumb_normal.xml │ │ │ ├── uu_seek_thumb_pressed.xml │ │ │ ├── background_title.xml │ │ │ ├── uu_seek_thumb.xml │ │ │ ├── more_selector.xml │ │ │ ├── shape_selector.xml │ │ │ ├── uu_dialog_progress_bg.xml │ │ │ ├── uu_time.xml │ │ │ ├── uu_dialog_progress.xml │ │ │ ├── uu_volume_progress_bg.xml │ │ │ ├── uu_seek_progress.xml │ │ │ └── uu_progress.xml │ │ └── layout │ │ │ ├── table_media_info.xml │ │ │ ├── table_media_info_section.xml │ │ │ ├── table_media_info_row1.xml │ │ │ ├── table_media_info_row2.xml │ │ │ ├── uu_volume_dialog.xml │ │ │ ├── view_video_item.xml │ │ │ ├── uu_progress_dialog.xml │ │ │ ├── media_contoller.xml │ │ │ └── item_video.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── js │ │ └── nch │ │ └── videoplay │ │ ├── VideoPlayViewManage.java │ │ ├── video │ │ ├── IMediaController.java │ │ ├── MediaPlayerService.java │ │ ├── IRenderView.java │ │ ├── MediaPlayerCompat.java │ │ ├── TableLayoutBinder.java │ │ ├── Settings.java │ │ ├── InfoHudViewHolder.java │ │ ├── SurfaceRenderView.java │ │ └── MeasureHelper.java │ │ ├── Utils.java │ │ ├── VideoPlayView.java │ │ └── FullScreenTouch.java ├── proguard-rules.pro ├── build.gradle ├── ListVideoPlay.iml └── app.iml ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── README.md ├── gradle.properties ├── VideoList.iml ├── ListVideoDemo2.iml ├── gradlew.bat └── gradlew /.idea/.name: -------------------------------------------------------------------------------- 1 | VideoList -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /ListVideoPlay/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':ListVideoPlay' 2 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | /captures 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # VideoListCase 2 | 基于ijkplayer的视频播放列表,支持列表播放、全屏播放(加减声音、进度条)、经典viewpage+fragment组合的列表播放、正在播放视频拖动到不可见区域小窗口播放、无缝列表页进播放继续播放 3 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/app/src/main/res/drawable/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/uu_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/uu_back.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/icon_back_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/icon_back_2.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/icon_more.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/icon_more.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/icon_more_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/icon_more_h.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/uu_enlarge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/uu_enlarge.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/uu_shrink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/uu_shrink.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/icon_share_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/icon_share_2.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/uu_loading_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/uu_loading_bg.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/icon_share_2_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/icon_share_2_h.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/sound_open_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/sound_open_icon.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/uu_backward_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/uu_backward_icon.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/uu_error_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/uu_error_normal.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/uu_error_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/uu_error_pressed.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/uu_forward_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/uu_forward_icon.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/uu_pause_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/uu_pause_normal.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/uu_pause_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/uu_pause_pressed.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/uu_play_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/uu_play_normal.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/uu_play_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/uu_play_pressed.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/uu_volume_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/uu_volume_icon.png -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable-xhdpi/video_stop_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/707813227/VideoListCase/HEAD/ListVideoPlay/src/main/res/drawable-xhdpi/video_stop_btn.png -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 80dp 3 | 24dp 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ListVideoDemo 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Aug 31 16:14:56 CST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 7 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable/uu_loading.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable/uu_seek_thumb_normal.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable/uu_seek_thumb_pressed.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable/background_title.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable/uu_seek_thumb.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable/more_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable/shape_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable/uu_dialog_progress_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/java/js/listvideodemo/Utils.java: -------------------------------------------------------------------------------- 1 | package js.listvideodemo; 2 | 3 | /** 4 | * Created by peter on 16/8/31. 5 | */ 6 | public class Utils { 7 | 8 | private static int videoHeight; 9 | 10 | public static void setVideoHeight(int videoHeight) { 11 | Utils.videoHeight = videoHeight; 12 | } 13 | 14 | public static int getVideoHeight() { 15 | return videoHeight; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable/uu_time.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | xmlns:android="http//schemas.android.com/apk/res/android" 4 | android:shape="oval"> 5 | 6 | 7 | 8 | 9 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/androidTest/java/js/listvideodemo/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package js.listvideodemo; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/layout/frament_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/layout/table_media_info.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/layout/table_media_info_section.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 14 | 15 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable/uu_dialog_progress.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable/uu_volume_progress_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/peter/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /ListVideoPlay/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/peter/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/layout/table_media_info_row1.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 20 | 21 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/java/js/listvideodemo/ImageLoaderOptions.java: -------------------------------------------------------------------------------- 1 | package js.listvideodemo; 2 | 3 | import com.nostra13.universalimageloader.core.DisplayImageOptions; 4 | import com.nostra13.universalimageloader.core.display.FadeInBitmapDisplayer; 5 | 6 | /** 7 | * Created by peter on 16/8/31. 8 | */ 9 | public class ImageLoaderOptions { 10 | 11 | // 在listview中使用的设置 12 | public static DisplayImageOptions list_options = new DisplayImageOptions.Builder() 13 | .showImageOnLoading(R.drawable.ic_launcher) 14 | .showImageForEmptyUri(R.drawable.ic_launcher) 15 | .showImageOnFail(R.drawable.ic_launcher) 16 | .cacheInMemory(true) 17 | .cacheOnDisk(true).considerExifParams(true)// 会识别图片的方向信息 18 | .displayer(new FadeInBitmapDisplayer(0)).build();// 渐渐显示的动画 19 | 20 | } 21 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/layout/table_media_info_row2.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 15 | 16 | 23 | 24 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /ListVideoPlay/src/main/java/js/nch/videoplay/VideoPlayViewManage.java: -------------------------------------------------------------------------------- 1 | package js.nch.videoplay; 2 | 3 | import android.content.Context; 4 | 5 | /** 6 | * Created by peter on 16/8/31. 7 | */ 8 | public class VideoPlayViewManage { 9 | public static VideoPlayViewManage videoPlayViewManage ; 10 | private VideoPlayView videoPlayView; 11 | private VideoPlayViewManage(){ 12 | 13 | } 14 | public static VideoPlayViewManage getManage(){ 15 | if (videoPlayViewManage == null){ 16 | videoPlayViewManage = new VideoPlayViewManage(); 17 | } 18 | return videoPlayViewManage; 19 | } 20 | 21 | public VideoPlayView initialize(Context context){ 22 | if (videoPlayView ==null){ 23 | videoPlayView = new VideoPlayView(context); 24 | }else { 25 | videoPlayView.setContext(context); 26 | } 27 | return videoPlayView; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /ListVideoPlay/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.1" 6 | 7 | defaultConfig { 8 | minSdkVersion 15 9 | targetSdkVersion 23 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | compile fileTree(dir: 'libs', include: ['*.jar']) 23 | compile 'com.android.support:appcompat-v7:24.0.0' 24 | compile 'tv.danmaku.ijk.media:ijkplayer-java:0.6.0' 25 | compile 'tv.danmaku.ijk.media:ijkplayer-exo:0.6.0' 26 | compile 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.6.0' 27 | compile 'tv.danmaku.ijk.media:ijkplayer-x86:0.6.0' 28 | compile 'tv.danmaku.ijk.media:ijkplayer-armv5:0.6.0' 29 | } 30 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable/uu_seek_progress.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/drawable/uu_progress.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.1" 6 | 7 | defaultConfig { 8 | applicationId "js.listvideodemo" 9 | minSdkVersion 15 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | compile 'com.android.support:appcompat-v7:24.0.0' 25 | compile 'com.android.support:design:24.0.0' 26 | compile 'com.android.support:cardview-v7:23.2.1' 27 | compile 'com.android.support:recyclerview-v7:23.2.1' 28 | 29 | compile project(':ListVideoPlay') 30 | compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4' 31 | } 32 | -------------------------------------------------------------------------------- /VideoList.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /ListVideoDemo2.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/res/layout/uu_volume_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 21 | 22 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_viewpager.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 10 | 16 | 20 | 21 | 22 | 23 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /ListVideoPlay/src/main/java/js/nch/videoplay/video/IMediaController.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 Zhang Rui 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package js.nch.videoplay.video; 18 | 19 | import android.view.View; 20 | import android.widget.MediaController; 21 | 22 | public interface IMediaController { 23 | void hide(); 24 | 25 | boolean isShowing(); 26 | 27 | void setAnchorView(View view); 28 | 29 | void setEnabled(boolean enabled); 30 | 31 | void setMediaPlayer(MediaController.MediaPlayerControl player); 32 | 33 | void show(int timeout); 34 | 35 | void show(); 36 | 37 | //---------- 38 | // Extends 39 | //---------- 40 | void showOnce(View view); 41 | } 42 | -------------------------------------------------------------------------------- /app/src/main/java/js/listvideodemo/viewpager/VideoFramentAdapter.java: -------------------------------------------------------------------------------- 1 | package js.listvideodemo.viewpager; 2 | 3 | import android.support.v4.app.Fragment; 4 | import android.support.v4.app.FragmentManager; 5 | import android.support.v4.app.FragmentStatePagerAdapter; 6 | 7 | import java.util.ArrayList; 8 | 9 | import js.nch.videoplay.VideoPlayView; 10 | 11 | /** 12 | * Created by peter on 16/8/31. 13 | */ 14 | public class VideoFramentAdapter extends FragmentStatePagerAdapter { 15 | private ViewPagerActivity viewPagerActivity; 16 | private VideoPlayView videoPlayView; 17 | private ArrayList data; 18 | 19 | public VideoFramentAdapter(ViewPagerActivity viewPagerActivity, FragmentManager fm, ArrayList data, VideoPlayView videoPlayView) { 20 | super(fm); 21 | this.data = data; 22 | this.videoPlayView = videoPlayView; 23 | this.viewPagerActivity = viewPagerActivity; 24 | } 25 | 26 | @Override 27 | public Fragment getItem(int position) { 28 | return new ListVideoFrament(viewPagerActivity,videoPlayView); 29 | } 30 | 31 | @Override 32 | public int getCount() { 33 | return data.size(); 34 | } 35 | 36 | @Override 37 | public CharSequence getPageTitle(int position) { 38 | return data.get(position); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 9 |