Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iPad 15.1 Users kicked out of meeting when turning on Camera in meeting #1762

Closed
4 tasks done
BC-Mikey opened this issue Nov 8, 2021 · 23 comments
Closed
4 tasks done
Labels
Needs More Information Waiting for more information from builders

Comments

@BC-Mikey
Copy link

BC-Mikey commented Nov 8, 2021

What happened and what did you expect to happen?

iPad users are able to allow their cameras and see them during the Camera Preview. However, after they enter the meeting they

This was only reproducible on version 15.1. Versions 15.0 and lower worked fine.

Have you reviewed our existing documentation?

Reproduction steps

  1. Log into a meeting on an iPad v15.1
  2. You can have other users join the meeting & share their cameras, but this shouldn't be necessary. The issue was reproduced in a meeting alone.
  3. Attempt to turn on your camera from your iPad
  4. Instead of sharing your camera, you will be kicked out of the meeting.

Amazon Chime SDK for JavaScript version

2.21.0

What browsers are you seeing the problem on?

Safari iOS

Browser version

15.0

Meeting and Attendee ID Information.

Meeting ID: bc-chime-test2

Browser console logs

ipad-kick-out-bug-log.txt

@ltrung
Copy link
Contributor

ltrung commented Nov 8, 2021

This is a duplicate of #1710 and is currently tracked in the known browser bug issue in #1059. Can you try to pull this branch to see if it works for you https://github.com/aws/amazon-chime-sdk-js/tree/ios-15.1-fix ?

@ltrung ltrung closed this as completed Nov 8, 2021
@BC-Mikey
Copy link
Author

BC-Mikey commented Nov 10, 2021

@ltrung We tested the ios-15.1-fix branch and were still able to reproduce the issue. I'm attaching our logs.

iPad15_1-log.txt

@ltrung ltrung reopened this Nov 10, 2021
@ltrung
Copy link
Contributor

ltrung commented Nov 10, 2021

Did the user turn on content share or video?
In the log I saw this error message from content share which likely the cause of the crash. Content Share does not work in iOS since they do not support the webRTC screen capture API getDisplayMedia

[Error] 2021-11-10T17:34:16.920Z [ERROR] SDK - Could not start content share: TypeError: navigator.mediaDevices.getDisplayMedia is not a function. (In 'navigator.mediaDevices.getDisplayMedia(e)', 'navigator.mediaDevices.getDisplayMedia' is undefined)
	log (04f0-149-20-194-53.ngrok.io:2:176799)
	error (04f0-149-20-194-53.ngrok.io:2:176418)
	error (04f0-149-20-194-53.ngrok.io:2:180446)
	(anonymous function) (04f0-149-20-194-53.ngrok.io:2:1006152)
	generatorResume
	a (04f0-149-20-194-53.ngrok.io:2:942299)
	promiseReactionJob

@BC-Mikey
Copy link
Author

I confirmed that they are turning on the camera. We just tried another test in the browser demo application, making sure that he clicked the Camera icon
iPad15_1_logs_2.txt

@BC-Mikey
Copy link
Author

As far as our application goes, we detect mobile devices and disable the Screen Share button.

@rachinkapoor
Copy link

We are also testing the fix. Seems to be working for us if and only if Request Desktop Website option is disabled.
By default all iPads have this option turned on.

@ltrung
Copy link
Contributor

ltrung commented Nov 10, 2021

@rachinkapoor Thanks. So this is indeed the same issue as #1710 as I mentioned above. We disabled H.264 for now for iOS 15.1 device based on user agent but i guess when iPad has Request Desktop Website on, the user agent will be Mac Safari and not iOS thus, we did not do the workaround.

@ltrung
Copy link
Contributor

ltrung commented Nov 11, 2021

@ltrung
Copy link
Contributor

ltrung commented Nov 12, 2021

Updated the code in the branch https://github.com/aws/amazon-chime-sdk-js/tree/ios-15.1-fix to include Safari and iPad 15.1.
Can you give it a try?

@dchen-aws
Copy link

See response here also #1710 (comment)

@karthi-manoharan
Copy link

Hi Team,

We are waiting for the issue to be fixed. It's creating problems with the iPad and now iPad users cant able to use the application for the past 9 days. We are expecting a quick fix asap.

@ghost
Copy link

ghost commented Nov 17, 2021

Still have not understood if this issue was fixed or not.

@dchen-aws
Copy link

dchen-aws commented Nov 17, 2021

@karthi-manoharan @BissacM this branch contains a fix for Chrome and Safari on iPadOS 15.1. The fix is not pushed to NPM yet.

@pgutierrez-bcov
Copy link

pgutierrez-bcov commented Nov 19, 2021

Tested the latest from master as it seems that the fix has been merged and we were still able to reproduce this on iPadOS15.1. Works fine on iOS15.1

@ltrung
Copy link
Contributor

ltrung commented Nov 19, 2021

It worked fine for me on iPad iOS 15.1.0. Could you attach a console log?

@dchen-aws
Copy link

Tested the latest from master as it seems that the fix has been merged and we were still able to reproduce this on iPadOS15.1. Works fine on iOS15.1

and which browser are you using?

@ezramorse
Copy link

ezramorse commented Nov 20, 2021

Please bump npm to 2.22.0 Thanks

@karthi-manoharan
Copy link

karthi-manoharan commented Nov 24, 2021

Hi @ltrung

Chime SDK Version: 2.23.0
Brand: Ipad Mini 5th Gen
OS Version: IPad 15.1
Browser: Brave 1.32.1(21.10.28.15)

issue still exists. Can you please try this browser and test it.

@ltrung
Copy link
Contributor

ltrung commented Nov 24, 2021

Double check and verified that I could turn it on in my iPad Pro.
@karthi-manoharan Notice that you use Brave browser which is not currently supported. The core issue is that iOS 15.1 has a bug with H264 video encoding so we need to disable it for certain browsers based on user agent and since we do not support Brave, we did not include it. To support this for Brave, you would need to modify this function to add Brave.

@karthi-manoharan
Copy link

@ltrung
As per iPad, I can able to debug only the Safari browser. I cant able to debug and get the console log for the brave browser. Can you please help me to find out

@ltrung
Copy link
Contributor

ltrung commented Nov 24, 2021

@karthi-manoharan Please refer to my previous post but we do not currently support Brave information.

@karthi-manoharan
Copy link

Thanks @ltrung

@ltrung
Copy link
Contributor

ltrung commented Dec 11, 2021

The workaround fix for iOS 15.1 has been released in the latest NPM version so closing this issue.

@ltrung ltrung closed this as completed Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs More Information Waiting for more information from builders
Projects
Development

No branches or pull requests

8 participants