|
@@ -127,7 +127,7 @@ public class PQMovieInput: ImageSource {
|
|
public var mAutoPause: Bool = false
|
|
public var mAutoPause: Bool = false
|
|
|
|
|
|
|
|
|
|
- public var seekQueue: DispatchQueue!
|
|
+
|
|
|
|
|
|
|
|
|
|
public var mIsExport: Bool = false
|
|
public var mIsExport: Bool = false
|
|
@@ -170,10 +170,10 @@ public class PQMovieInput: ImageSource {
|
|
|
|
|
|
if #available(iOS 10, *){
|
|
if #available(iOS 10, *){
|
|
displayLink?.preferredFramesPerSecond = 30
|
|
displayLink?.preferredFramesPerSecond = 30
|
|
- seekQueue = DispatchQueue(label: "PQ.MovieInput.seeking", qos: .userInteractive, attributes: .initiallyInactive, autoreleaseFrequency: .never, target: nil)
|
|
+
|
|
}else{
|
|
}else{
|
|
displayLink?.frameInterval = 2
|
|
displayLink?.frameInterval = 2
|
|
- seekQueue = DispatchQueue(label: "PQ.MovieInput.seeking", qos: .userInteractive, attributes: [], autoreleaseFrequency: .inherit, target: nil)
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
displayLink?.add(to: RunLoop.main, forMode: RunLoop.Mode.common)
|
|
displayLink?.add(to: RunLoop.main, forMode: RunLoop.Mode.common)
|
|
@@ -201,6 +201,7 @@ public class PQMovieInput: ImageSource {
|
|
self.audioInputStatusObserver?.invalidate()
|
|
self.audioInputStatusObserver?.invalidate()
|
|
self.avPlayerTimeObserver?.invalidate()
|
|
self.avPlayerTimeObserver?.invalidate()
|
|
|
|
|
|
|
|
+ BFLog(message: "movieinput 销毁")
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -293,11 +294,6 @@ public class PQMovieInput: ImageSource {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- if #available(iOS 10.0, *) {
|
|
|
|
- seekQueue.activate()
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -737,45 +733,5 @@ extension PQMovieInput {
|
|
playerItem?.seek(to: playerItem?.reversePlaybackEndTime ?? CMTime(value: 0, timescale: 40))
|
|
playerItem?.seek(to: playerItem?.reversePlaybackEndTime ?? CMTime(value: 0, timescale: 40))
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|