Skip to content

Commit

Permalink
Android 更新SDK 8.2.9808
Browse files Browse the repository at this point in the history
  • Loading branch information
tatemin committed Dec 24, 2020
1 parent 9417045 commit 5ee24ca
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ public void backPressed() {
if (VideoRecordSDK.getInstance().getRecordState() == VideoRecordSDK.STATE_STOP) {
getPlayViews().releaseVideo();

if (getCountDownTimerView() !=null){
getCountDownTimerView().cancelDownAnimation();
}

if (mOnMixRecordListener != null) {
mOnMixRecordListener.onMixRecordCanceled();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class CountDownTimerView extends RelativeLayout implements ICountDownTime

private TextView mTextNumber;
private ICountDownListener mListener;
private boolean mAnimationStart;

public CountDownTimerView(Context context) {
super(context);
Expand Down Expand Up @@ -58,13 +59,15 @@ public void setOnCountDownListener(ICountDownListener listener) {
*/
public void countDownAnimation(final int num) {
if (num <= 0) {
mAnimationStart = false;
mTextNumber.setVisibility(GONE);

if (mListener != null) {
mListener.onCountDownComplete();
}
return;
}
mAnimationStart = true;
mTextNumber.setVisibility(View.VISIBLE);
mTextNumber.setText(Integer.toString(num));

Expand Down Expand Up @@ -116,12 +119,13 @@ public void onAnimationStart(Animator animation) {

@Override
public void onAnimationEnd(Animator animation) {
countDownAnimation(num - 1);
if (mAnimationStart){
countDownAnimation(num - 1);
}
}

@Override
public void onAnimationCancel(Animator animation) {

}

@Override
Expand All @@ -142,4 +146,10 @@ public void setCountDownNumber(int number) {
DEFAULT_COUNTDOWN_NUMBER = number;
}

@Override
public void cancelDownAnimation() {
DEFAULT_COUNTDOWN_NUMBER = 3;
mAnimationStart = false;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@ interface ICountDownListener {
*/
void setCountDownNumber(int number);

/**
* 取消倒计时动画
*/
void cancelDownAnimation();

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* 视频上传常量定义
*/
public class TVCConstants {
public static final String TVCVERSION = "8.1.9717";
public static final String TVCVERSION = "8.2.9808";
public static String VOD_SERVER_HOST = "vod2.qcloud.com";
public static String VOD_SERVER_HOST_BAK = "vod2.dnsv1.com";

Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
| Android | [下载](http://liteavsdk-1252463788.cosgz.myqcloud.com/TXLiteAVSDK_UGC_Android_latest.zip) | [DOC](https://cloud.tencent.com/document/product/584/11631) |


### Version 8.1 @ 2020.12.03
- Android: 改善短视频的画质&清晰度;
- Android: 修改美颜相关接口的参数类型从int到float;
- Android: 修复短视频暂停录制后返回值异常的问题;
- Android: 修复部分Crash问题及兼容性问题;
### Version 8.2 @ 2020.12.24
- Android: 修复切换摄像头绿幕失效的问题;
- Android: 修复短视频偶现的稳定性问题;
- iOS;修复播放器倒置旋转,偶现播放画面比例异常的问题;
- iOS;修复短视频录制设置为横屏时,继续录制的合成失败问题;
- iOS:修复超级播放器偶现的稳定性问题;

## 问题反馈
为了更好的了解您使用 UGSVSDK 所遇到的问题,方便快速有效定位解决 UGSVSDK 问题,希望您按如下反馈指引反馈issue,方便我们尽快解决您的问题
Expand Down
7 changes: 7 additions & 0 deletions 版本历史.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### Version 8.2 @ 2020.12.24
- Android: 修复切换摄像头绿幕失效的问题;
- Android: 修复短视频偶现的稳定性问题;
- iOS;修复播放器倒置旋转,偶现播放画面比例异常的问题;
- iOS;修复短视频录制设置为横屏时,继续录制的合成失败问题;
- iOS:修复超级播放器偶现的稳定性问题;

### Version 8.1 @ 2020.12.03
- Android: 改善短视频的画质&清晰度;
- Android: 修改美颜相关接口的参数类型从int到float;
Expand Down

0 comments on commit 5ee24ca

Please sign in to comment.