mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Disable inline HLS autoplay when automatic downloads are disabled
This commit is contained in:
@@ -1024,6 +1024,13 @@ public final class ChatMessageInteractiveMediaNode: ASDisplayNode, GalleryItemTr
|
||||
return (nativeSize, maxWidth, { constrainedSize, automaticPlayback, wideLayout, corners in
|
||||
var resultWidth: CGFloat
|
||||
|
||||
var automaticPlayback = automaticPlayback
|
||||
if let file = media as? TelegramMediaFile, NativeVideoContent.isHLSVideo(file: file) {
|
||||
if automaticDownload != .full {
|
||||
automaticPlayback = false
|
||||
}
|
||||
}
|
||||
|
||||
isInlinePlayableVideo = isInlinePlayableVideo && automaticPlayback
|
||||
|
||||
switch sizeCalculation {
|
||||
|
||||
Reference in New Issue
Block a user