|
@@ -155,8 +155,8 @@ public class PQMovieInput: ImageSource {
|
|
|
|
|
|
|
|
|
displayLink?.frameInterval = 2
|
|
|
-
|
|
|
- displayLink?.add(to: RunLoop.main, forMode: RunLoop.Mode.default)
|
|
|
+
|
|
|
+ displayLink?.add(to: RunLoop.main, forMode: RunLoop.Mode.common)
|
|
|
displayLink?.isPaused = true
|
|
|
if #available(iOS 10.0, *) {
|
|
|
seekQueue = DispatchQueue(label: "PQ.MovieInput.seeking", qos: .userInteractive, attributes: .initiallyInactive, autoreleaseFrequency: .never, target: nil)
|
|
@@ -252,8 +252,8 @@ public class PQMovieInput: ImageSource {
|
|
|
|
|
|
let prgressValue = currTime / duration
|
|
|
|
|
|
- FilterLog(message: "播放进行中 总用时: \(CFAbsoluteTimeGetCurrent() - (debugStartTime ?? 0.0)) 播放进度当前时间:\(currTime)")
|
|
|
- if prgressValue > 1 {
|
|
|
+ FilterLog(message: "播放进行中 总用时: \(CFAbsoluteTimeGetCurrent() - (debugStartTime ?? 0.0)) 播放进度当前时间:\(currTime) 进度:\(prgressValue)")
|
|
|
+ if prgressValue >= 1 {
|
|
|
FilterLog(message: "全部播放完成 总用时为:\(CFAbsoluteTimeGetCurrent() - (debugStartTime ?? 0.0))")
|
|
|
|
|
|
self.delegate?.didFinishMovie()
|