You are not logged in.

amitsingh

Beginner

  • "amitsingh" started this thread

Posts: 12

Location: Gurgaon, India

  • Send private message

1

Wednesday, May 2nd 2018, 9:15am

URL placeholder not working in HTML5-VR Audio xml files

Hi,

Is it possible to use %FIRSTXML% type of URL placeholders in HTML5-VR Audio xml file. Cause when I use it i get error attached below.

I am using it like

Source code

1
calc('%FIRSTXML%/html5sound/assets/'+sound2d.scene[get(sedit_scn)].audiofile),
amitsingh has attached the following image:
  • Screenshot from 2018-05-02 12-45-27.png

Mael B.

Trainee

Posts: 143

Location: France, Montpellier

  • Send private message

2

Wednesday, May 2nd 2018, 10:20am

try this code instead:

Source code

1
calc(%FIRSTXML% + '/html5sound/assets/' + sound2d.scene[get(sedit_scn)].audiofile),

amitsingh

Beginner

  • "amitsingh" started this thread

Posts: 12

Location: Gurgaon, India

  • Send private message

3

Wednesday, May 2nd 2018, 10:55am

This is not working. I am getting the same error.


I also tried giving my own variable like:

Source code

1
embedpano({swf:"vtour/tour.xml", xml:"vtour/tour.xml", target:"pano", initvars: {mypath: "http://localhost/sample_tour/vtour/"} basepath: "http://localhost/sample_tour/vtour/", passQueryParameters: true});




and using the variable in xml file like:

Source code

1
calc(%mypath% + '/html5sound/assets/'+sound2d.scene[get(sedit_scn)].audiofile)



But still getting the same error.

spacerywirtualne

Professional

Posts: 896

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

4

Wednesday, May 2nd 2018, 4:10pm

Hi

%FIRSTXML% is a KRpano placeholders and in this case this is not work, because howler.js (HTML5-VR Audio Sound engine) not recognizance this 'string'. Use URL's without KRpano placeholders.


best regards
Piotr
Your own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube

cms4vr team *thumbsup*

spacerywirtualne

Professional

Posts: 896

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

5

Wednesday, May 2nd 2018, 4:10pm

this post is doubled from above
Your own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube

cms4vr team *thumbsup*

Similar threads