ios: integrating webrtc calls with callkit (#686)

* ios: integrating webrtc calls with callkit

* accept call via chat item (e.g. when DND is on, and callkit blocks the call); refactor

* fix remote video, support logging from ios

* use callkit depending on CallController setting

* call sound

* update incoming call view

* fixing audio encryption

* refactor encryption webrtc fix

* log ontrack success/error

* accept / ignore call via notification

* remove unused imports

* remove unused file

* remove comments
This commit is contained in:
Evgeny Poberezkin
2022-05-24 19:34:27 +01:00
committed by GitHub
parent 0290a687af
commit 546ad01fcb
33 changed files with 1089 additions and 504 deletions
+2 -1
View File
@@ -9,6 +9,7 @@
import Foundation
import Combine
import SwiftUI
import WebKit
final class ChatModel: ObservableObject {
@Published var onboardingStage: OnboardingStage?
@@ -28,10 +29,10 @@ final class ChatModel: ObservableObject {
@Published var tokenStatus = NtfTknStatus.new
// current WebRTC call
@Published var callInvitations: Dictionary<ChatId, CallInvitation> = [:]
@Published var activeCallInvitation: ContactRef?
@Published var activeCall: Call?
@Published var callCommand: WCallCommand?
@Published var showCallView = false
var callWebView: WKWebView?
var messageDelivery: Dictionary<Int64, () -> Void> = [:]