mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix video message audio
This commit is contained in:
parent
e90b96676e
commit
c0f9eb63f4
@ -817,12 +817,8 @@ public final class ManagedAudioSession: NSObject {
|
||||
mode = .voiceChat
|
||||
case .videoCall:
|
||||
mode = .videoChat
|
||||
case let .record(_, video, withOthers):
|
||||
if video && !withOthers {
|
||||
mode = .videoRecording
|
||||
} else {
|
||||
mode = .default
|
||||
}
|
||||
case .record(_, true, _):
|
||||
mode = .videoRecording
|
||||
default:
|
||||
mode = .default
|
||||
}
|
||||
|
@ -1683,9 +1683,9 @@ public class VideoMessageCameraScreen: ViewController {
|
||||
private func requestAudioSession() {
|
||||
let audioSessionType: ManagedAudioSessionType
|
||||
if self.context.sharedContext.currentMediaInputSettings.with({ $0 }).pauseMusicOnRecording {
|
||||
audioSessionType = .record(speaker: false, video: true, withOthers: false)
|
||||
audioSessionType = .record(speaker: false, video: false, withOthers: false)
|
||||
} else {
|
||||
audioSessionType = .record(speaker: false, video: true, withOthers: true)
|
||||
audioSessionType = .record(speaker: false, video: false, withOthers: true)
|
||||
}
|
||||
|
||||
self.audioSessionDisposable = self.context.sharedContext.mediaManager.audioSession.push(audioSessionType: audioSessionType, activate: { [weak self] _ in
|
||||
|
Loading…
x
Reference in New Issue
Block a user