Hello,
I have a problem trying to play videos on play canvas and then seting their video texture to a material in order to render it in 3D on a worlds entity.
The code works perfectly on Windows, Android and MacOs. But on iOs it doesn’t.
I have followed the tutorial for videos: https://developer.playcanvas.com/en/tutorials/video-textures/
I have noticed that the event “canplaythrough” is not firing but no error is shown on console.
I know the video is initialized.
Does anyone know how to solve this or has had this problem?
I havent try safary, I am only interested on Google Chrome.
I will try to make a demo of my code public.
I try to play different videos sizes vary from 5MB to 34.2MB, all the bit rates are 500k, and the dimensions are 720p
here you have a demo, It wont play until you click the screen since you need to do an input so the video can play, since I am playing videos on proximity I placed the camera close enought for the videos to play…
I cant upload the video to the public version since they are private, but how can I test this?
It works on every other platform… couldnt test linux… but I dont care about it.
The video that we use in our tutorial has no sound so it can autoplay fine, even when you try to unmute
However, in your test video it does have sound so when you try to unmute on ‘canplaythrough’ without user input first, it throws an exception and doesn’t play the video: