From a395fa3323adbd306496142981a9a83bd006230b Mon Sep 17 00:00:00 2001 From: Nathen <1066666651@qq.com> Date: Sun, 12 May 2019 02:03:20 +0800 Subject: [PATCH 01/16] fix .gradle --- gradle/maven_push.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/maven_push.gradle b/gradle/maven_push.gradle index 43cac0989..a41d81063 100644 --- a/gradle/maven_push.gradle +++ b/gradle/maven_push.gradle @@ -8,7 +8,7 @@ signing { group = "cn.jzvd" archivesBaseName = "jiaozivideoplayer" -version = "7.0.2" +version = "7.0.3" uploadArchives { repositories { From 6783461aa0649299ef201caa8faa79d67447f3e3 Mon Sep 17 00:00:00 2001 From: Nathen <1066666651@qq.com> Date: Tue, 14 May 2019 01:13:25 +0800 Subject: [PATCH 02/16] readme --- README-ZH.md | 18 +++++++++--------- README.md | 17 +++++++++-------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/README-ZH.md b/README-ZH.md index 5c3a25f20..7579411de 100644 --- a/README-ZH.md +++ b/README-ZH.md @@ -49,28 +49,28 @@ Q群: 490442439 2群: 761899104 验证信息:jzvd 即便是自定义UI,或者对Library有过修改,也是这五步骤来使用播放器。 -7.0.3不是非常稳定,感兴趣的可以尝试 - 1.添加类库 ```gradle compile 'cn.jzvd:jiaozivideoplayer:7.0.3' ``` -或直接下载 [aar](https://github.com/lipangit/JiaoZiVideoPlayer/releases/tag/v6.4.2) (不建议) - 2.添加布局 ```xml - + android:layout_height="200dp"> + + ``` 3.设置视频地址、缩略图地址、标题 ```java -JzvdStd jzvdStd = (JzvdStd) findViewById(R.id.videoplayer); +MyJzvdStd jzvdStd = (MyJzvdStd) findViewById(R.id.jz_video); jzvdStd.setUp("http://jzvd.nathen.cn/c6e3dc12a1154626b3476d9bf3bd7266/6b56c5f0dc31428083757a45764763b0-5287d2089db37e62345123a1be272f8b.mp4" - , "饺子闭眼睛", Jzvd.SCREEN_WINDOW_NORMAL); + , "饺子闭眼睛"); jzvdStd.thumbImageView.setImage("http://p.qpic.cn/videoyun/0/2449_43b6f696980311e59ed467f22794e792_1/640"); ``` diff --git a/README.md b/README.md index 7ee52149d..b3c8b0401 100644 --- a/README.md +++ b/README.md @@ -55,28 +55,29 @@ Q群: 490442439 2群: 761899104 验证信息:jzvd Only five steps to use the player: -The 7.0.3 version is not very stable. - 1.Import library: ```gradle implementation 'cn.jzvd:jiaozivideoplayer:7.0.3' ``` -Or download [aar](https://github.com/lipangit/JiaoZiVideoPlayer/releases/tag/v6.4.2) (not recommended). 2.Add `JZVideoPlayer` in your layout: ```xml - + android:layout_height="200dp"> + + ``` 3.Set the video uri, video thumb url and video title: ```java -JzvdStd jzvdStd = (JzvdStd) findViewById(R.id.videoplayer); +MyJzvdStd jzvdStd = (MyJzvdStd) findViewById(R.id.jz_video); jzvdStd.setUp("http://jzvd.nathen.cn/c6e3dc12a1154626b3476d9bf3bd7266/6b56c5f0dc31428083757a45764763b0-5287d2089db37e62345123a1be272f8b.mp4" - , "饺子闭眼睛" , Jzvd.SCREEN_WINDOW_NORMAL); + , "饺子闭眼睛"); jzvdStd.thumbImageView.setImage("http://p.qpic.cn/videoyun/0/2449_43b6f696980311e59ed467f22794e792_1/640"); ``` From ccaa2895a4131d117ebd5eeba1be5268c73e0e53 Mon Sep 17 00:00:00 2001 From: Nathen <1066666651@qq.com> Date: Thu, 16 May 2019 22:56:13 +0800 Subject: [PATCH 03/16] upgrade as --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 748746728..5ea98810f 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.4.0' + classpath 'com.android.tools.build:gradle:3.4.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files From 9572ab5534da60f82423216c15b0fe19b50ca310 Mon Sep 17 00:00:00 2001 From: Nathen <1066666651@qq.com> Date: Mon, 20 May 2019 18:36:26 +0800 Subject: [PATCH 04/16] demo ui --- app/src/main/res/layout/activity_api.xml | 3 +-- app/src/main/res/layout/activity_api_rotation_videosize.xml | 3 +-- app/src/main/res/layout/activity_ui_small_change.xml | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/layout/activity_api.xml b/app/src/main/res/layout/activity_api.xml index d965d9f1b..e41c040a1 100644 --- a/app/src/main/res/layout/activity_api.xml +++ b/app/src/main/res/layout/activity_api.xml @@ -16,8 +16,7 @@ + android:layout_height="200dp"> + android:layout_height="200dp" />