I’m trying to add a video that the url does not have the extension on it, so the browser can’t open it as a normal video and starts to downloading it. My question is, how can I make it work on Phaser? I’m always getting the warning “Video not loaded” with a local video or other .mp4 videos from the web I can see my configs working correctly. Any idea?
Argument of type '{ url: string; type: string; }' is not assignable to parameter of type 'string | string[] | undefined'.
Object literal may only specify known properties, and 'url' does not exist in type 'string[]'.ts(2345)
I’m trying to do something that looks promising on my end, creating the video element and adding it like this.video.video = $videoEl;
I just need to figure out if there’s anyway to add the whole element directly and I think that this can solve my problem for now. At least the video is loading (I can hear it), but unfortunately I can see it because I need to access the hooks that comes after the video loads.
Hello @samme just to close this topic, I’ve figured out in another way. I’ve created a small api that just get my link as a parameter and change the content-type to video/mp4.
And then it works just fine, thanks for your help.