mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Vide stream UI adjustments
This commit is contained in:
parent
653c2e4ba4
commit
217fb6c899
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -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))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user