This commit is contained in:
Ali
2023-06-27 23:41:17 +03:00
parent d0ad8d4773
commit 1e56d1b8ff
23 changed files with 893 additions and 570 deletions

View File

@@ -401,9 +401,9 @@ private final class NativeVideoContentNode: ASDisplayNode, UniversalVideoContent
func setSoundEnabled(_ value: Bool) {
assert(Queue.mainQueue().isCurrent())
if value {
self.player.playOnceWithSound(playAndRecord: true)
self.player.playOnceWithSound(playAndRecord: true, seek: .none)
} else {
self.player.continuePlayingWithoutSound()
self.player.continuePlayingWithoutSound(seek: .none)
}
}