Skip to content

Commit

Permalink
add version
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoqiang committed Aug 31, 2018
1 parent 9a4d9db commit 98d8119
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions KsyunPlayerDemo/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.ksyun.player.demo"
minSdkVersion 16
targetSdkVersion 22
versionCode 222
versionName "2.2.2"
versionCode 223
versionName "2.2.3"

ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,10 @@ protected void onPause() {
super.onPause();
if(toFloatingWindow){
video.removeView(FloatingPlayer.getInstance().getKSYTextureView());
FloatingPlayer.getInstance().getKSYTextureView().setOnTouchListener(null);
FloatingPlayer.getInstance().getKSYTextureView().setVideoScalingMode(KSYMediaPlayer.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING);
if(FloatingPlayer.getInstance().getKSYTextureView() != null) {
FloatingPlayer.getInstance().getKSYTextureView().setOnTouchListener(null);
FloatingPlayer.getInstance().getKSYTextureView().setVideoScalingMode(KSYMediaPlayer.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING);
}
}else{
FloatingPlayer.getInstance().getKSYTextureView().pause();
}
Expand Down

0 comments on commit 98d8119

Please sign in to comment.