Sie sind nicht angemeldet.

1

Freitag, 27. April 2018, 11:31

HTML5sound not working while using embedpano() function

Hi, I have created a tour with HTML5-VR audio plugin. When I open the tour.html file or embed it using iframe everything works fine.

But when I embed the created tour using embedpano() function as explained here : https://krpano.com/docu/html/#syntax
I get 404 errors for sound files. (please refer the attachment for error)

What I have observed is it is not getting the right path for the sound file. the correct path is http://localhost:4200/assets/myvtour/htm…ssets/sound.mp3

Any help on how to fix this?
Thanks *smile*


PS. I am implementing this on Angular 5
»amitsingh« hat folgendes Bild angehängt:
  • Screenshot from 2018-04-27 14-55-43.png

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Freitag, 27. April 2018, 11:39

"404 not found"

Your application can not find the file. Check paths and delete special characters and spaces from names.


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

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Freitag, 27. April 2018, 11:43

file name is correct. same files are working file in Iframe. This is the issue with the path and I don't know to fix the path of sound file.

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

4

Freitag, 27. April 2018, 12:26

Send me a link to check it out. *smile*

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

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

5

Freitag, 27. April 2018, 13:31

I will not be able to give the url. as I am working locally.


btw I have used this to embed the tour (after attaching the tour.js, howler.core.min.js and howler.effects.min.js) :


Quellcode

1
embedpano({swf: this.tour.pano+"/tour.swf", xml: this.tour.pano+"/tour.xml", target:"pano", html5: "auto", onready: this.krpanoReady});


*smile*

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

6

Freitag, 27. April 2018, 14:29

My HTML5-VR Audio Plugin has nothing to do with embedpano() function, so I suspect some error in your code. Can you send the whole project to me via wetransfer?

info[at]cms4vr.com

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

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

7

Montag, 30. April 2018, 09:23

Hey, I have just mailed you the sample project files on the above email id. *smile*

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

8

Montag, 30. April 2018, 10:13

Hi
Hey, I have just mailed you the sample project files on the above email id.
I did not change anything in your project. I just started the right HTML file and everything works. *smile*

best regards
Piotr
»spacerywirtualne« hat folgende Bilder angehängt:
  • 001.jpg
  • 002.jpg
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

9

Montag, 30. April 2018, 10:21

The tour.html which is in vtour folder works fine, because that is generated by krpano tool. One step above, there is index.html (which I have created) where I want to embed the tour. In index.html tour showing up but the sound is not working. That is the issue. If you will open the index.html file you will see below error in console.
»amitsingh« hat folgendes Bild angehängt:
  • Screenshot from 2018-04-30 13-51-13.png

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

10

Montag, 30. April 2018, 11:14

The tour.html which is in vtour folder works fine, because that is generated by krpano tool. One step above, there is index.html (which I have created) where I want to embed the tour. In index.html tour showing up but the sound is not working. That is the issue. If you will open the index.html file you will see below error in console.
This message is correct.

All independent changes can result in something that does not work. Your modifications introduce significant changes to the file structure generated by the KRpano droplet. In your situation, use the native actions of the HTML5-VR Audio Plugin. Then you will be able to control audiofile to your file and these errors will not occur.


docu

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

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

11

Montag, 30. April 2018, 12:32

Is this the ultimate solution for sound, when we embed vtour in some other html file (outside the file structure generated by the KRpano droplet ) ?

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

12

Montag, 30. April 2018, 13:42

Is this the ultimate solution for sound, when we embed vtour in some other html file (outside the file structure generated by the KRpano droplet ) ?
For embedding on other websites, use iframe and everything will work properly.


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

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

13

Mittwoch, 2. Mai 2018, 09:24

I tried using the iframe but the gyro stops working on iPhones. any workaround for that?

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

14

Mittwoch, 2. Mai 2018, 16:26

I tried using the iframe but the gyro stops working on iPhones. any workaround for that?
I guess it is related to security reasons.
I have no experience in this subject, but on this forum there were such questions. Look for or ask a question in a new thread.

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

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*