mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Disable inline HLS autoplay when automatic downloads are disabled
This commit is contained in:
parent
2ab56e6ce8
commit
8a73a4b4cd
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user