360Video link won't work (Onedrive)

Dear Babylonians, you can certainly help me.
I was curious what 360videos look like in Babylon. I use this Playground: https://playground.babylonjs.com/#SQ5UC1#457 and thought I would change the link to another video, but I am unable to play it.

It is an .mp4 file (165MB) stored on Onedrive. The link to onedrive makes it accessible to everyone with this link. Is this not possible with OneDrive? I also uploaded it to my website and used the link from there, this didn’t work either. Perhaps you know how this happens and how it can be made to work.

Hello and welcome!

What is the syntax of your link?
There may be a difference between ‘accessible link’ and ‘direct link to the file’.
See example of ImportMesh from OneDrive here - https://playground.babylonjs.com/#1NQ0JU#4
Also, here are some Docs - Using External Assets In the Playground | Babylon.js Documentation

1 Like

Hi Labris,

Thanks for the quick response.
The syntax is as follows: https://1drv.ms/v/s!

I have not been able to do it based on https://playground.babylonjs.com/#1NQ0JU#4 to get it working.

What was successful was placing the video on a Dropbox. Babylon then plays the video properly, so as far as I’m concerned I place my videos on Dropbox. Thanks for the link to the documentation. I should have done my homework a little better.

1 Like

Might be a cors issue then preventing you to consume the content from another site.

OneDrive is able to work with PG without CORS issues as in above PG. The matter is the link syntax (should start with api.onedrive.com), usual link will open the page with the link to the file but not file directly.