HTML5 with Chrome not working...

  • #1, by AndresThursday, 22. June 2017, 02:17 3 years ago
    Hello, 

    Just a quick question... does HTML5 visionaire games works for you on chrome?? 

    For me it´s only working on Edge... 

    Thanks, 
    Andrés

    Newbie

    24 Posts


  • #2, by anthonyirwin82Thursday, 22. June 2017, 09:32 3 years ago
    I just did some tests. Chrome does not work locally you get the following error:

    Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

    If you run it in a webserver with https or http chrome seems to work fine.

    I have used it on safari and firefox locally.

    I saw a post a while back about web player. I forget the specifics but some browsers may also have audio issues.

    The web player is fairly new so I image they will fix the issues before the final vs5 release.

    Newbie

    16 Posts

  • #3, by sebastianThursday, 22. June 2017, 10:56 3 years ago
    its  chrome that does not allow access from local files in e.g. Javascripts...

    you could try to start chrome with this attribute:

    --allow-file-access-from-files

    Thread Captain

    2336 Posts

  • #4, by SimonSThursday, 22. June 2017, 11:18 3 years ago
    You can use the HTML5 player only per webserver in Chrome. And it definitly works there.

    Thread Captain

    1333 Posts

  • #5, by AndresThursday, 22. June 2017, 14:40 3 years ago
    I tried to upload the game in codeanywhere with this specs:
    HTML5 Development Stack with Apache (running on standard HTTP port - 80), Node.js, nvm, npm, yeoman, bower and grunt preinstalled.
    This Codeanywhere Container comes with:
    2GB of Disc Storage
    256MB RAM (+ 512 MB swap)
    Sudo access
    SSH access on host11.codeanyhost.com:27875
    Access to all HTTP and Websocket ports
    The operating system running on this Container is Ubuntu 14.04 (64 bit). Ubuntu uses Advanced Packaging Tool (apt) package manager. You can read more here: apt-get

    And the game still not working on chrome... but on edge and others browsers.


    Newbie

    24 Posts

  • #6, by sebastianThursday, 22. June 2017, 14:45 3 years ago
    you can create a server on your pc (no connection to the internet) with e. g. xampp

    Thread Captain

    2336 Posts

  • #7, by SimonSThursday, 22. June 2017, 14:47 3 years ago
    Seems they have changed the Audio API, I'll into it, when I have the time.

    Thread Captain

    1333 Posts

  • #8, by AndresThursday, 22. June 2017, 15:12 3 years ago
    Thanks for your help smile 
    I will try your suggestions when I come home. 

    I do have Visionaire Studio 4 license... do I have to purchase the new one to have support for HTML5?


    Newbie

    24 Posts

  • #9, by afrlmeThursday, 22. June 2017, 15:45 3 years ago
    Thanks for your help smile 
    I will try your suggestions when I come home. 

    I do have Visionaire Studio 4 license... do I have to purchase the new one to have support for HTML5?


    html5 export is available only in Visionaire Studio 5.x. VS5 is covered by 4.x license due to the small amount of updates in 4.x, so feel free to upgrade to VS5 if you want - you can have both VS5 & VS4 installed at the same time too.

    Quick word of warning though... make sure you make a backup copy of your main ved file before opening it in VS5 as it will no longer be compatible with VS4 once you save any changes.

    Also, I believe you can upload & host html5 games on https://itch.io for free. I don't know if they have a limit on the file-size - I've not checked.


    Imperator

    6812 Posts

  • #10, by AndresFriday, 23. June 2017, 04:00 3 years ago
    Weird, I tried with your suggestion and I´ve uploaded the game on https://itch.io/ but the game still working only on Edge. You can download the game if you want, is a work in progress for the moment grin


    I´m not doing nothing very complex... I´m using  a shaddertoolkit from a tutorial, I don´t think this can cause not working on chrome...

    Newbie

    24 Posts

  • #11, by SimonSFriday, 23. June 2017, 11:35 3 years ago
    I have updated emscripten and now it works. The new version of vis is scheduled today.

    Thread Captain

    1333 Posts

Write post