You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.关于进度条显示不正常的解决方法
com.aserbao.androidcustomcamera.whole.record.beans.MediaObject public class MediaPart implements Serializable{ public String mediaPath; public int duration; public int number; public long startTime; public int endTime=0; public boolean remove; public String getMediaPath(){ return mediaPath; } public void setDuration(int duration) { this.duration = duration; } public int getDuration() { return endTime>0?endTime:duration > 0 ? duration : (int) ( System.currentTimeMillis() - startTime); } }
原因:每次进度条递增,这个视频时间只是根据当前时间和开始时间来计算的,这样导致录制停止以后也会继续执行。
2.录制时间达到限制后不能及时关闭
com.aserbao.androidcustomcamera.whole.record.RecorderActivity
` mVideoRecordProgressView.setOverTimeClickListener(new ProgressView.OverTimeClickListener() { @OverRide
public void overTime() {
setBackAlpha(mVideoRecordFinishIv,255);
mCustomRecordImageView.performClick();
}
@Override
public void noEnoughTime() {
setBackAlpha(mVideoRecordFinishIv,255);
}
@Override
public void isArriveCountDown() {
mCustomRecordImageView.performClick();
}
});`
The text was updated successfully, but these errors were encountered:
1.关于进度条显示不正常的解决方法
com.aserbao.androidcustomcamera.whole.record.beans.MediaObject
public class MediaPart implements Serializable{ public String mediaPath; public int duration; public int number; public long startTime; public int endTime=0; public boolean remove; public String getMediaPath(){ return mediaPath; } public void setDuration(int duration) { this.duration = duration; } public int getDuration() { return endTime>0?endTime:duration > 0 ? duration : (int) ( System.currentTimeMillis() - startTime); } }
原因:每次进度条递增,这个视频时间只是根据当前时间和开始时间来计算的,这样导致录制停止以后也会继续执行。
2.录制时间达到限制后不能及时关闭
com.aserbao.androidcustomcamera.whole.record.RecorderActivity
` mVideoRecordProgressView.setOverTimeClickListener(new ProgressView.OverTimeClickListener() {
@OverRide
public void overTime() {
setBackAlpha(mVideoRecordFinishIv,255);
mCustomRecordImageView.performClick();
}
The text was updated successfully, but these errors were encountered: