Cannot make a Rainbow video call from iOS app
-
Hello Olivier, thank you for your support.
Here is a code that originating the video call,
mCurrentCall = mServicesManager.rtcService.beginNewOutgoingCall(with: contact, withFeatures: features) as RTCCall?
features is set as
RTCCallFeatureFlags.init(rawValue: RTCCallFeatureFlags.audio.rawValue | RTCCallFeatureFlags.localVideo.rawValue)!
It actually makes a call and the other party, Windows Rainbow client rings and shows options for Voice and Video conversation.
When I click the video icon on the Windows Rainbow client then it makes a 2-way audio conversation but no video stream is sent from the iPhone.
The app receives NSNotification.Name.telephonyServiceDidUpdateCall with CallStatus.connecting and then CallStatus.established once the other party clicks the video icon.
Thanks,
Hiroki
-
Hello Olivier,
I added the following line to confirm if the camera usage is granted before placing a video call.
AVCaptureDevice.authorizationStatus(for: AVMediaType.video)
I confirmed that the status was .authorized when I placed a video call but the call still did not send video stream.
Just in case I tried a Facetime video call to verify the issue is not on my iPhone (iphone6) hardware and the Facetime video call worked as expected. So I do not think this is not a hardware related problem.
Thanks,
Hiro
-
Hi Olivier,
In the log file I found rtcServiceDidAddCapturesSession event that will be fired when the video capture can be started.
Also I see the following logs that indicate that a video and audio track were created.
2019-11-04 13:19:02.276041-0600 RainbowKiosk[7088:984934] [RTCService:2629] Video track created
2019-11-04 13:19:02.276155-0600 RainbowKiosk[7088:984934] [RTCService:2635] Create audio track
2019-11-04 13:19:02.277193-0600 RainbowKiosk[7088:984934] [RTCService:2640] Audio track created
2019-11-04 13:19:02.277931-0600 RainbowKiosk[7088:984630] [RTCService:2898] Renegotiation needed
2019-11-04 13:19:02.278883-0600 RainbowKiosk[7088:984934] [RTCService:2609] PeerConnection : RTCPeerConnection <0x283488340 configuration RTCConfiguration: {
(
"RTCIceServer 0x2834b5b00 <urls (\n \"turns:turn-wdc1.openrainbow.com:443?transport=tcp\"\n), tlsCertPolicy 0, hostName ",
"RTCIceServer 0x2834b7f40 <urls (\n \"turn:turn-wdc1.openrainbow.com:80?transport=tcp\"\n), tlsCertPolicy 0, hostName ",
"RTCIceServer 0x2834b4a80 <urls (\n \"turn:turn-dal1.openrainbow.com:80?transport=tcp\"\n), tlsCertPolicy 0, hostName ",
"RTCIceServer 0x2834b4f00 <urls (\n \"turns:turn-dal1.openrainbow.com:443?transport=tcp\"\n), tlsCertPolicy 0, hostName "
)Just in case I downloaded the rainbow app on my iphone an made video calls that successfully completed.
Hiro
Por favor, entrar para comentar.
Comentários
9 comentários