Skip to content

Commit

Permalink
1.修复移动网络环境下无法点击继续播放问题
Browse files Browse the repository at this point in the history
2.release v2.3.6
  • Loading branch information
Doikki committed Apr 27, 2018
1 parent 7e54a7d commit 1633d36
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ allprojects {
dependencies {
# required, enough for most devices.
implementation 'com.github.dueeeke.dkplayer:dkplayer-java:2.3.5'
implementation 'com.github.dueeeke.dkplayer:dkplayer-armv7a:2.3.5'
implementation 'com.github.dueeeke.dkplayer:dkplayer-java:2.3.6'
implementation 'com.github.dueeeke.dkplayer:dkplayer-armv7a:2.3.6'
# Other ABIs: optional
implementation 'com.github.dueeeke.dkplayer:dkplayer-armv5:2.3.5'
implementation 'com.github.dueeeke.dkplayer:dkplayer-arm64:2.3.5'
implementation 'com.github.dueeeke.dkplayer:dkplayer-x86:2.3.5'
implementation 'com.github.dueeeke.dkplayer:dkplayer-x86_64:2.3.5'
implementation 'com.github.dueeeke.dkplayer:dkplayer-armv5:2.3.6'
implementation 'com.github.dueeeke.dkplayer:dkplayer-arm64:2.3.6'
implementation 'com.github.dueeeke.dkplayer:dkplayer-x86:2.3.6'
implementation 'com.github.dueeeke.dkplayer:dkplayer-x86_64:2.3.6'
}
```
或者将library下载并导入项目中使用
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "com.dueeeke.dkplayer"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 19
versionName "2.3.5"
versionCode 20
versionName "2.3.6"
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void onClick(View v) {
mediaPlayer.start();
}
});
this.addView(mStatusView, 0);
this.addView(mStatusView);
}

public void hideStatusView() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ public void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) {
}

protected boolean checkNetwork() {
if (NetworkUtil.getNetworkType(getContext()) == NetworkUtil.NETWORK_MOBILE && !PlayerConstants.IS_PLAY_ON_MOBILE_NETWORK) {
if (NetworkUtil.getNetworkType(getContext()) == NetworkUtil.NETWORK_MOBILE
&& !PlayerConstants.IS_PLAY_ON_MOBILE_NETWORK) {
if (mVideoController != null) {
mVideoController.showStatusView();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ public class PlayerConstants {

public static boolean IS_PLAY_ON_MOBILE_NETWORK = false;//记录是否在移动网络下播放视频

public static final String DK_PROGRESS = "DKPlayerProgress";
}

0 comments on commit 1633d36

Please sign in to comment.