From fd5d07ccdcbb443ef522e6ca8cd0991670b9843b Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 3 Dec 2019 16:06:16 +0100 Subject: [PATCH] MOBILE-3223 ios: Fix playsinline for iOS in InAppBrowser --- src/providers/utils/utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/providers/utils/utils.ts b/src/providers/utils/utils.ts index 8165bb6c2..31834a365 100644 --- a/src/providers/utils/utils.ts +++ b/src/providers/utils/utils.ts @@ -904,6 +904,10 @@ export class CoreUtilsProvider { 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) { // The URL uses file protocol, don't show it on iOS. // In Android we keep it because otherwise we lose the whole toolbar.