18 ms·
>... "alleged" ... "terrifying" ... "unnerving" ... "supposed" ... "should" ... "unable to reproduce" ... "maybe" ... "unsettled" ... Some people are saying: h
by DonHopkins 10y ago
>... "alleged" ... "terrifying" ... "unnerving" ... "supposed" ... "should" ... "unable to reproduce" ... "maybe" ... "unsettled" ...
Some people are saying:
https://webkit.org/blog/6784/new-video-policies-for-ios/ https://webkit.org/blog/6784/new-video-policies-for-ios/
"Speaking of audio, there's some alleged iOS behavior where audio won't play in a webview until the user interacts with it by tapping something. Sounds bad, right? There are ways to work around it but the terrifying part is: I couldn't trigger this limitation at all. Everything just worked like you would expect it to, contrary to what the Apple docs or anyone on StackOverflow said. So, I just kind of rolled with it, but this was very unnerving."
RTFM:
https://developer.apple.com/reference/webkit/wkwebviewconfiguration/1851524-mediatypesrequiringuseractionfor https://developer.apple.com/reference/webkit/wkwebviewconfig...
mediaTypesRequiringUserActionForPlayback
Determines which media types require a user gesture to begin playing.
Use WKAudiovisualMediaTypeNone to indicate that no user gestures are required to begin playing media.
"Case in point: the iOS 10 beta introduced some new behavior where WebKit ignores the user-scalable viewport meta property. This "feature" is supposed to be for accessibility reasons; anyone should be able to pinch to zoom any web page. That's fine and all, but this would completely and totally break most webview-based apps. However, I again was unable to reproduce this behavior at all in Super Flipside. Maybe it's the way I'm handling touch events or something, but I just couldn't get it to break in the way it was supposed to. And again, I rolled with it, but felt very unsettled."
RTFM:
https://developer.apple.com/reference/webkit/wkwebview/1414983-allowsmagnification https://developer.apple.com/reference/webkit/wkwebview/14149...
allowsMagnification
A Boolean value indicating whether magnify gestures will change the web view’s magnification.
Discussion
The default value is false. You can set the magnification property even if allowsMagnification is set to false.