Various fixes

This commit is contained in:
Ilya Laktyushin 2022-06-21 10:09:22 +05:00
parent 3f4308f366
commit 009d2445d2

View File

@ -132,9 +132,9 @@ final class ChatBotInfoItemNode: ListViewItemNode {
}
let videoContent = NativeVideoContent(
id: .message(1, MediaId(namespace: 0, id: Int64.random(in: 0..<Int64.max))),
id: .message(0, MediaId(namespace: 0, id: Int64.random(in: 0..<Int64.max))),
fileReference: .standalone(media: file),
streamVideo: .conservative,
streamVideo: .none,
loopVideo: true,
enableSound: false,
fetchAutomatically: true,
@ -148,6 +148,8 @@ final class ChatBotInfoItemNode: ListViewItemNode {
(videoNode.decoration as? VideoDecoration)?.updateCorners(ImageCorners(topLeft: .Corner(17.0), topRight: .Corner(17.0), bottomLeft: .Corner(0.0), bottomRight: .Corner(0.0)))
self.offsetContainer.addSubnode(videoNode)
videoNode.play()
}
override func didLoad() {