KSYMediaEditorKit_Android icon indicating copy to clipboard operation
KSYMediaEditorKit_Android copied to clipboard

断点拍摄的时候,怎么获取拍摄的总时长!

Open junge89221 opened this issue 7 years ago • 1 comments

我有个需求 如题, 1、控制录制最短时间和最长时间是加在KSYRecordKit上,不放在拍摄进度条上; 2、拍摄完成的监听也放在KSYRecordKit上! 3、增加一个获取当前拍摄的总时长方法! 以上是我的小需求,能否帮忙实现一下呢~~

junge89221 avatar Aug 31 '17 08:08 junge89221

public int getProgress() {
        int total = 0;
        for (RecordClipModel clip : mProgressClipList) {
            total += clip.timeInterval;
        }
        return total;
 }

将以上代码放入RecordProgressView

YuJunKui1995 avatar Oct 18 '17 11:10 YuJunKui1995