Merge pull request #1601 from dpalou/MOBILE-2678
MOBILE-2678 media: Fix video and audio without source tagsmain
commit
76a753be58
|
@ -182,7 +182,8 @@ export class CoreExternalContentDirective implements AfterViewInit {
|
||||||
const dwnUnknown = tagName == 'IMG' || tagName == 'TRACK' || targetAttr == 'poster';
|
const dwnUnknown = tagName == 'IMG' || tagName == 'TRACK' || targetAttr == 'poster';
|
||||||
let promise;
|
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);
|
promise = this.filepoolProvider.getSrcByUrl(siteId, url, this.component, this.componentId, 0, true, dwnUnknown);
|
||||||
} else {
|
} else {
|
||||||
promise = this.filepoolProvider.getUrlByUrl(siteId, url, this.component, this.componentId, 0, true, dwnUnknown);
|
promise = this.filepoolProvider.getUrlByUrl(siteId, url, this.component, this.componentId, 0, true, dwnUnknown);
|
||||||
|
|
Loading…
Reference in New Issue