amazon-chime-sdk-ios icon indicating copy to clipboard operation
amazon-chime-sdk-ios copied to clipboard

Enable VF/startRemoteVideo() will fail intermittently if calling on audioSessionDidStart(reconnecting: Bool)

Open georgezy-amzn opened this issue 2 years ago • 1 comments

Describe the bug Voice focus: When calling audioVideo.realtimeSetVoiceFocusEnabled(enabled: true) in audioSessionDidStart(reconnecting: Bool), the operation will fail, no error log found. It will work if delay the operation ~1 second.

startRemoteVideo: Same as voice focus, except the log says VideoClient is not initialized so returning without doing anything. It will work if invoking in videoSessionDidStartWithStatus(sessionStatus: AmazonChimeSDK.MeetingSessionStatus) instead.

For both, they fail intermittently, and work fine on Android in audioSessionDidStart(reconnecting: Bool).

To Reproduce Steps to reproduce the behavior:

  1. Invoke audioVideo.realtimeSetVoiceFocusEnabled(enabled: true) or invoke startRemoteVideo in audioSessionDidStart(reconnecting: Bool)
  2. See log

Expected behavior It should work same as Android

Logs If applicable, add logs from console to help explain your problem.

Screenshots If applicable, add screenshots to help explain your problem.

Test environment Info (please complete the following information):

  • Device: iPhoneX
  • OS: iOS16
  • Version AmazonChimeSDK: 0.22.4
  • Version AmazonChimeSDKMedia: 0.17.8
  • Can you reproduce this in the demo app? will try If you are reporting a crash:
  • Are you using bitcode supported binaries?
  • Please provide full crash logs in the form of a ".crash" or ".ips" file with a binary images section.

Additional context

georgezy-amzn avatar Nov 09 '22 01:11 georgezy-amzn

Could you please provide logs for the issue?

dingyishen-amazon avatar Jan 17 '23 05:01 dingyishen-amazon