Skip to content

Commit b9b64cf

Browse files
committedJun 22, 2018
support #41372
1 parent 047847c commit b9b64cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎client/iOS/swype/ProverSwipe/Detection/Merger.swift

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class Merger: CanMerge {
2020
guard let videoTrack = mixComposition
2121
.addMutableTrack(withMediaType: .video,
2222
preferredTrackID: Int32(kCMPersistentTrackID_Invalid)) else { return }
23+
// Force the resulted video to be always played in landscape mode
24+
videoTrack.preferredTransform = CGAffineTransform(rotationAngle: .pi*3/2)
25+
2326
do {
2427
try videoTrack
2528
.insertTimeRange(CMTimeRangeMake(kCMTimeZero, videoAsset.duration),

‎client/iOS/swype/ProverSwipe/Detection/MovieRecorder.swift

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class MovieRecorder {
2828
videoRecorder = VideoRecorder(withParent: preview)
2929
videoRecorder.delegate = self
3030
videoRecorder.record = true
31-
videoRecorder.rotate = true
3231

3332
self.coordinateDelegate = coordinateDelegate
3433
resetSwypeDetector()

0 commit comments

Comments
 (0)