Error with video when publishing on Playcanvas

Hi. I have an issue with video when I publish a project to Playcanvas. I’m using the .webM video format and it gives me such error.


When I do launch everything ok. Can it be the server where my project published and I need to publish it on my own server?

Hi @Nazar_Semets,
I think you need to publish it on your own server. Here is an example: So you are doing multiplayer let’s say and you test it but it doesn’t work. Then you got to do it on your own server. So you have to do the same here.

Hi @Nazar_Semets, this seems like an issue with the PlayCanvas serving the published builds. @yaustar may be the case a missing mimetype on the server side?

Would you be able to share the link to the project or published build please? If not, can you add yaustar to the project for me to take a look?

Does this happen with a MP4? What browser is this on? Safari only has partial support: https://caniuse.com/webm

Looking at other video projects, there doesn’t seem to be an issue on the server side.

2 Likes

I’ve just tried a WebM video file and it works fine for me on Chrome: https://playcanv.as/p/sirNvNC8/

Project: https://playcanvas.com/editor/scene/1106556

2 Likes

I tried it in other browsers. It must work only in Chrome and Firefox. It doesn’t work in Chrome but works in Firefox. I have a video with 25 Mb and it works 5 sec but then stops. It works with small videos but not with videos more than 10 Mb.
Also, I need to remove the iframe from the build so it works sometimes.

1 Like

Would you be able to provide the video please as I don’t have an example on hand? (DM me if need be)

1 Like

I will check it and write you back.

I’ve just trie a WebM video without loading or preloading the asset on a 200MB WebM video

Looks like our publishing backend doesn’t support WebM for some reason.

I will make a note of this in our issue log. The best workaround I can suggest is to try self hosting a test build or use MP4 instead.

Edit: issue created: https://github.com/playcanvas/editor/issues/316

2 Likes

Hi @Nazar_Semets, I’ve found the CloudConvert converter perfectly converts webm to mp4 for use in PlayCanvas, and we’ve done this in a few projects with minimal or no quality difference.

Thank you for your help. I will try to publish on my own server.

1 Like

Thanks for advise but I can’t do it because I need video with alpha channel. Mp4 doesn’t support it.

2 Likes