[SOLVED] Can't get video to play from URL on iOS/Android

I’m trying to setup a video texture, but cannot for the life of me get it to work playing from a URL on iOS/Android.

I’m using the video texture tutorial project as an example: https://developer.playcanvas.com/en/tutorials/video-textures/

And here is the URL I’m trying to load from: https://media.graphassets.com/fltcEPPQKOSeYRl1efqQ

Using a fixed project asset works fine on mobile, and loading from that URL works fine on desktop, but using the URL just doesn’t play/appear on mobile.

I haven’t modified the code or anything, so it should be doing all the things iOS/Android demands (video.muted = true, video.playsInline = true, etc.) but still just doesn’t work.

Anyone know how to get this working?

OK, I figured out the issue: the video file is 4Kx4K. Reducing it to 2Kx2K seems to make it work fine on mobile.

3 Likes

Odd a 4K texture wasn’t rendering :thinking: Out of interest, did you get any errors on the mobile browser devtools console?