reversed reversed attempting to fix downloading media. probably it works.

This commit is contained in:
Mikhail Filimonov 2024-07-12 09:35:04 -03:00
parent a045bcccba
commit bf90e5c5f1
3 changed files with 8 additions and 4 deletions

View File

@ -250,7 +250,7 @@ static int32_t fixedTimeDifferenceValue = 0;
_tempKeyExpiration = 24 * 60 * 60; _tempKeyExpiration = 24 * 60 * 60;
#if DEBUG #if DEBUG
_tempKeyExpiration = 30; //_tempKeyExpiration = 30;
#endif #endif
_datacenterSeedAddressSetById = [[NSMutableDictionary alloc] init]; _datacenterSeedAddressSetById = [[NSMutableDictionary alloc] init];

View File

@ -17,6 +17,7 @@ let package = Package(
// .package(url: /* package url */, from: "1.0.0"), // .package(url: /* package url */, from: "1.0.0"),
.package(name: "TgVoipWebrtc", path: "../../../tgcalls"), .package(name: "TgVoipWebrtc", path: "../../../tgcalls"),
.package(name: "SSignalKit", path: "../SSignalKit"), .package(name: "SSignalKit", path: "../SSignalKit"),
.package(name: "FFMpegBinding", path: "../FFMpegBinding"),
.package(name: "TelegramCore", path: "../TelegramCore") .package(name: "TelegramCore", path: "../TelegramCore")
], ],
@ -28,6 +29,7 @@ let package = Package(
dependencies: [ dependencies: [
.product(name: "TgVoipWebrtc", package: "TgVoipWebrtc", condition: nil), .product(name: "TgVoipWebrtc", package: "TgVoipWebrtc", condition: nil),
.product(name: "SwiftSignalKit", package: "SSignalKit", condition: nil), .product(name: "SwiftSignalKit", package: "SSignalKit", condition: nil),
.product(name: "FFMpegBinding", package: "FFMpegBinding", condition: nil),
.product(name: "TelegramCore", package: "TelegramCore", condition: nil), .product(name: "TelegramCore", package: "TelegramCore", condition: nil),
], ],
path: "Sources", path: "Sources",

View File

@ -6,6 +6,8 @@ import Network
import Postbox import Postbox
import FFMpegBinding import FFMpegBinding
@available(iOS 12.0, macOS 14.0, *)
public final class WrappedMediaStreamingContext { public final class WrappedMediaStreamingContext {
private final class Impl { private final class Impl {
let queue: Queue let queue: Queue
@ -135,7 +137,7 @@ public final class WrappedMediaStreamingContext {
} }
} }
} }
@available(iOS 12.0, macOS 14.0, *)
public final class ExternalMediaStreamingContext { public final class ExternalMediaStreamingContext {
private final class Impl { private final class Impl {
let queue: Queue let queue: Queue
@ -321,7 +323,7 @@ public final class ExternalMediaStreamingContext {
} }
} }
} }
@available(iOS 12.0, macOS 14.0, *)
public final class SharedHLSServer { public final class SharedHLSServer {
public static let shared: SharedHLSServer = { public static let shared: SharedHLSServer = {
return SharedHLSServer() return SharedHLSServer()
@ -351,7 +353,7 @@ public final class SharedHLSServer {
self.streamingContext = streamingContext self.streamingContext = streamingContext
} }
} }
@available(iOS 12.0, macOS 14.0, *)
private final class Impl { private final class Impl {
private let queue: Queue private let queue: Queue