I'm trying to bind a url in video from API, but I'm taking this error below, I tried DomSanitizer and others but dosent work.
Error Failed to load resource: net::ERR_FILE_NOT_FOUND
My last try
load() {
this.liveProvider.load().then((data) => {
this.urlStrean = "http://evcv.mm.uol.com.br:1935/band/terraviva/playlist.m3u8";//this.getSafeUrl(data.result.url);
this.getSafeUrl(this.urlStrean);
console.log(this.urlStrean);
}).catch((error) => {
console.log(error);
})
}
getSafeUrl(url) {
return this.sanitizer.bypassSecurityTrustUrl(url);
}
and in my view:
<video width="100%" controls autoplay>
<source [src]="urlStrean" type="application/x-mpegURL">
</video>