Ionic 3 can't play local html5 video on ios

<video *ngIf="words[i].video" width="100%" autoplay controls autobuffer webkit-playsinline>

<source [src]="_sanitizer.bypassSecurityTrustResourceUrl(words[i].video)" type="video/mp4">

</video>

config.xml

<allow-navigation href="http://localhost:8089/*" />

<preference name="WKPort" value="8089" />

error:

Failed to load resource: the server responded with a status of 401 (Unauthorized)
http://localhost:8089/assets/videos/cat.mp4

@rapropos Hi Robert, could you please help me?
@Judgewest2000 Last time, you mentioned that Ionic was working on something to replace the local web server, do you know if it is released? could you please help?

I tried to sanitize the url from the controller. also not working. And I don’t want to use the native video player because I don’t know how to specify the width and height.

big thx!!

I also tried to get the absolute path first with ionc native file, the same error:

http://localhost:8089/var/containers/Bundle/Application/E36E0DA6-DBBF1-46DF-8372-80Ddd8EBCBFA/my.app/www/assets/videos/cat.mp4
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (cat.mp4, line 0)

The only way I got it work on ios is to first read the file into base64. However, it’s a bit slow. We should be able to play the file directly from the disk, correct?
@mhartington Mike, any suggestion?

Just got this re the web server