mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Fixes #3041 - Video not rendering after starting or joinng a call
- not completely sure why this happens but `reportOutgoingCall` interferes with how the WebView gets access to video streams - the call itself isn't really necessary so removing it is the simplest way forward
This commit is contained in:
parent
d295a1e4c2
commit
2cce310540
@ -87,6 +87,9 @@ private struct WebView: UIViewRepresentable {
|
||||
webView.uiDelegate = self
|
||||
webView.navigationDelegate = self
|
||||
|
||||
// https://stackoverflow.com/a/77963877/730924
|
||||
webView.allowsLinkPreview = true
|
||||
|
||||
// Try matching Element Call colors
|
||||
webView.isOpaque = false
|
||||
webView.backgroundColor = .compound.bgCanvasDefault
|
||||
|
@ -152,16 +152,6 @@ class ElementCallService: NSObject, ElementCallServiceProtocol, PKPushRegistryDe
|
||||
MXLog.info("Call provider did reset: \(provider)")
|
||||
}
|
||||
|
||||
func provider(_ provider: CXProvider, perform action: CXStartCallAction) {
|
||||
if let ongoingCallID {
|
||||
provider.reportOutgoingCall(with: ongoingCallID.callKitID, connectedAt: nil)
|
||||
} else {
|
||||
MXLog.error("Failed starting call, missing ongoingCallID")
|
||||
}
|
||||
|
||||
action.fulfill()
|
||||
}
|
||||
|
||||
func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) {
|
||||
if let incomingCallID {
|
||||
actionsSubject.send(.startCall(roomID: incomingCallID.roomID))
|
||||
|
Loading…
x
Reference in New Issue
Block a user