mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
[WIP] Dynamic video streaming
This commit is contained in:
parent
7cbb5c784d
commit
923587b0da
141 changed files with 3365 additions and 1995 deletions
|
|
@ -59,6 +59,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
|
|||
public var allowWebViewInspection: Bool
|
||||
public var disableReloginTokens: Bool
|
||||
public var liveStreamV2: Bool
|
||||
public var dynamicStreaming: Bool
|
||||
|
||||
public static var defaultSettings: ExperimentalUISettings {
|
||||
return ExperimentalUISettings(
|
||||
|
|
@ -95,7 +96,8 @@ public struct ExperimentalUISettings: Codable, Equatable {
|
|||
experimentalCallMute: false,
|
||||
allowWebViewInspection: false,
|
||||
disableReloginTokens: false,
|
||||
liveStreamV2: false
|
||||
liveStreamV2: false,
|
||||
dynamicStreaming: false
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -133,7 +135,8 @@ public struct ExperimentalUISettings: Codable, Equatable {
|
|||
experimentalCallMute: Bool,
|
||||
allowWebViewInspection: Bool,
|
||||
disableReloginTokens: Bool,
|
||||
liveStreamV2: Bool
|
||||
liveStreamV2: Bool,
|
||||
dynamicStreaming: Bool
|
||||
) {
|
||||
self.keepChatNavigationStack = keepChatNavigationStack
|
||||
self.skipReadHistory = skipReadHistory
|
||||
|
|
@ -169,6 +172,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
|
|||
self.allowWebViewInspection = allowWebViewInspection
|
||||
self.disableReloginTokens = disableReloginTokens
|
||||
self.liveStreamV2 = liveStreamV2
|
||||
self.dynamicStreaming = dynamicStreaming
|
||||
}
|
||||
|
||||
public init(from decoder: Decoder) throws {
|
||||
|
|
@ -208,6 +212,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
|
|||
self.allowWebViewInspection = try container.decodeIfPresent(Bool.self, forKey: "allowWebViewInspection") ?? false
|
||||
self.disableReloginTokens = try container.decodeIfPresent(Bool.self, forKey: "disableReloginTokens") ?? false
|
||||
self.liveStreamV2 = try container.decodeIfPresent(Bool.self, forKey: "liveStreamV2") ?? false
|
||||
self.dynamicStreaming = try container.decodeIfPresent(Bool.self, forKey: "dynamicStreaming") ?? false
|
||||
}
|
||||
|
||||
public func encode(to encoder: Encoder) throws {
|
||||
|
|
@ -247,6 +252,7 @@ public struct ExperimentalUISettings: Codable, Equatable {
|
|||
try container.encode(self.allowWebViewInspection, forKey: "allowWebViewInspection")
|
||||
try container.encode(self.disableReloginTokens, forKey: "disableReloginTokens")
|
||||
try container.encode(self.liveStreamV2, forKey: "liveStreamV2")
|
||||
try container.encode(self.dynamicStreaming, forKey: "dynamicStreaming")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue