From 1b8e8dcc1a65302c9d07e00a21f8f47ddc1ef304 Mon Sep 17 00:00:00 2001 From: dpalou Date: Mon, 12 Nov 2018 08:58:35 +0100 Subject: [PATCH] MOBILE-2678 media: Fix video and audio without source tags --- src/directives/external-content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/directives/external-content.ts b/src/directives/external-content.ts index 1d47cf896..2bc08fabc 100644 --- a/src/directives/external-content.ts +++ b/src/directives/external-content.ts @@ -182,7 +182,8 @@ export class CoreExternalContentDirective implements AfterViewInit { const dwnUnknown = tagName == 'IMG' || tagName == 'TRACK' || targetAttr == 'poster'; let promise; - if (targetAttr === 'src' && tagName !== 'SOURCE' && tagName !== 'TRACK') { + if (targetAttr === 'src' && tagName !== 'SOURCE' && tagName !== 'TRACK' && tagName !== 'VIDEO' && + tagName !== 'AUDIO') { promise = this.filepoolProvider.getSrcByUrl(siteId, url, this.component, this.componentId, 0, true, dwnUnknown); } else { promise = this.filepoolProvider.getUrlByUrl(siteId, url, this.component, this.componentId, 0, true, dwnUnknown);