aws / aws/amazon-chime-sdk-ios

AmazonChimeSdk "VideoClient is not initialized so returning without doing anything" when starting remote or local video

Open
#653 1 comment 1 reaction 0 assignees View on GitHub
bug Needs More Information Triaged
Dominant language
Swift
Stars
153
Forks
68
Avg merge
14h 20m
Merged PRs (30d)
3

Description

**Describe the bug**
We recently started to get an error "VideoClient is not initialized so returning without doing anything" when starting remote or local video in a meeting.

This was reported from Production and we were able to reproduce (not consistently) in QA environment.

When the bug happens the audio connection is working, both parties are able to hear each other but the video is not working.

We are using Chime SDK version:
- AmazonChimeSDK-No-Bitcode (0.24.0):
- AmazonChimeSDKMedia-No-Bitcode (= 0.19.0)
- AmazonChimeSDKMedia-No-Bitcode (0.19.0)

The bug also reproduces on version:
- AmazonChimeSDK-No-Bitcode (0.22.7):
- AmazonChimeSDKMedia-No-Bitcode (= 0.17.11)
- AmazonChimeSDKMedia-No-Bitcode (0.17.11)

We tried to upgrade the SDK but this did fix the problem.

**Logs**
Code and log flow we see:
1) audioVideo.start(callKitEnabled: false)
Logs:
"Initializing VideoClient"
"Starting VideoClient"
2) audioVideo.startRemoteVideo()
Logs:
"VideoClient is not initialized so returning without doing anything"
3) audioVideo.startLocalVideo()
Logs:
VideoClient is not initialized so returning without doing anything

**Test environment Info (please complete the following information):**
- OS: IOS 17.3.1

**Additional context**
In our IOS app we are using WebRtc connection implemented by ourselves using WebRtc version M107.
We have multiple WebRtc frameworks compiled into our IOS application due to product specific requirements.
The additional WebRtc library usage is not related to Chime, we use it to connect data and video channels between 2 parties, IOS application and proprietary device.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the reported call flow through audioVideo.start(callKitEnabled: false), audioVideo.startRemoteVideo(), and audioVideo.startLocalVideo() on iOS 17.3.1 with the listed Amazon Chime SDK versions. Investigate why VideoClient can remain uninitialized after start, including the app's multiple WebRTC frameworks. Done means reproducing the intermittent failure and restoring remote and local video while audio continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
audio-video-rtc, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.