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

Add support background filter for ios 16+ #2484

Merged
merged 2 commits into from
Nov 2, 2022

Conversation

ltrung
Copy link
Contributor

@ltrung ltrung commented Nov 2, 2022

Issue #1059:

Description of changes:
Add support background filter for ios 16+ in Safari, Chrome, and Firefox. The only exception is Firefox in iPad as we cannot detect os version from the user agent.

Testing:
Can these tested using a demo application? Please provide reproducible step-by-step instructions.
Yes, open serverless demo using Safari, Chrome, and Firefox (only on phone) in iPad and iPhone OS >= 16 and verify that you can see video filter drop down in the preview menu as well as during meeting.

Checklist:

  1. Have you successfully run npm run build:release locally? Yes

  2. Do you add, modify, or delete public API definitions? If yes, has that been reviewed and approved? No

  3. Do you change the wire protocol, e.g. the request method? If yes, has that been reviewed and approved? No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ltrung ltrung requested a review from a team as a code owner November 2, 2022 06:11
@ltrung ltrung force-pushed the background-filter-ios branch 2 times, most recently from 7f69440 to 4590a6e Compare November 2, 2022 07:54
CHANGELOG.md Outdated
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Add the audio output gain and frequency to the meeting readiness checker's configuration. The readiness checker uses this value to set the "Play Tone" gain and frequency.
- Add support for background filter starting from iOS 16.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Can update later but would be good to update the support documentation as well as include it as part of the CHANGELOG on which browsers we are adding support for.

@@ -17,9 +17,10 @@ Background replacement is available as part of the Amazon Chime SDK for JavaScri

### Browser compatibility

A background filter in the Amazon Chime SDK for JavaScript works in Firefox, Chrome, and Chromium-based browsers (including Electron) on desktop, Android, and Safari 14.1 and later on macOS.
A background filter in the Amazon Chime SDK for JavaScript works in Firefox, Chrome, and Chromium-based browsers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we call out the iPad firefox limitation here?

src/browserbehavior/DefaultBrowserBehavior.ts Outdated Show resolved Hide resolved
@@ -66,6 +67,7 @@ describe('CleanStoppedSessionTask', () => {

beforeEach(async () => {
domMockBuilder = new DOMMockBuilder(behavior);
browserBehavior = new DefaultBrowserBehavior();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a afterEach to set the browserBehavior to undefined. Not sure if this will keep stale objects when running unit tests.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for other tests included in this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think so as we initialize them every time to a new object. The old one should be garbage collected.

@devalevenkatesh devalevenkatesh merged commit 3ee0fe0 into main Nov 2, 2022
@devalevenkatesh devalevenkatesh deleted the background-filter-ios branch November 2, 2022 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants