Skip to content

Commit

Permalink
release v2.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Doikki committed Jan 23, 2019
1 parent d9c3e17 commit 6fca662
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ allprojects {
dependencies {
# 必选,可兼容市面上绝大部分设备
implementation 'com.github.dueeeke.dkplayer:dkplayer-java:2.5.4'
implementation 'com.github.dueeeke.dkplayer:dkplayer-armv7a:2.5.4'
implementation 'com.github.dueeeke.dkplayer:dkplayer-java:2.5.5'
implementation 'com.github.dueeeke.dkplayer:dkplayer-armv7a:2.5.5'
# 可选,用于兼容一些其他的CPU架构
implementation 'com.github.dueeeke.dkplayer:dkplayer-armv5:2.5.4'
implementation 'com.github.dueeeke.dkplayer:dkplayer-arm64:2.5.4'
implementation 'com.github.dueeeke.dkplayer:dkplayer-x86:2.5.4'
implementation 'com.github.dueeeke.dkplayer:dkplayer-x86_64:2.5.4'
implementation 'com.github.dueeeke.dkplayer:dkplayer-armv5:2.5.5'
implementation 'com.github.dueeeke.dkplayer:dkplayer-arm64:2.5.5'
implementation 'com.github.dueeeke.dkplayer:dkplayer-x86:2.5.5'
implementation 'com.github.dueeeke.dkplayer:dkplayer-x86_64:2.5.5'
# 可选,里面包含StandardVideoController的实现
implementation 'com.github.dueeeke.dkplayer:dkplayer-ui:2.5.4'
implementation 'com.github.dueeeke.dkplayer:dkplayer-ui:2.5.5'
}
```
或者将library下载并导入项目中使用
Expand Down
7 changes: 3 additions & 4 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 28
versionName "2.5.4"
versionCode 29
versionName "2.5.5"

ndk {
//打包时保留armeabi-v7a x86 so
Expand Down Expand Up @@ -79,10 +79,9 @@ dependencies {
implementation 'com.github.ctiao:DanmakuFlameMaster:0.8.3'
implementation 'com.github.ctiao:ndkbitmap-armv7a:0.8.3'
implementation "com.android.support:design:$rootProject.supportLibraryVersion"
implementation 'com.github.rubensousa:gravitysnaphelper:1.5'
implementation 'com.google.android.exoplayer:exoplayer:2.8.2'
implementation 'com.google.android.exoplayer:extension-rtmp:2.8.2'

//缓存
implementation 'com.danikula:videocache:2.7.1'


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ public void setCacheEnabled(boolean isEnabled) {
}

/**
* 返回是缓存的进度
* 开启缓存后,返回是缓存的进度
*/
@Override
public int getBufferedPercentage() {
return mBufferedPercentage;
return mIsCacheEnabled ? mBufferedPercentage : super.getBufferedPercentage();
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_cache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<com.dueeeke.dkplayer.widget.videoview.CacheIjkVideoView
android:id="@+id/player"
android:layout_width="match_parent"
android:layout_height="200dp"/>
android:layout_height="250dp"/>

</LinearLayout>

0 comments on commit 6fca662

Please sign in to comment.