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

Disable H264 send for iOS 15.1 #1801

Merged
merged 1 commit into from
Nov 17, 2021
Merged

Disable H264 send for iOS 15.1 #1801

merged 1 commit into from
Nov 17, 2021

Conversation

ltrung
Copy link
Contributor

@ltrung ltrung commented Nov 17, 2021

Issue #1762:
iOS 15.1 devices could not enable video due to a Safari bug causes H.264 encoding to crash.

Description of changes:
Add a workaround to switch to VP8 for iOS 15.1 devices including iOS Safari (iPhone and iPad), iOS Chrome (iPhone and iPad), and iOS Firefox (iPhone).

Testing:

Can these tested using a demo application? Please provide reproducible step-by-step instructions.

  • Join a meeting in iOS Safari (iPhone and iPad), iOS Chrome (iPhone and iPad), or iOS Firefox (iPhone).
  • Turn on the video in meeting
  • Verify that the video is on and the browser does not crash.

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? Yes

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

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

@simmkyu
Copy link
Contributor

simmkyu commented Nov 17, 2021

Change the title and commit from iOS 1.15.1 to iOS 15.1

@ltrung ltrung changed the title Disable H264 send for iOS 1.15.1 Disable H264 send for iOS 15.1 Nov 17, 2021
@ltrung
Copy link
Contributor Author

ltrung commented Nov 17, 2021

Change the title and commit from iOS 1.15.1 to iOS 15.1

Updated.

CHANGELOG.md Outdated
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Fix priority downlink policy bandwidth estimation metrics to work with Safari.
- Add a workaround to switch to VP8 for iOS 15.1 due to Safari bug that causes crash with H.264 encoding.
Copy link
Contributor

Choose a reason for hiding this comment

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

Recommend adding a link to the WebKit ticket

this.browser.name === 'ios-webview' ||
(this.browser.name === 'safari' &&
/( Mac )/i.test(navigator.userAgent) &&
!!navigator.maxTouchPoints &&
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: This check is not needed as 0 > 1 or undefined > 1 will be false anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops :D

@@ -1,6 +1,7 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import { DefaultBrowserBehavior } from '..';
Copy link
Contributor

Choose a reason for hiding this comment

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

Specify the path ../browserbehavior/DefaultBrowserBehavior in case we change how to export these files in index.ts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

hensmi-amazon
hensmi-amazon previously approved these changes Nov 17, 2021
@@ -480,4 +480,76 @@ export default class DefaultSDP implements SDP {
}
return true;
}

removeH264SupportFromSendSection(): DefaultSDP {
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel guilty to ask this on whats mostly code i wrote :P, but can we sprinkle some high level comments in here. Its kinda a big blob of regex and string manipulation, which usually can be pretty fragile.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think more example SDP lines would be nice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add comments :D

Copy link
Contributor

@hensmi-amazon hensmi-amazon left a comment

Choose a reason for hiding this comment

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

lgtm!

@ltrung ltrung merged commit 390d64b into master Nov 17, 2021
@ltrung ltrung deleted the ios-15.1-fix branch November 17, 2021 23:53
dimitarz pushed a commit to dimitarz/amazon-chime-sdk-js that referenced this pull request Nov 20, 2021
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