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/v7.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
lipangit committed May 9, 2019
2 parents 25181b2 + 41ea5d6 commit 998d67f
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 47 deletions.
8 changes: 4 additions & 4 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--
<p align="center">
<a href="http://developer.android.com/index.html"><img src="https://img.shields.io/badge/platform-android-green.svg"></a>
<a href="http://search.maven.org/#artifactdetails%7Ccn.jzvd%7Cjiaozivideoplayer%7C5.8.2%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-7.0_preview-green.svg"></a>
<a href="http://search.maven.org/#artifactdetails%7Ccn.jzvd%7Cjiaozivideoplayer%7C5.8.2%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-7.0.2-green.svg"></a>
<a href="http://choosealicense.com/licenses/mit/"><img src="https://img.shields.io/badge/license-MIT-green.svg"></a>
<a href="https://android-arsenal.com/details/1/3269"><img src="https://img.shields.io/badge/Android%20Arsenal-jiaozivideoplayer-green.svg?style=true"></a>
</p>
Expand Down Expand Up @@ -32,7 +32,7 @@ Q群: 490442439 2群: 761899104 验证信息:jzvd
## 使用步骤

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

Expand All @@ -49,11 +49,11 @@ Q群: 490442439 2群: 761899104 验证信息:jzvd

即便是自定义UI,或者对Library有过修改,也是这五步骤来使用播放器。

7.0版本是预览版本,还没开发完,还有问题,请先用6.4.3
7.0.2不是非常稳定,感兴趣的可以尝试

1.添加类库
```gradle
compile 'cn.jzvd:jiaozivideoplayer:7.0_preview'
compile 'cn.jzvd:jiaozivideoplayer:7.0.2'
```

或直接下载 [aar](https://github.com/lipangit/JiaoZiVideoPlayer/releases/tag/v6.4.2) (不建议)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--
<p align="center">
<a href="http://developer.android.com/index.html"><img src="https://img.shields.io/badge/platform-android-green.svg"></a>
<a href="http://search.maven.org/#artifactdetails%7Ccn.jzvd%7Cjiaozivideoplayer%7C5.8.2%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-7.0_preview-green.svg"></a>
<a href="http://search.maven.org/#artifactdetails%7Ccn.jzvd%7Cjiaozivideoplayer%7C5.8.2%7Caar"><img src="https://img.shields.io/badge/Maven%20Central-7.0.2-green.svg"></a>
<a href="http://choosealicense.com/licenses/mit/"><img src="https://img.shields.io/badge/license-MIT-green.svg"></a>
<a href="https://android-arsenal.com/details/1/3269"><img src="https://img.shields.io/badge/Android%20Arsenal-jiaozivideoplayer-green.svg?style=true"></a>
</p>
Expand Down Expand Up @@ -38,7 +38,7 @@ Q群: 490442439 2群: 761899104 验证信息:jzvd
## Steps for usage

1. Read through ReadMe
2. Download and install the demo apk[jiaozivideoplayer-7.0_preview.apk](https://github.com/lipangit/JiaoZiVideoPlayer/releases/download/v6.4.2/jiaozivideoplayer-7.0_preview.apk), each page enters once, each button clicks once
2. Download and install the demo apk[jiaozivideoplayer-7.0.2.apk](https://github.com/lipangit/JiaoZiVideoPlayer/releases/download/v7.0.2/jiaozivideoplayer-7.0.2.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 @@ -55,11 +55,11 @@ Q群: 490442439 2群: 761899104 验证信息:jzvd

Only five steps to use the player:

The 7.0 version is a preview version. It has not been developed yet. There are still problems. Please use 6.4.3 first.
The 7.0.2 version is not very stable.

1.Import library:
```gradle
implementation 'cn.jzvd:jiaozivideoplayer:7.0_preview'
implementation 'cn.jzvd:jiaozivideoplayer:7.0.2'
```

Or download [aar](https://github.com/lipangit/JiaoZiVideoPlayer/releases/tag/v6.4.2) (not recommended).
Expand Down
9 changes: 7 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 89
versionName "7.0.1"
versionCode 90
versionName "7.0.2"
}
signingConfigs {
releaseConfig {
Expand All @@ -19,6 +19,11 @@ android {
}
}
buildTypes {
debug {//测试时会用到
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.releaseConfig
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
Expand Down
9 changes: 9 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@
# public *;
#}

-keep public class cn.jzvd.JZMediaSystem {*; }
-keep public class cn.jzvd.demo.CustomMedia.CustomMedia {*; }
-keep public class cn.jzvd.demo.CustomMedia.JZMediaIjk {*; }
-keep public class cn.jzvd.demo.CustomMedia.JZMediaSystemAssertFolder {*; }


-keep class tv.danmaku.ijk.media.player.** {*; }
-dontwarn tv.danmaku.ijk.media.player.*
-keep interface tv.danmaku.ijk.media.player.** { *; }
14 changes: 8 additions & 6 deletions app/src/main/java/cn/jzvd/demo/CustomMedia/JZMediaExo.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,14 @@ public void onSurfaceTextureUpdated(SurfaceTexture surface) {
private class onBufferingUpdate implements Runnable {
@Override
public void run() {
final int percent = simpleExoPlayer.getBufferedPercentage();
handler.post(() -> jzvd.setBufferProgress(percent));
if (percent < 100) {
handler.postDelayed(callback, 300);
} else {
handler.removeCallbacks(callback);
if (simpleExoPlayer != null) {
final int percent = simpleExoPlayer.getBufferedPercentage();
handler.post(() -> jzvd.setBufferProgress(percent));
if (percent < 100) {
handler.postDelayed(callback, 300);
} else {
handler.removeCallbacks(callback);
}
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions gradle/maven_push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ signing {

group = "cn.jzvd"
archivesBaseName = "jiaozivideoplayer"
version = "7.0.1"
version = "7.0.2"

uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

// repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
// authentication(userName: getProperty('ossrhUsername'),
// password: getProperty('ossrhPassword'))
// }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: getProperty('ossrhUsername'),
password: getProperty('ossrhPassword'))
}

pom.project {
name 'jiaozivideoplayer'
Expand Down
11 changes: 3 additions & 8 deletions jiaozivideoplayer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 28
versionCode 89
versionName "7.0.1"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
versionCode 90
versionName "7.0.2"
}

compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
Expand Down
17 changes: 0 additions & 17 deletions jiaozivideoplayer/proguard-rules.pro

This file was deleted.

2 changes: 1 addition & 1 deletion jiaozivideoplayer/src/main/java/cn/jzvd/Jzvd.java
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ public void reset() {
AudioManager mAudioManager = (AudioManager) getApplicationContext().getSystemService(Context.AUDIO_SERVICE);
mAudioManager.abandonAudioFocus(onAudioFocusChangeListener);
JZUtils.scanForActivity(getContext()).getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
mediaInterface.release();
if (mediaInterface != null) mediaInterface.release();
}

public void addTextureView() {
Expand Down

0 comments on commit 998d67f

Please sign in to comment.