when i use the browser to preview the app the video player works but on the phone it gives the error below i think the problem is that 'file:' that is added is what causing the problem but i cant seem to get rid of it with string.replace('file:','') :
The webpage at file://wwwdailymotion.com/embed/video/{video_id} could not be loaded becuase:
net::ERR_FILE_NOT_FOUND
player.ts:
this.video_link = "//www.dailymotion.com/embed/video/"+this.video_id;
player.html:
<iframe [src]="sanitizer.bypassSecurityTrustResourceUrl(video_link)" allowfullscreen frameborder="0" width="100%" height="200px" ></iframe>