Forum

Firefox load scene but Chromium doesn't

06 August 2016 15:56 #11017
Hi everybody,

I'm trying to work with json files instead of html in order to get my scenes to load quicker with the webplayer loaded once .

Here is my script :
<iframe width="800" height="500" allowfullscreen src="webplayer.html?load=AutoRetro.json&no_social"></iframe>

Firefox open the scene and it works perfectly .

On the same machine, Chromium shows the grey fallback image with this red sentence : could not load the scene .

When I export the same scene in html files, both browsers work fine ( except that I've got no sound in firefox …)

Dear B4Web team, have you got the solution ? or at least a clue ?

I work on a bodhi linux 3.2.1and my graphic card is an old nvidia GTX 260

And, I just made a test on another PC with 3 different json files : firefox loads the scene but here, it stops ( freezes ) between 90 and 94 % according to the file.
It works also perfectly on this machine with html files from the same blend files.

Thank you
06 August 2016 23:46 #11018
Hi Nicolas,

You are using a local web server or the Project Manager to run your Web player content, right?
Development Lead | Twitter
09 August 2016 10:21 #11064
Hi Yuri,

Actually, I'm just trying to run the Web player content from the directory, all on the same machine, for each machine.

A little bit like a local server, yes. But I'm not using the Project Manager.

I'm going to try a new private web page with the whole content on my web site as soon as I finish another work I'm working on this week.

And I'll come back straight after.
09 August 2016 12:07 #11077
What does the browser console say? (press F12)
Development Lead | Twitter
09 August 2016 16:07 #11091
Hi Yuri,

So I found the time for testing this stuff :

Now, The sound is back on Firefox.

The json file works also perfectly with both Firefox and Chrome from my website.

For this, I had to change my way of working and classifying the directories and files.
I have exported a new time the blend file in Json, but together in the same directory, with audio and textures linked also in the same directory. And I have put the whole content ( except the blend file ) on the server of my website.

And now, it works ( I've made a very little change in the interaction of the bottle, meantime, great thanks to your new logic editor )

But locally ( by opening the html file which links to the json on my machine ) only Firefox works, not Chrome ( still showing this "could not load the scene" ).

The Chrome console says :
webplayer.min.js?v=16.07:1024
XMLHttpRequest cannot load file:///home/nico/Public/Divers/SiteNico/PortFolio/B4W/GoeletteB4Web.json?t=26072016154706. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.w
webplayer.min.js?v=16.07:1024
webplayer.min.js?v=16.07:92
B4W ERROR: empty responce when trying to get ../PortFolio/B4W/GoeletteB4Web.json?t=26072016154706
webplayer.min.js?v=16.07:92
webplayer.min.js?v=16.07:2086
Uncaught TypeError: Cannot read property 'shift' of null


09 August 2016 16:15 #11092
XMLHttpRequest cannot load file:///home/nico/Public/Divers/SiteNico/PortFolio/B4W/GoeletteB4Web.json?t=26072016154706. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.w
Due to the same-origin policy, loading files from a local directory is not allowed. The Project Manager is a convenient way to overcome this limitation.
Development Lead | Twitter
24 August 2016 14:03 #11376
Hi Yuri,

I've made all the changes on my B4W scenes in my portfolio. They are now json files loading from an online webplayer.

They all works perfectly with both firefox an chrome.

here is the link :Port folio B4W


Here, on my machine , I cannot test the projects without the project manager in chrome, as you explained to me ( same-origin policy ).

But I can do it with firefox, which is very convenient, since I can manage my folders as I want in my directories.
But today, firefox doesn't play webgl audio again on this computer. It plays video's sound .
And yesterday, it played Webgl audio. I don't know what have changed between yesterday and today.
24 August 2016 14:22 #11378
it's driving me mad :

I have just closed firefox, opened blender, tried the sound with playing the timeline . It works.

And now, I re-open firefox, open the .html which links towards the webplayer and the json and …

It sounds !!!

And the webgl audio on my portfolio on line sounds too.

What have changed between now and 15 minutes ago ? I still don't know .
24 August 2016 14:28 #11379
What have changed between now and 15 minutes ago ? I still don't know .
This is probably the browser cache. You can keep the browser console open (F12) and set it to non-caching mode.
Development Lead | Twitter
 
Please register or log in to leave a reply.