Skip to content

Commit 0073506

Browse files
author
Isaac
committed
Video fixes
1 parent 44f02c2 commit 0073506

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

‎submodules/GalleryUI/Sources/Items/UniversalVideoGalleryItem.swift

+7
Original file line numberDiff line numberDiff line change
@@ -2774,7 +2774,14 @@ final class UniversalVideoGalleryItemNode: ZoomableContentGalleryItemNode {
27742774
if let _ = data["ios_killswitch_disable_swipe_pip"] {
27752775
return false
27762776
}
2777+
var swipeUpToClose = false
27772778
if let value = data["video_swipe_up_to_close"] as? Double, value == 1.0 {
2779+
swipeUpToClose = true
2780+
} else if let value = data["video_swipe_up_to_close"] as? Bool, value {
2781+
swipeUpToClose = true
2782+
}
2783+
2784+
if swipeUpToClose {
27782785
addAppLogEvent(postbox: self.context.account.postbox, type: "swipe_up_close", peerId: self.context.account.peerId)
27792786

27802787
return false

‎submodules/TelegramUniversalVideoContent/Sources/NativeVideoContent.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ public final class NativeVideoContent: UniversalVideoContent {
7070
return true
7171
}
7272

73-
if videoCodec == "av1" {
73+
/*if videoCodec == "av1" {
7474
if isHadrwareAv1Supported {
7575
return true
7676
}
77-
}
77+
}*/
7878

7979
return false
8080
}

0 commit comments

Comments
 (0)