MOBILE-2403 core: Fix embedded videos
parent
43be0b3d0a
commit
461666fd99
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue