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

Commit 8b8e153

Browse files
committed
Merge branch 'release/v7.0.5'
2 parents 02ebc04 + ffa37f3 commit 8b8e153

34 files changed

+272
-104
lines changed

README-EN.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
--
33
<p align="center">
44
<a href="http://developer.android.com/index.html"><img src="https://img.shields.io/badge/platform-android-green.svg"></a>
5-
<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.4-green.svg"></a>
5+
<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.5-green.svg"></a>
66
<a href="http://choosealicense.com/licenses/mit/"><img src="https://img.shields.io/badge/license-MIT-green.svg"></a>
77
<a href="https://android-arsenal.com/details/1/3269"><img src="https://img.shields.io/badge/Android%20Arsenal-jiaozivideoplayer-green.svg?style=true"></a>
88
</p>
@@ -28,7 +28,7 @@
2828
## Steps for usage
2929

3030
1. Read through ReadMe
31-
2. Download and install the demo apk[jiaozivideoplayer-7.0.4.apk](https://github.com/lipangit/JiaoZiVideoPlayer/releases/download/v7.0.4/jiaozivideoplayer-7.0.4.apk), each page enters once, each button clicks once
31+
2. Download and install the demo apk[jiaozivideoplayer-7.0.5.apk](https://github.com/lipangit/JiaoZiVideoPlayer/releases/download/v7.0.5/jiaozivideoplayer-7.0.5.apk), each page enters once, each button clicks once
3232
3. Download and debug the develop branch, and find the source code through the effect
3333
4. See [custom-related WIKI](https://github.com/lipangit/JiaoZiVideoPlayer/wiki),Realize your own needs
3434

@@ -41,11 +41,15 @@
4141

4242
## Usage
4343

44+
#### Note:
45+
1.7.0 version of the bread layer outside the JzvdStd layout
46+
2.If the import configuration fails, check whether the Java8 configuration is added according to the failed log, or upgrade the environment to the latest stable version.
47+
4448
Only five steps to use the player:
4549

4650
1.Import library:
4751
```gradle
48-
implementation 'cn.jzvd:jiaozivideoplayer:7.0.4'
52+
implementation 'cn.jzvd:jiaozivideoplayer:7.0.5'
4953
```
5054

5155

README.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
--
33
<p align="center">
44
<a href="http://developer.android.com/index.html"><img src="https://img.shields.io/badge/platform-android-green.svg"></a>
5-
<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.4-green.svg"></a>
5+
<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.5-green.svg"></a>
66
<a href="http://choosealicense.com/licenses/mit/"><img src="https://img.shields.io/badge/license-MIT-green.svg"></a>
77
<a href="https://android-arsenal.com/details/1/3269"><img src="https://img.shields.io/badge/Android%20Arsenal-jiaozivideoplayer-green.svg?style=true"></a>
88
</p>
@@ -31,27 +31,35 @@ Q群:490442439, 2群:761899104, 验证信息:jzvd, 微信公众号:jzvdjzt,微
3131
12. demo中添加视频缓存的例子
3232
13. 倍速播放
3333

34-
## 使用必读
34+
## 必读
35+
36+
#### 首先
3537

3638
1. 通读ReadMe
37-
2. 下载安装demo apk [jiaozivideoplayer-7.0.4.apk](https://github.com/lipangit/JiaoZiVideoPlayer/releases/download/v7.0.4/jiaozivideoplayer-7.0.4.apk),各个页面都进入一次,各个按钮点一次
39+
2. 下载安装demo apk [jiaozivideoplayer-7.0.5.apk](https://github.com/lipangit/JiaoZiVideoPlayer/releases/download/v7.0.5/jiaozivideoplayer-7.0.5.apk),各个页面都进入一次,各个按钮点一次
3840
3. 下载调试develop分支,有针对性的通过效果找到实现的源码
3941
4. 继承JzvdStd,实现自己的需求
40-
5. 请仔细阅读相关文档和博客,可以把相关链接填在这里。
42+
43+
#### 必读文章
4144

4245
- [入门文档 1](https://juejin.im/entry/5cb838b5518825186d65430a)
4346
- [入门文档 2](https://shimo.im/docs/xj5F85W1gqEEBXRJ)
4447
- [Wiki](https://github.com/lipangit/JiaoZiVideoPlayer/wiki),很久没更新了
45-
- [EnglishWiki](https://github.com/felipetorres/VideoPlayer-Wiki)
48+
- [English Wiki](https://github.com/felipetorres/VideoPlayer-Wiki)
4649
- [Weibo](http://weibo.com/2342820395/profile?topnav=1&wvr=6&is_all=1)
47-
- [常见问题](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/常见问题),已经解决的,常见问题列表
48-
- [未解决问题](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/未解决问题),群主解决不了的,需要大家帮助的问题
50+
4951
- [公众号文章](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/%E5%85%AC%E4%BC%97%E5%8F%B7%E6%96%87%E7%AB%A0)
5052

51-
6.如果还有疑问
53+
#### 提问必读
54+
55+
- [常见问题](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/常见问题),查找已经解决的问题
56+
- 有问题请到Issue提问,我会第一时间回复,然后加我QQ微信(请备注)。
57+
- 到群里提问,请按照Issue模板,说清楚问题的情况,有管理员接应,解决不了的再找群主。
58+
59+
#### 参与项目必读
5260

53-
* 有问题请到Issue提问,我会第一时间回复,着急的QQ微信通知我一声,随时随地回复。微信:lipanhelloworld QQ:1066666651
54-
* 复杂的问题可以到群里讨论,有管理员接应,解决不了找群主
61+
- [加入我们](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/加入我们)
62+
- [未解决问题](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/未解决问题),群主解决不了的,需要大家帮助的问题
5563

5664
## 效果
5765

@@ -61,9 +69,13 @@ Q群:490442439, 2群:761899104, 验证信息:jzvd, 微信公众号:jzvdjzt,微
6169

6270
即便是自定义UI,或者对Library有过修改,把自定义的逻辑写到继承JzvdStd的类中,然后依然通过如下骤调用播放器。
6371

72+
#### 注意:
73+
1.7.0版本之后要在JzvdStd外面包一层Layout
74+
2.如果引入配置失败,根据失败的log检查是否添加了Java8的配置,或者升级环境到最新的稳定版
75+
6476
1.添加类库
6577
```gradle
66-
compile 'cn.jzvd:jiaozivideoplayer:7.0.4'
78+
compile 'cn.jzvd:jiaozivideoplayer:7.0.5'
6779
```
6880

6981
2.添加布局
@@ -123,12 +135,6 @@ protected void onPause() {
123135
```
124136

125137

126-
127-
## [加入我们](https://github.com/lipangit/JiaoZiVideoPlayer/wiki/加入我们)
128-
129-
老臣精力能力有限,希望和志同道合的朋友一起把项目做好,感兴趣的同学随时和我报名
130-
131-
132138
## License MIT
133139

134140
Copyright (c) 2015-2019 李盼

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 92
11-
versionName "7.0.4"
10+
versionCode 93
11+
versionName "7.0.5"
1212
}
1313
signingConfigs {
1414
releaseConfig {

app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@
9494
android:configChanges="orientation|screenSize|keyboardHidden"
9595
android:screenOrientation="portrait" />
9696

97+
<!--<activity-->
98+
<!--android:name=".ActivityPreloading"-->
99+
<!--android:configChanges="orientation|screenSize|keyboardHidden"-->
100+
<!--android:screenOrientation="portrait" />-->
101+
102+
97103
</application>
98104

99105
</manifest>

app/src/main/java/cn/jzvd/demo/ActivityApi.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
5757
, JzvdStd.SCREEN_NORMAL);
5858
Glide.with(this).load(VideoConstant.videoThumbList[0]).into(mJzvdStd.thumbImageView);
5959
// mJzvdStd.seekToInAdvance = 20000;
60-
// Jzvd.SAVE_PROGRESS = false;
60+
// Jzvd.SAVE_PROGRESS = false;//把这些注释的代码放到按钮上,让它可操作可见。
6161

6262
/** Play video in local path, eg:record by system camera **/
6363
// cpAssertVideoToLocalPath();
@@ -165,4 +165,7 @@ public void clickCustomMediaPlayer(View view) {
165165
startActivity(new Intent(ActivityApi.this, ActivityApiCustomMedia.class));
166166
}
167167

168+
public void clickPreloading(View view) {
169+
startActivity(new Intent(ActivityApi.this, ActivityPreloading.class));
170+
}
168171
}

app/src/main/java/cn/jzvd/demo/ActivityApiCustomMedia.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,23 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
6161

6262

6363
public void clickChangeToIjkplayer(View view) {
64-
Jzvd.resetAllVideos();
64+
Jzvd.releaseAllVideos();
6565
jzvdStd.setUp("http://jzvd.nathen.cn/342a5f7ef6124a4a8faf00e738b8bee4/cf6d9db0bd4d41f59d09ea0a81e918fd-5287d2089db37e62345123a1be272f8b.mp4"
6666
, "饺子快长大", JzvdStd.SCREEN_NORMAL, JZMediaIjk.class);
6767
jzvdStd.startVideo();
6868
Toast.makeText(this, "Change to Ijkplayer", Toast.LENGTH_SHORT).show();
6969
}
7070

7171
public void clickChangeToSystem(View view) {
72-
Jzvd.resetAllVideos();
72+
Jzvd.releaseAllVideos();
7373
jzvdStd.setUp("http://jzvd.nathen.cn/342a5f7ef6124a4a8faf00e738b8bee4/cf6d9db0bd4d41f59d09ea0a81e918fd-5287d2089db37e62345123a1be272f8b.mp4"
7474
, "饺子快长大", JzvdStd.SCREEN_NORMAL, JZMediaSystem.class);
7575
jzvdStd.startVideo();
7676
Toast.makeText(this, "Change to MediaPlayer", Toast.LENGTH_SHORT).show();
7777
}
7878

7979
public void clickChangeToExo(View view) {
80-
Jzvd.resetAllVideos();
80+
Jzvd.releaseAllVideos();
8181
jzvdStd.setUp("http://jzvd.nathen.cn/342a5f7ef6124a4a8faf00e738b8bee4/cf6d9db0bd4d41f59d09ea0a81e918fd-5287d2089db37e62345123a1be272f8b.mp4"
8282
, "饺子快长大", JzvdStd.SCREEN_NORMAL, JZMediaExo.class);
8383
jzvdStd.startVideo();
@@ -96,7 +96,7 @@ public void onBackPressed() {
9696
@Override
9797
protected void onPause() {
9898
super.onPause();
99-
Jzvd.resetAllVideos();
99+
Jzvd.releaseAllVideos();
100100
}
101101

102102
@Override

app/src/main/java/cn/jzvd/demo/ActivityApiExtendsNormal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ public void onBackPressed() {
3737
@Override
3838
protected void onPause() {
3939
super.onPause();
40-
Jzvd.resetAllVideos();
40+
Jzvd.releaseAllVideos();
4141
}
4242
}

app/src/main/java/cn/jzvd/demo/ActivityApiOrientation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void onBackPressed() {
5252
@Override
5353
protected void onPause() {
5454
super.onPause();
55-
Jzvd.resetAllVideos();
55+
Jzvd.releaseAllVideos();
5656

5757
//Change these two variables back
5858
Jzvd.FULLSCREEN_ORIENTATION = ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE;

app/src/main/java/cn/jzvd/demo/ActivityApiRotationVideoSize.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
4343
@Override
4444
protected void onPause() {
4545
super.onPause();
46-
Jzvd.resetAllVideos();
46+
Jzvd.releaseAllVideos();
4747
Jzvd.setVideoImageDisplayType(Jzvd.VIDEO_IMAGE_DISPLAY_TYPE_ADAPTER);
4848
}
4949

app/src/main/java/cn/jzvd/demo/ActivityApiUIBigChange.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void onBackPressed() {
3434
@Override
3535
protected void onPause() {
3636
super.onPause();
37-
Jzvd.resetAllVideos();
37+
Jzvd.releaseAllVideos();
3838
}
3939

4040
@Override

0 commit comments

Comments
 (0)