Video texture in VR not showing

HI,
Is it normal that video textures are not displayed in VR ? In desktop mode using Microsoft edge (not in VR) video textures are correctly displayed. However using Oculus Quest with Oculus browser video textures are not displayed. Is this a known issue for Babylonjs ?
Thanks.

I don’t know anything about VR, but as I see @RaananW keep repeating that contents must be served with https, maybe it’s the issue here :slight_smile:

1 Like

not quite. They should display correctly.

Do you mean - after entering VR, or when opening the page in the oculus browser? Want to share a playground? I can check on my quest

1 Like

Hi,

Try this with your Oculus Quest. Video texture seems not to be working.

https://playground.babylonjs.com/#CHQ4T#227

Thanks.

It is an issue with the video-prefatch attribute. This will work:

https://playground.babylonjs.com/#CHQ4T#229

those are the lines that solved the issue:

videoTexture.video.preload = 'auto';
videoTexture.video.autoload = true;

Seems like a small bug in the way the oculus browser deals with video elements. Not sure thou. You can add an issue on github if you like. I will see if we can fix it without hurting any other implementation.

1 Like

Thanks @RaananW !
That solved the issue.

2 Likes