Hi Piotr,
WORKING:
<krpano version="1.19" onstart="">
...
<include url="html5sound/xmls/init.xml" />
...
<action name="startup" autorun="onstart">
loadscene(get(scene[0].name), null, MERGE, BLEND(1)) ;
</action>
NOT WORKING:
<krpano version="1.19" onstart="startup()">
...
<include url="html5sound/xmls/init.xml" />
...
<action name="startup">
loadscene(get(scene[0].name), null, MERGE, BLEND(1)) ;
</action>
Means: the autorun="onstart" fires earlier than the onstart="startup()", but doing so with embedding your script I see only a black screen and no pano is loading...
Seems like panoloading is blocked...
EDIT - NEXT PROBLEM:
Sometimes I get the following error-message:
ERROR: html5soundpos - TypeError: Argument 1 of PannerNode.setPosition is not a finite floating-point value.
...and the 3D Sound does not work???
Best regards,
Steve