Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Commit 5b9a3e3

Browse files
II
authored andcommitted
Merge branch 'release/v6.4.2'
2 parents 32fe872 + 4a19425 commit 5b9a3e3

File tree

10 files changed

+30
-19
lines changed

10 files changed

+30
-19
lines changed

README-ZH.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Q群: 490442439 2群: 761899104 验证信息:jzvd
3030
## 使用步骤
3131

3232
1. 通读ReadMe
33-
2. 下载安装demo apk [jiaozivideoplayer-6.4.1.apk](https://github.com/lipangit/JiaoZiVideoPlayer/releases/download/v6.4.1/jiaozivideoplayer-6.4.1.apk),各个页面都进入一次,各个按钮点一次
33+
2. 下载安装demo apk [jiaozivideoplayer-6.4.1.apk](https://github.com/lipangit/JiaoZiVideoPlayer/releases/download/v6.4.2/jiaozivideoplayer-6.4.1.apk),各个页面都进入一次,各个按钮点一次
3434
3. 下载调试develop分支,有针对性的通过效果找到实现的源码
3535
4.[自定义相关的WIKI](https://github.com/lipangit/JiaoZiVideoPlayer/wiki),实现自己的需求
3636

@@ -52,7 +52,7 @@ Q群: 490442439 2群: 761899104 验证信息:jzvd
5252
compile 'cn.jzvd:jiaozivideoplayer:6.4.1'
5353
```
5454

55-
或直接下载 [aar](https://github.com/lipangit/JiaoZiVideoPlayer/releases/tag/v6.4.1) (不建议)
55+
或直接下载 [aar](https://github.com/lipangit/JiaoZiVideoPlayer/releases/tag/v6.4.2) (不建议)
5656

5757
2.添加布局
5858
```xml

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Q群: 490442439 2群: 761899104 验证信息:jzvd
3535
## Steps for usage
3636

3737
1. Read through ReadMe
38-
2. Download and install the demo apk[jiaozivideoplayer-6.4.1.apk](https://github.com/lipangit/JiaoZiVideoPlayer/releases/download/v6.4.1/jiaozivideoplayer-6.4.1.apk), each page enters once, each button clicks once
38+
2. Download and install the demo apk[jiaozivideoplayer-6.4.1.apk](https://github.com/lipangit/JiaoZiVideoPlayer/releases/download/v6.4.2/jiaozivideoplayer-6.4.1.apk), each page enters once, each button clicks once
3939
3. Download and debug the develop branch, and find the source code through the effect
4040
4. See [custom-related WIKI](https://github.com/lipangit/JiaoZiVideoPlayer/wiki),Realize your own needs
4141

@@ -57,7 +57,7 @@ Only five steps to use the player:
5757
implementation 'cn.jzvd:jiaozivideoplayer:6.4.1'
5858
```
5959

60-
Or download [aar](https://github.com/lipangit/JiaoZiVideoPlayer/releases/tag/v6.4.1) (not recommended).
60+
Or download [aar](https://github.com/lipangit/JiaoZiVideoPlayer/releases/tag/v6.4.2) (not recommended).
6161

6262
2.Add `JZVideoPlayer` in your layout:
6363
```xml

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "cn.jzvd.demo"
88
minSdkVersion 16
99
targetSdkVersion 28
10-
versionCode 86
11-
versionName "6.4.1"
10+
versionCode 87
11+
versionName "6.4.2"
1212
}
1313
signingConfigs {
1414
releaseConfig {

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
34
package="cn.jzvd.demo">
45

56
<uses-permission android:name="android.permission.INTERNET" />
67
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
8+
79
<application
810
android:name=".ApplicationDemo"
911
android:allowBackup="false"
1012
android:icon="@mipmap/ic_launcher"
1113
android:label="@string/app_name"
1214
android:networkSecurityConfig="@xml/jz_network_security_config"
13-
android:theme="@style/AppTheme">
15+
android:theme="@style/AppTheme"
16+
tools:ignore="GoogleAppIndexingWarning">
1417
<activity
1518
android:name=".ActivityMain"
1619
android:configChanges="orientation|screenSize|keyboardHidden"

app/src/main/java/cn/jzvd/demo/CustomView/JzvdStdSpeed.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public void init(Context context) {
3232
@Override
3333
public void setUp(JZDataSource jzDataSource, int screen) {
3434
super.setUp(jzDataSource, screen);
35-
if (currentScreen == SCREEN_WINDOW_FULLSCREEN) {
35+
if (currentScreen == SCREEN_WINDOW_FULLSCREEN &&
36+
android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
3637
tvSpeed.setVisibility(View.VISIBLE);
3738
} else {
3839
tvSpeed.setVisibility(View.GONE);

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.2.1'
9+
classpath 'com.android.tools.build:gradle:3.3.0'
1010

1111
// NOTE: Do not place your application dependencies here; they belong
1212
// in the individual module build.gradle files

gradle/maven_push.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ signing {
2222

2323
group = "cn.jzvd"
2424
archivesBaseName = "jiaozivideoplayer"
25-
version = "6.4.1"
25+
version = "6.4.2"
2626

2727
uploadArchives {
2828
repositories {

jiaozivideoplayer/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ android {
66
defaultConfig {
77
minSdkVersion 16
88
targetSdkVersion 28
9-
versionCode 86
10-
versionName "6.4.1"
9+
versionCode 87
10+
versionName "6.4.2"
1111
}
1212
buildTypes {
1313
release {

jiaozivideoplayer/src/main/java/cn/jzvd/JzvdStd.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ public void onReceive(Context context, Intent intent) {
7676
int percent = level * 100 / scale;
7777
LAST_GET_BATTERYLEVEL_PERCENT = percent;
7878
setBatteryLevel();
79-
getContext().unregisterReceiver(battertReceiver);
79+
try {
80+
getContext().unregisterReceiver(battertReceiver);
81+
} catch (Exception e) {
82+
e.printStackTrace();
83+
}
8084
}
8185
}
8286
};
@@ -263,7 +267,7 @@ public void onClick(View v) {
263267
super.onClick(v);
264268
int i = v.getId();
265269
if (i == R.id.thumb) {
266-
if (jzDataSource.urlsMap.isEmpty() || jzDataSource.getCurrentUrl() == null) {
270+
if (jzDataSource == null || jzDataSource.urlsMap.isEmpty() || jzDataSource.getCurrentUrl() == null) {
267271
Toast.makeText(getContext(), getResources().getString(R.string.no_url), Toast.LENGTH_SHORT).show();
268272
return;
269273
}

jiaozivideoplayer/src/main/res/layout/jz_layout_std.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
android:layout_width="match_parent"
44
android:layout_height="match_parent"
55
android:background="@android:color/black"
6-
android:descendantFocusability="blocksDescendants">
6+
android:descendantFocusability="afterDescendants">
77

88
<FrameLayout
99
android:id="@+id/surface_container"
@@ -109,9 +109,10 @@
109109
android:layout_alignParentStart="true"
110110
android:layout_alignParentLeft="true"
111111
android:layout_alignParentTop="true"
112-
android:paddingLeft="10dp"
113112
android:background="@drawable/jz_title_bg"
114-
android:paddingStart="10dp">
113+
android:paddingStart="10dp"
114+
android:paddingLeft="10dp"
115+
android:visibility="gone">
115116

116117
<ImageView
117118
android:id="@+id/back"
@@ -150,7 +151,8 @@
150151
android:layout_marginEnd="14dp"
151152
android:layout_marginRight="14dp"
152153
android:gravity="center_vertical"
153-
android:orientation="vertical">
154+
android:orientation="vertical"
155+
android:visibility="invisible">
154156

155157
<ImageView
156158
android:id="@+id/battery_level"
@@ -215,7 +217,8 @@
215217
android:layout_centerHorizontal="true"
216218
android:layout_centerVertical="true"
217219
android:gravity="center_horizontal"
218-
android:orientation="vertical">
220+
android:orientation="vertical"
221+
android:visibility="invisible">
219222

220223
<TextView
221224
android:layout_width="wrap_content"

0 commit comments

Comments
 (0)