I can’t load sounds. Long sounds (like music) never starts on html.
I suggest “load sounds before load” option.
My second suggestion is self load URL. When I click url canvas URL loads on another tab. How can I load URL in same tab?
Thanks
I can’t load sounds. Long sounds (like music) never starts on html.
I suggest “load sounds before load” option.
My second suggestion is self load URL. When I click url canvas URL loads on another tab. How can I load URL in same tab?
Thanks
Hi. Sorry for the late reply. I personally don’t know of any methods to force Armory to autoplay audio on browser devices. You might be interested in this article though:
Thanks for the reply. I don’t need auto play. I need play any large sound file (maybe 7-8 minutes long) after hit to the button. Little sound files already play when I trigger it.
I suggest load all sounds before interface seen. Maybe in loading screen.
And my second need _self and _blank URL codes. What can I do?
My sincere apologies… I believe I vastly misread your post.
I have no idea why this happens, sorry.
Armory uses Kha’s loadUrl() function for HTML5 builds.
Armory - loadUrl logic node
Kha - loadUrl() function
For some reason Kha only supports the opening of URLs on new pages. If you want to add a URL on the active page instead of in a new tab you’ll need to use this code instead:
js.Browser.window.open(url, "_self");
You can run this new code either of two ways:
Either of the two ways, you should be able to run the code with logic nodes via three ways:
Please don’t apologise. You are superior humans in my eyes