mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Video message recording improvements
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user