Skip to content

Commit

Permalink
release v2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Doikki committed Apr 16, 2018
1 parent 6a4bc3a commit 78d7f40
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 23 deletions.
35 changes: 17 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A video player based on [IjkPlayer](https://github.com/Bilibili/ijkplayer).
* **支持列表小窗悬浮播放。**
* **支持封面。**
* **支持锁定/解锁全屏。**
* **支持调整显示比例:默认、原始大小、16:9、4:3、铺满屏幕。**
* **支持调整显示比例:默认、原始大小、16:9、4:3、铺满屏幕、居中裁剪**
* **暂停时前后台切换不黑屏**
* **支持IJKPlayer和MediaPlayer切换。**
* **支持Https协议。**
Expand All @@ -41,14 +41,14 @@ allprojects {
dependencies {
# required, enough for most devices.
implementation 'com.github.dueeeke.dkplayer:dkplayer-java:2.2.1'
implementation 'com.github.dueeeke.dkplayer:dkplayer-armv7a:2.2.1'
implementation 'com.github.dueeeke.dkplayer:dkplayer-java:2.2.3'
implementation 'com.github.dueeeke.dkplayer:dkplayer-armv7a:2.2.3'
# Other ABIs: optional
implementation 'com.github.dueeeke.dkplayer:dkplayer-armv5:2.2.1'
implementation 'com.github.dueeeke.dkplayer:dkplayer-arm64:2.2.1'
implementation 'com.github.dueeeke.dkplayer:dkplayer-x86:2.2.1'
implementation 'com.github.dueeeke.dkplayer:dkplayer-x86_64:2.2.1'
implementation 'com.github.dueeeke.dkplayer:dkplayer-armv5:2.2.3'
implementation 'com.github.dueeeke.dkplayer:dkplayer-arm64:2.2.3'
implementation 'com.github.dueeeke.dkplayer:dkplayer-x86:2.2.3'
implementation 'com.github.dueeeke.dkplayer:dkplayer-x86_64:2.2.3'
}
```
或者将library下载并导入项目中使用
Expand Down Expand Up @@ -99,7 +99,7 @@ ijkVideoView.setPlayerConfig(playerConfig);
super.onDestroy();
ijkVideoView.release();
}


@Override
public void onBackPressed() {
Expand All @@ -121,16 +121,15 @@ ijkVideoView.setPlayerConfig(playerConfig);

## 截图
<div>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/1.jpg" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/2.jpg" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/3.jpg" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/5.jpg" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/6.jpg" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/7.jpg" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/8.jpg" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/9.jpg" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/10.jpg" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/4.jpg" width="426px" height="240px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/1.png" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/2.png" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/3.png" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/4.png" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/5.png" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/6.png" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/7.png" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/8.png" width="240px" height="426px"/>
<img src="https://github.com/dueeeke/dkplayer/blob/master/art/9.png" width="426px" height="240px"/>
</div>

## 混淆
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 15
versionName "2.2"
versionCode 16
versionName "2.2.3"
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ public class VideoHolder extends RecyclerView.ViewHolder {
super(itemView);
ijkVideoView = itemView.findViewById(R.id.video_player);
int widthPixels = context.getResources().getDisplayMetrics().widthPixels;
ijkVideoView.setLayoutParams(new LinearLayout.LayoutParams(widthPixels, widthPixels / 16 * 9));
ijkVideoView.setLayoutParams(new LinearLayout.LayoutParams(widthPixels, widthPixels * 9 / 16 + 1));
controller = new StandardVideoController(context);
ijkVideoView.setVideoController(controller);
title = itemView.findViewById(R.id.tv_title);
mPlayerConfig = new PlayerConfig.Builder()
.enableCache()
.autoRotate()
.addToPlayerManager()
.usingAndroidMediaPlayer()
.addToPlayerManager()//required
// .usingAndroidMediaPlayer()
.build();
}
}
Expand Down
Binary file removed art/1.jpg
Binary file not shown.
Binary file added art/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed art/10.jpg
Binary file not shown.
Binary file removed art/2.jpg
Binary file not shown.
Binary file added art/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed art/3.jpg
Binary file not shown.
Binary file added art/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed art/4.jpg
Binary file not shown.
Binary file added art/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed art/5.jpg
Binary file not shown.
Binary file added art/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed art/6.jpg
Binary file not shown.
Binary file added art/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed art/7.jpg
Binary file not shown.
Binary file added art/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed art/8.jpg
Binary file not shown.
Binary file added art/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed art/9.jpg
Binary file not shown.
Binary file added art/9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 78d7f40

Please sign in to comment.