MOBILE-2403 core: Fix embedded videos

main
Dani Palou 2018-05-11 14:20:16 +02:00
parent 43be0b3d0a
commit 461666fd99
3 changed files with 3 additions and 7 deletions

View File

@ -25,10 +25,12 @@
<preference name="BackupWebStorage" value="none" />
<preference name="ScrollEnabled" value="false" />
<preference name="KeyboardDisplayRequiresUserAction" value="false" />
<preference name="AllowInlineMediaPlayback" value="true" />
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<preference name="iosPersistentFileLocation" value="Compatibility" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="SplashMaintainAspectRatio" value="true" />
<feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar" />
</feature>

View File

@ -68,7 +68,7 @@ export class CoreExternalContentDirective implements AfterViewInit {
} else if (tagName === 'AUDIO' || tagName === 'VIDEO' || tagName === 'SOURCE' || tagName === 'TRACK') {
targetAttr = 'src';
sourceAttr = 'targetSrc';
sourceAttr = 'target-src';
if (tagName === 'VIDEO') {
const poster = (<HTMLVideoElement> this.element).poster;

View File

@ -309,17 +309,11 @@ export class CoreFormatTextDirective implements OnChanges {
audios.forEach((audio) => {
this.treatMedia(audio);
if (this.platform.is('ios')) {
// Set data-tap-disabled="true" to make slider work in iOS.
audio.setAttribute('data-tap-disabled', true);
}
});
videos.forEach((video) => {
this.treatVideoFilters(video);
this.treatMedia(video);
// Set data-tap-disabled="true" to make controls work in Android (see MOBILE-1452).
video.setAttribute('data-tap-disabled', true);
});
iframes.forEach((iframe) => {