Enabled streaming for GIFs and round videos

Play video in fullscreen on switching to landscape
Use autodownload settings in IV
This commit is contained in:
Ilya Laktyushin
2019-03-01 22:48:45 +04:00
parent df83998c74
commit 8c860dc9aa
38 changed files with 401 additions and 142 deletions

View File

@@ -15,9 +15,6 @@ func isMediaStreamable(message: Message, media: TelegramMediaFile) -> Bool {
if size < 1 * 1024 * 1024 {
return false
}
// if media.isAnimated {
// return false
// }
for attribute in media.attributes {
if case let .Video(video) = attribute {
if video.flags.contains(.supportsStreaming) {
@@ -41,9 +38,6 @@ func isMediaStreamable(media: TelegramMediaFile) -> Bool {
if size < 1 * 1024 * 1024 {
return false
}
// if media.isAnimated {
// return false
// }
for attribute in media.attributes {
if case let .Video(video) = attribute {
if video.flags.contains(.supportsStreaming) {