Laerdal / Xamarin.AzureCommunicationCalling

Xamarin iOS and Android binding libraries for Microsofts Azure Communication Services
MIT License
36 stars 11 forks source link

Android and iOS video issues #37

Open mcblacksea opened 2 years ago

mcblacksea commented 2 years ago

Issue prerequisites


Used TestSample project

All functionality in the TestSample according to latest PR #36, for this time (26th of August 2022)

Tested on real device:
Android: Huawei P20 pro iOS: iPhone 12 Pro And web browser app: .Net Core + React edition: communication-services-web-calling-hero

Call mode (or TypeCall): Group call

Issues description


  1. On iOS: when user is pressing the 'Turn On / Off' Video button several times (2-3 in my case) along the call, then app crashes, without any exception handling or some pop up notification for the user.

  2. On iOS and Android: The Camera switching (Back / Front camera) button is not working along the Video call

  3. On Android: when user is pressing the 'Turn On / Off' Video button several times, the video on the frame with current (Android) caller is disappearing, and current user (or Android caller) instead of himself (or his current video within the current user's frame) just seeing the blank frame.

  4. On Android: when user is joining to the Group call and turning ON the video, in order to check if everything is alright before the call, on the Setup page, then when he entered into the Call Page, he won't see the frame with himself (or with Android caller). The frame with Android user caller appears on his phone only when he pushes back and forth 'Turn On / Off' Video button, but not at the beginning of the call as expected.

andersonvieiragomeslopes commented 2 years ago

Issue prerequisites

Used TestSample project

All functionality in the TestSample according to latest PR #36, for this time (26th of August 2022)

Tested on real device: Android: Huawei P20 pro iOS: iPhone 12 Pro And web browser app: .Net Core + React edition: communication-services-web-calling-hero

Call mode (or TypeCall): Group call

Issues description

  1. On iOS: when user is pressing the 'Turn On / Off' Video button several times (2-3 in my case) along the call, then app crashes, without any exception handling or some pop up notification for the user.

Maybe this problem has something to do with this one #31 what do you think? I need to investigate, I have not received reports of this issue with video on iOS.

  1. On iOS and Android: The Camera switching (Back / Front camera) button is not working along the Video call

After I did the implementation I found that this wouldn't work for call in progress, I'll upload the fix for this issue.

  1. On Android: when user is pressing the 'Turn On / Off' Video button several times, the video on the frame with current (Android) caller is disappearing, and current user (or Android caller) instead of himself (or his current video within the current user's frame) just seeing the blank frame.

This problem is the same as reported here: #30 and I also need some help to solve this, @tompi do you have any ideas? I didn't get a response with the possible solution that @PeterHeasler applied to solve this.

  1. On Android: when user is joining to the Group call and turning ON the video, in order to check if everything is alright before the call, on the Setup page, then when he entered into the Call Page, he won't see the frame with himself (or with Android caller). The frame with Android user caller appears on his phone only when he pushes back and forth 'Turn On / Off' Video button, but not at the beginning of the call as expected.

It is because the event is not firing after the call is completed, I intend to adjust in the sequence.

andersonvieiragomeslopes commented 2 years ago

There are several problems with the video, this one in problem #30 seems to me the worst, because the camera no longer works on the second call or if it is deactivated during the call, curiously, it seems like a local problem only, because the other side remains working well, which makes the problem less serious, although serious :/

andersonvieiragomeslopes commented 2 years ago

Hello @aodegov .

I noticed that problem #30 also occurs if the user changes the camera (front/back) a few times, were you able to find a solution to this problem there?

***The item correction is small, it can capture in the PR that is open while it is pending.

mcblacksea commented 2 years ago

Hi @andersonvieiragomeslopes. All current issues related to my experience with TestApp are here. Also I'm not sure about #30 point. How this can help to fix issues, that described here?

andersonvieiragomeslopes commented 2 years ago

Hi @aodegov.

is that this problem #30 occurs when the user turns the video on and off and tries to turn it on again and then it freezes on a white page, the problem you mentioned is the same.

On Android: when user is pressing the 'Turn On / Off' Video button several times, the video on the frame with current (Android) caller is disappearing, and current user (or Android caller) instead of himself (or his current video within the current user's frame) just seeing the blank frame.

If we can find a solution to this blank frame, we solve the main problem that we have here and that is the same as in #30

andersonvieiragomeslopes commented 2 years ago

Hi @aodegov @tompi

I discovered the problem with the video when turning the camera off and on again, it has to do with the discarding of the elements, I will upload a fix that will solve this and other problems with the video.

This solves the problem #30 and #37

mcblacksea commented 2 years ago

Hi @andersonvieiragomeslopes, I've checked your latest PR #39. Thanks for doing this! You managed to improve the Test app. After my test on Android, I can confirm, that issue №3 from my list is fixed. Issues 2 and 4 are still existing.
Still can't switch the back and front cameras on my Android during the call.
And also, I have unexpected behavior as I posted in 4th point, once camera turned on before the call. (not a big deal, but anyway) About point 1 from my list, - I haven't checked, yet, just experiencing issues related to latest iOS/ xCode updates (https://github.com/xamarin/xamarin-macios/issues/15954).
So I can't check the 1st point yet because of these problems, but I will eventually. Thanks!

andersonvieiragomeslopes commented 1 year ago

Hello, @mcblacksea .

Problem 4 remains in the latest version, I'm still thinking how to solve it without generating processing load on screen loading :( I added a path that can help you, just need to uncomment the lines and test to validate, but still not this as the ideal/definitive solution.

shahrukh339 commented 6 months ago

1) Video is not work properly in Foreground, background and Kill mode, 2)Call is not connected in when app is kill state

*problem face in iOS

1) Not able to see video in foreground ,background and kill mode

2) not able to connect call in background and when app in kill state

3) and after 2 to 3 sec call automatically disconnected

Azure calling connect in all state like foreground background and kill mode in both android and iOS

audio and video work properly in all state foreground background and kill mode in both android and iOS

video call same looking like watsapp call Skype call