Azure / Communication

Azure Communication Services - SDKs and Release Notes
MIT License
320 stars 99 forks source link

[iOS AzureCommunicationCalling 1.0.1]deviceManager could have empty camera list #375

Closed AmyL219 closed 3 years ago

AmyL219 commented 3 years ago

Describe the bug When we try to reach the device manager's camera list after we create the callClient and device manager but before create callAgent, the camera list could be empty randomly

To Reproduce Steps to reproduce the behaviour:

  1. create callClient and device manager
  2. get the camera list by deviceManager.cameras
  3. the list could be empty randomly

Expected behaviour The camera list should return empty list of available camera

Screenshots

Screen Shot 2021-09-14 at 1 50 06 PM

Logs cameraListEmpty.zip

AmyL219 commented 3 years ago

https://skype.visualstudio.com/SPOOL/_sprints/taskboard/ACS%20Mobile%20UI/SPOOL/CY2021-Q3/Sprint%2045%20(Ends%20September%2019)?workitem=2582396

jsaurezlee-msft commented 3 years ago

AB#2582396

mariusu-msft commented 3 years ago

At this time we recommend using a coding pattern like such:

instance = CallClient()
deviceManager = callClient.getDeviceManager()
deviceManager.addOnCamerasUpdatedListener(<devicesUpdatedListener>)
cameras = deviceManager.getCameras()
// may return 0 cameras. If 0 cameras then the camerasUpdated will be called.

We are looking into options for improving developer experience here. Closing this ticket as by-design.