MOBILE-3223 ios: Fix playsinline for iOS in InAppBrowser

main
Dani Palou 2019-12-03 16:06:16 +01:00
parent 2ceb3a155d
commit fd5d07ccdc
1 changed files with 4 additions and 0 deletions

View File

@ -904,6 +904,10 @@ export class CoreUtilsProvider {
options.enableViewPortScale = 'yes'; // Enable zoom on iOS. options.enableViewPortScale = 'yes'; // Enable zoom on iOS.
} }
if (!options.allowInlineMediaPlayback) {
options.allowInlineMediaPlayback = 'yes'; // Allow playing inline videos in iOS.
}
if (!options.location && this.platform.is('ios') && url.indexOf('file://') === 0) { if (!options.location && this.platform.is('ios') && url.indexOf('file://') === 0) {
// The URL uses file protocol, don't show it on iOS. // The URL uses file protocol, don't show it on iOS.
// In Android we keep it because otherwise we lose the whole toolbar. // In Android we keep it because otherwise we lose the whole toolbar.