-
Notifications
You must be signed in to change notification settings - Fork 986
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
refactor: deprecate mediaPlaybackAllowsAirPlay #785
refactor: deprecate mediaPlaybackAllowsAirPlay #785
Conversation
e26f876
to
e7b39f3
Compare
e7b39f3
to
1ec9232
Compare
Codecov Report
@@ Coverage Diff @@
## master #785 +/- ##
=======================================
Coverage 74.36% 74.36%
=======================================
Files 13 13
Lines 1845 1845
=======================================
Hits 1372 1372
Misses 473 473
Continue to review full report at Codecov.
|
If both the old and the new preference are present the old one takes precedence , is that desired? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good!
1ec9232
to
03123e2
Compare
Apple has deprecated "mediaPlaybackAllowsAirPlay" in iOS 8.0-9.0. This flag should be replaced with "allowsAirPlayForMediaPlayback". Preference name has also been changed to "AllowsAirPlayForMediaPlayback"
03123e2
to
60795b6
Compare
@jcesarmobile When you have a chance, can you take a look at this PR again please. I flipped the order of priority. Now, the old preference value should be set first, or defaults to "YES" when missing, but if the new preference name exists, it will take higest priority and overwrite whatever was set from the old preference name. |
CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m
Outdated
Show resolved
Hide resolved
Co-Authored-By: jcesarmobile <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Motivation and Context
Apple has deprecated the
mediaPlaybackAllowsAirPlay
property in iOS iOS 8.0-9.0.This property should be replaced with
allowsAirPlayForMediaPlayback
.https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1614726-mediaplaybackallowsairplay
Description
This PR:
AllowsAirPlayForMediaPlayback
) fromconfig.xml
Testing
npm t
cordova platform add
cordova build ios
Checklist