Skip to content

Commit 7e2b8b3

Browse files
author
Isaac
committed
Alternative fix
1 parent ec24401 commit 7e2b8b3

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

submodules/TelegramUniversalVideoContent/Sources/HLSVideoContent.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public struct HLSCodecConfiguration {
2727

2828
public extension HLSCodecConfiguration {
2929
init(context: AccountContext) {
30-
var isSoftwareAv1Supported = false
30+
/*var isSoftwareAv1Supported = false
3131
var isHardwareAv1Supported = false
3232

3333
var length: Int = 4
@@ -44,7 +44,9 @@ public extension HLSCodecConfiguration {
4444
isSoftwareAv1Supported = value != 0.0
4545
}
4646

47-
self.init(isHardwareAv1Supported: isHardwareAv1Supported, isSoftwareAv1Supported: isSoftwareAv1Supported)
47+
self.init(isHardwareAv1Supported: isHardwareAv1Supported, isSoftwareAv1Supported: isSoftwareAv1Supported)*/
48+
49+
self.init(isHardwareAv1Supported: false, isSoftwareAv1Supported: false)
4850
}
4951
}
5052

submodules/TelegramUniversalVideoContent/Sources/HLSVideoJSNativeContentNode.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,15 +1103,16 @@ final class HLSVideoJSNativeContentNode: ASDisplayNode, UniversalVideoContentNod
11031103
self.contextDisposable = SharedHLSVideoJSContext.shared.register(context: self)
11041104

11051105
self.playerNode.frame = CGRect(origin: CGPoint(), size: self.intrinsicDimensions)
1106-
var didProcessFramesToDisplay = false
1106+
1107+
/*var didProcessFramesToDisplay = false
11071108
self.playerNode.isHidden = true
11081109
self.playerNode.hasSentFramesToDisplay = { [weak self] in
11091110
guard let self, !didProcessFramesToDisplay else {
11101111
return
11111112
}
11121113
didProcessFramesToDisplay = true
11131114
self.playerNode.isHidden = false
1114-
}
1115+
}*/
11151116

11161117
//let thumbnailVideoReference = HLSVideoContent.minimizedHLSQuality(file: fileReference)?.file ?? fileReference
11171118

submodules/TelegramUniversalVideoContent/Sources/NativeVideoContent.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ private final class NativeVideoContentNode: ASDisplayNode, UniversalVideoContent
274274

275275
super.init()
276276

277-
var didProcessFramesToDisplay = false
277+
/*var didProcessFramesToDisplay = false
278278
self.playerNode.isHidden = true
279279
self.playerNode.hasSentFramesToDisplay = { [weak self] in
280280
guard let self, !didProcessFramesToDisplay else {
@@ -283,7 +283,7 @@ private final class NativeVideoContentNode: ASDisplayNode, UniversalVideoContent
283283
didProcessFramesToDisplay = true
284284
self.playerNode.isHidden = false
285285
self.hasSentFramesToDisplay?()
286-
}
286+
}*/
287287

288288
if let dimensions = hintDimensions {
289289
self.dimensions = dimensions

0 commit comments

Comments
 (0)