Closed dmichelutti closed 2 years ago
Hi @dmichelutti,
Sorry for the late response to your question. In a ReplayKit broadcast extension the Twilio Video SDK doesn't have control over an AVAudioSession. If the sample handler is not getting .audioMic
buffers when CallKit is active it is probably intentional on Apple's part.
It might be worthy of a feedback with Apple to clarify the intended behaviour. Also, double check with the latest iOS 15 betas in case this changes the equation when it comes to ReplayKit audio.
Best, Chris
Description
Broadcast Extension activated in application with Callkit framework active is not working. Only video frames are delivered, microphone is not responding.
Steps to Reproduce
Expected Behavior
I will send also audio through broadcast extension.
Reproduces How Often
Disactivating Callkit framework (comment code): 100% works perfectly Activating Callkit framework (comment code): 100% fails
Logs
There are no errors in console, also activating twilio logs (TwilioVideoSDK.setLogLevel(.all)). To test this behaviour I have maked breakpoints on SampleHandler.swift class, in override func processSampleBuffer(_ sampleBuffer: CMSampleBuffer, with sampleBufferType: RPSampleBufferType) method. When Callkit framework is disabled and when screensharing is started, i have logs in all cases (.video, .audioApp, .audioMic). In case of Callkit active, I have logs only in .video and .audioApp, NOT .audioMic.
Versions
XCode 12.4, Swift 5, TwilioVideo 4.3
Video iOS SDK
4.3 via cocoapods
Xcode
XCode 12.4
iOS Version
14.4.2
iOS Device
iPad Pro (10.5-inch)