I am adding 60fps video files to an AVMutableComposition and I am wondering if its possible to play that composition back at half speed.
This is where its adding to the video track
do {
try videoTrack?.insertTimeRange(CMTimeRangeMake(start: start, duration: duration),
of: asset.tracks(withMediaType: AVMediaType.video)[0] ,
at: lastTime)
} catch {
print("Failed to insert video track")
}
And thats the part that plays it back in a window
let videoPlayer = AVPlayer(playerItem: playerItem)
playerLayer.player = videoPlayer
videoPlayer.play()
Any pointers to how the playback could be slowed down to 30fps?