Fix video display

This commit is contained in:
Isaac
2024-08-30 23:11:05 +08:00
parent 2fab1d113e
commit 0afe444a8f
2 changed files with 20 additions and 7 deletions

View File

@@ -244,7 +244,11 @@ final class VideoChatParticipantVideoComponent: Component {
videoBackgroundLayer = SimpleLayer()
videoBackgroundLayer.backgroundColor = UIColor(white: 0.1, alpha: 1.0).cgColor
self.videoBackgroundLayer = videoBackgroundLayer
self.layer.insertSublayer(videoBackgroundLayer, at: 0)
if let blurredAvatarView = self.blurredAvatarView {
self.layer.insertSublayer(videoBackgroundLayer, above: blurredAvatarView.layer)
} else {
self.layer.insertSublayer(videoBackgroundLayer, at: 0)
}
videoBackgroundLayer.isHidden = true
}