Need help with video textures

I think there may be some extra security in Safari that prevents videos from being played when it is from a protected source (in this case, the video asset that only you can access).

I can think of temp workaround that I would like to try.

Here’s my workaround: https://playcanvas.com/editor/scene/984304

Currently hosting the video on a https server (github in this case) and as long as the video is publicly accessible, it will plays in the launch tab and the build version.

I will try a version with sound too now

Here is version with audio: https://playcanvas.com/editor/scene/984307

You have to press the PLAY button to play the video

that works! after i use the html button just like in my solution. Many Thanks!

And your specific fix is now - where? in scripts? What is the difference?

Just to check, fix for what issue?

getting it to work from playing the scene within the editor. On Safari.

Ah, I just did the following:

The issue is only with Safari as far as I can tell and only in the launch tab. If you would like to develop while the video asset is part of the project, I would switch to Chrome/Firefox/Brave/Edge etc for dev.

which you did accomplish

Thanks a lot. everything works. The reason i did not see the Videotexture on my Objekt was: I am stupid. I should populate a materials list in the editor with a material. that’s what it is for. But i got confused with the tv script from the tutorial - which i do not need.

Anyways, it would be great to update your official tutorials with this new information to avoid others having to struggle with the same issue over and over again. An explanation on how to host videos at external places and make everything work would also be beneficial.

Besides that i would mark this issue as solved.But i don´t know how.

To be honest, this is potential bug on our side that we should look at rather than something that requires documentation. I will look at creating a ticket on our repo for this.