[WIP] Serialization

This commit is contained in:
Isaac
2025-02-13 22:32:59 +04:00
parent c178023779
commit 8918f70173
30 changed files with 1515 additions and 64 deletions

View File

@@ -73,10 +73,8 @@ public final class NativeVideoContent: UniversalVideoContent {
public static func isHLSVideo(file: TelegramMediaFile) -> Bool {
for alternativeRepresentation in file.alternativeRepresentations {
if let alternativeFile = alternativeRepresentation as? TelegramMediaFile {
if alternativeFile.mimeType == "application/x-mpegurl" {
return true
}
if alternativeRepresentation.mimeType == "application/x-mpegurl" {
return true
}
}
return false