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

Commit

Permalink
Merge branch 'release/v6.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
I authored and I committed Feb 5, 2019
2 parents 32fe872 + 4a19425 commit 5b9a3e3
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Q群: 490442439 2群: 761899104 验证信息:jzvd
## 使用步骤

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

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

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

2.添加布局
```xml
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Q群: 490442439 2群: 761899104 验证信息:jzvd
## Steps for usage

1. Read through ReadMe
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
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
3. Download and debug the develop branch, and find the source code through the effect
4. See [custom-related WIKI](https://github.com/lipangit/JiaoZiVideoPlayer/wiki),Realize your own needs

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

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

2.Add `JZVideoPlayer` in your layout:
```xml
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "cn.jzvd.demo"
minSdkVersion 16
targetSdkVersion 28
versionCode 86
versionName "6.4.1"
versionCode 87
versionName "6.4.2"
}
signingConfigs {
releaseConfig {
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="cn.jzvd.demo">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<application
android:name=".ApplicationDemo"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/jz_network_security_config"
android:theme="@style/AppTheme">
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity
android:name=".ActivityMain"
android:configChanges="orientation|screenSize|keyboardHidden"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/cn/jzvd/demo/CustomView/JzvdStdSpeed.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public void init(Context context) {
@Override
public void setUp(JZDataSource jzDataSource, int screen) {
super.setUp(jzDataSource, screen);
if (currentScreen == SCREEN_WINDOW_FULLSCREEN) {
if (currentScreen == SCREEN_WINDOW_FULLSCREEN &&
android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
tvSpeed.setVisibility(View.VISIBLE);
} else {
tvSpeed.setVisibility(View.GONE);
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.android.tools.build:gradle:3.3.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion gradle/maven_push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ signing {

group = "cn.jzvd"
archivesBaseName = "jiaozivideoplayer"
version = "6.4.1"
version = "6.4.2"

uploadArchives {
repositories {
Expand Down
4 changes: 2 additions & 2 deletions jiaozivideoplayer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 28
versionCode 86
versionName "6.4.1"
versionCode 87
versionName "6.4.2"
}
buildTypes {
release {
Expand Down
8 changes: 6 additions & 2 deletions jiaozivideoplayer/src/main/java/cn/jzvd/JzvdStd.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ public void onReceive(Context context, Intent intent) {
int percent = level * 100 / scale;
LAST_GET_BATTERYLEVEL_PERCENT = percent;
setBatteryLevel();
getContext().unregisterReceiver(battertReceiver);
try {
getContext().unregisterReceiver(battertReceiver);
} catch (Exception e) {
e.printStackTrace();
}
}
}
};
Expand Down Expand Up @@ -263,7 +267,7 @@ public void onClick(View v) {
super.onClick(v);
int i = v.getId();
if (i == R.id.thumb) {
if (jzDataSource.urlsMap.isEmpty() || jzDataSource.getCurrentUrl() == null) {
if (jzDataSource == null || jzDataSource.urlsMap.isEmpty() || jzDataSource.getCurrentUrl() == null) {
Toast.makeText(getContext(), getResources().getString(R.string.no_url), Toast.LENGTH_SHORT).show();
return;
}
Expand Down
13 changes: 8 additions & 5 deletions jiaozivideoplayer/src/main/res/layout/jz_layout_std.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
android:descendantFocusability="blocksDescendants">
android:descendantFocusability="afterDescendants">

<FrameLayout
android:id="@+id/surface_container"
Expand Down Expand Up @@ -109,9 +109,10 @@
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:paddingLeft="10dp"
android:background="@drawable/jz_title_bg"
android:paddingStart="10dp">
android:paddingStart="10dp"
android:paddingLeft="10dp"
android:visibility="gone">

<ImageView
android:id="@+id/back"
Expand Down Expand Up @@ -150,7 +151,8 @@
android:layout_marginEnd="14dp"
android:layout_marginRight="14dp"
android:gravity="center_vertical"
android:orientation="vertical">
android:orientation="vertical"
android:visibility="invisible">

<ImageView
android:id="@+id/battery_level"
Expand Down Expand Up @@ -215,7 +217,8 @@
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:gravity="center_horizontal"
android:orientation="vertical">
android:orientation="vertical"
android:visibility="invisible">

<TextView
android:layout_width="wrap_content"
Expand Down

0 comments on commit 5b9a3e3

Please sign in to comment.