Video message recording improvements

This commit is contained in:
Ilya Laktyushin
2024-01-12 18:17:14 +04:00
parent eab00ad5cf
commit e8ff9f603a
12 changed files with 464 additions and 65 deletions

View File

@@ -20,6 +20,13 @@ final class ResultPreviewView: UIView {
}
}
var onLoop: () -> Void = {}
var isMuted = true {
didSet {
self.player.isMuted = self.isMuted
}
}
init(composition: AVComposition) {
self.composition = composition
@@ -42,6 +49,8 @@ final class ResultPreviewView: UIView {
}
self.player.pause()
self.seek(to: start, andPlay: true)
self.onLoop()
})
self.player.play()