Vide stream UI adjustments

This commit is contained in:
Ali 2022-02-27 01:57:48 +04:00
parent 653c2e4ba4
commit 217fb6c899
3 changed files with 4 additions and 2 deletions

View File

@ -562,7 +562,7 @@ public final class MediaStreamComponent: CombinedComponent {
func scheduleDismissUI() { func scheduleDismissUI() {
if self.scheduledDismissUITimer == nil { if self.scheduledDismissUITimer == nil {
self.scheduledDismissUITimer = SwiftSignalKit.Timer(timeout: 5.0, repeat: false, completion: { [weak self] in self.scheduledDismissUITimer = SwiftSignalKit.Timer(timeout: 3.0, repeat: false, completion: { [weak self] in
guard let strongSelf = self else { guard let strongSelf = self else {
return return
} }

View File

@ -56,7 +56,7 @@ final class MediaStreamVideoComponent: Component {
override init(frame: CGRect) { override init(frame: CGRect) {
self.blurTintView = UIView() self.blurTintView = UIView()
self.blurTintView.backgroundColor = UIColor(white: 0.0, alpha: 0.5) self.blurTintView.backgroundColor = UIColor(white: 0.0, alpha: 0.55)
super.init(frame: frame) super.init(frame: frame)

View File

@ -379,6 +379,8 @@ public final class GroupCallNavigationAccessoryPanel: ASDisplayNode {
let membersText: String let membersText: String
if summaryState.participantCount == 0 { if summaryState.participantCount == 0 {
membersText = strongSelf.strings.VoiceChat_Panel_TapToJoin membersText = strongSelf.strings.VoiceChat_Panel_TapToJoin
} else if let info = summaryState.info, info.isStream {
membersText = strongSelf.strings.LiveStream_ViewerCount(Int32(summaryState.participantCount))
} else { } else {
membersText = strongSelf.strings.VoiceChat_Panel_Members(Int32(summaryState.participantCount)) membersText = strongSelf.strings.VoiceChat_Panel_Members(Int32(summaryState.participantCount))
} }