mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
[WIP] Serialization
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user