Playback rate updates

This commit is contained in:
Ali
2021-07-25 23:32:44 +02:00
parent b09f60cadd
commit e2469f54be
4 changed files with 75 additions and 19 deletions

View File

@@ -899,6 +899,9 @@ final class ChatMessageInteractiveMediaNode: ASDisplayNode, GalleryItemTransitio
videoNode.ownsContentNodeUpdated = { [weak self] owns in
if let strongSelf = self {
strongSelf.videoNode?.isHidden = !owns
if owns {
strongSelf.videoNode?.setBaseRate(1.0)
}
}
}
strongSelf.videoContent = videoContent