HI!
I resolved the issue, but fails when the video is heavy (up to 5MB).
this._file.checkFile(this._file.dataDirectory, "file.mp4").then((correct : boolean) => {
if(correct){
this._file.readAsDataURL(this._file.dataDirectory, "file.mp4").then((base64) => {
this.source = this._sanitizer.bypassSecurityTrustUrl(base64);
this.bo_html5 = true;
}).catch((err) => {
console.log("VIDEO :: No se pudo recuperar el video");
console.log(err);
});
} else {
console.log("VIDEO :: El video no pudo ser encontrado");
}
}).catch((err) => {
console.log("VIDEO :: Ocurrio un error al verificar si el video existe");
console.log(err);
});
<video *ngIf="bo_html5 && source!=null" width="{{width}}" height="{{height}}" controls>
<source [src]="source" type="video/mp4">
</video>