|
@@ -250,12 +250,13 @@ public class PQMovieInput: ImageSource {
|
|
|
BFLog(2, message: "\(mIsExport) MovieOutput total frames appended:播放进行中 总用时: \(CFAbsoluteTimeGetCurrent() - (debugStartTime ?? 0.0)) 播放器开始时间:\(CMTimeGetSeconds(playeTimeRange.start)) 播放器原始结束时间:\(CMTimeGetSeconds(playeTimeRange.end)) 总时间:\(CMTimeGetSeconds(playeTimeRange.end) - CMTimeGetSeconds(playeTimeRange.start)) 播放进度当前时间:\(currTime) 进度:\(prgressValue) 帧id \(totalFramesSent)")
|
|
|
totalFramesSent += 1
|
|
|
|
|
|
- BFLog(2, message: "播放进行中 总用时: \(CFAbsoluteTimeGetCurrent() - (debugStartTime ?? 0.0)) 播放进度当前时间:\(currTime) 进度:\(prgressValue)")
|
|
|
- if currTime / duration > 1 {
|
|
|
+ BFLog(2, message: "2222222222播放进行中 总用时: \(CFAbsoluteTimeGetCurrent() - (debugStartTime ?? 0.0)) 播放进度当前时间:\(currTime) 总时间为:\(duration)进度:\(prgressValue) 音频时长:\( CMTimeGetSeconds(asset.duration) )")
|
|
|
+ if currTime / duration > 1{
|
|
|
BFLog(2, message: "全部播放完成 总用时为:\(CFAbsoluteTimeGetCurrent() - (debugStartTime ?? 0.0))")
|
|
|
-
|
|
|
- self.completion?()
|
|
|
-
|
|
|
+ if(self.completion != nil){
|
|
|
+ self.completion?()
|
|
|
+ }
|
|
|
+
|
|
|
self.beginTime = 0
|
|
|
self.currentTime = CMTimeMakeWithSeconds(CMTimeGetSeconds(playeTimeRange.start), preferredTimescale: BASE_FILTER_TIMESCALE)
|
|
|
self.isPlay = false
|
|
@@ -264,6 +265,10 @@ public class PQMovieInput: ImageSource {
|
|
|
// 定到首帧,最好移动到业务逻辑中。。。TODO不是导出模式才定帧
|
|
|
if !mIsExport {
|
|
|
self.start(isFreeBuffer: true,timeRange: playeTimeRange)
|
|
|
+ }else{
|
|
|
+ BFLog(message: "强制停止!!!!")
|
|
|
+ displayLink.isPaused = true
|
|
|
+ return
|
|
|
}
|
|
|
}
|
|
|
|