mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
macos related changes
This commit is contained in:
parent
288f7820df
commit
3095400114
@ -5,7 +5,7 @@ import FFMpegBinding
|
|||||||
import VideoToolbox
|
import VideoToolbox
|
||||||
|
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
private let isHardwareAv1Supported: Bool = {
|
private let internal_isHardwareAv1Supported: Bool = {
|
||||||
let value = VTIsHardwareDecodeSupported(kCMVideoCodecType_AV1)
|
let value = VTIsHardwareDecodeSupported(kCMVideoCodecType_AV1)
|
||||||
return value
|
return value
|
||||||
}()
|
}()
|
||||||
|
@ -3,6 +3,18 @@ import SwiftSignalKit
|
|||||||
import TgVoipWebrtc
|
import TgVoipWebrtc
|
||||||
import TelegramCore
|
import TelegramCore
|
||||||
|
|
||||||
|
#if os(macOS)
|
||||||
|
public class OngoingCallContext {
|
||||||
|
public class AudioDevice {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public func callLogsPath(account: Account) -> String {
|
||||||
|
return account.basePath + "/calls"
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
final class ContextQueueImpl: NSObject, OngoingCallThreadLocalContextQueueWebrtc {
|
final class ContextQueueImpl: NSObject, OngoingCallThreadLocalContextQueueWebrtc {
|
||||||
private let queue: Queue
|
private let queue: Queue
|
||||||
|
|
||||||
@ -718,6 +730,7 @@ public final class OngoingGroupCallContext {
|
|||||||
preferX264: preferX264,
|
preferX264: preferX264,
|
||||||
logPath: logPath,
|
logPath: logPath,
|
||||||
statsLogPath: tempStatsLogPath,
|
statsLogPath: tempStatsLogPath,
|
||||||
|
audioDevice: nil,
|
||||||
encryptionKey: encryptionKey,
|
encryptionKey: encryptionKey,
|
||||||
isConference: isConference
|
isConference: isConference
|
||||||
)
|
)
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
import UIKit
|
|
||||||
import SwiftSignalKit
|
import SwiftSignalKit
|
||||||
import TelegramCore
|
import TelegramCore
|
||||||
import TelegramUIPreferences
|
|
||||||
import Network
|
import Network
|
||||||
|
|
||||||
import TgVoip
|
import TgVoip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user