Sie sind nicht angemeldet.

1

Montag, 12. Juni 2023, 20:15

Sounds interface issues in Panotour [Solved]

Hello, I've made a tour in Panotour Pro with Krpano 1.20.11
I have 16 panos, each one of them with a button to play a voice over of 2 minutes explaining the scene.

I'm having three issues with audio:

1-Default behaviour of Panotour Pro to preload all the 16 sounds makes the start screen to appear after several seconds of waiting. I've compressed my mp3 files as much as I could (they weight near 700kb each). If I set the preload to "false" inside the xml, now the tour load fast, but on each pano the sound has a delay when the visitor click the button, and sometimes it could seem that the button is not working. Is there nay way to preload the audio per scene?

2-Audios don's play in iphone, but they play in Ipads.

3-The most annoying: if I leave the browser window where my tour is being played, go to another tab and then come back to my tour, all the sounds that have been played in the tour start to play simultaneously, no matter the scene.

I don't know if this is a Panotour-related issue or it has to do with the kprano sound interface. So I apppologize in advance if the problem is Panotour.

But as I don't code, I just wanted to understand where is the problem to ask a coder to help me with that.
Much appreciated,

Pablo *smile*

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »pbetancourt« (24. Juni 2023, 01:13)


Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Dienstag, 13. Juni 2023, 14:55

Hi,

I have no knowledge about PTP but krpano wise you could do something like this:

https://www.virtualtuur.com/krpano/121/b…amples/sound/1/
https://www.virtualtuur.com/krpano/121/b…ound/1/tour.xml

bit dirty perhaps..

Hope it helps,
Tuur *thumbsup*

3

Dienstag, 13. Juni 2023, 20:35

Thanks a lot Tuur!, I see that your sounds (cool music actually, ha) take several seconds to load as well.
But you don't get that problem I'm having about audios all playing together when you return to the broswer tab of the tour.

Talking with a coder, he actually found a solution for that, inside the xml code of PTP.


PTP creates an xml file that is called skin.xml From there it calls the soundinterface.js plugin from krpano.
in that skin.xml, I needed to change the "autopause field from true to false", and now the audio does not play when I come back to my window.



<!-- Sounds Management -->
<plugin name="soundinterface"
preload="false"
url.html5="%FIRSTXML%/graphics/soundinterface.js"
rootpath="%$videos_sounds_path%/sounds/"
backgroundsound=""
backgroundsoundloops="true"
bgsound="false"
bgsoundpaused="false"
bgsoundloopended="false"
bgsoundtoforce = "false"
volumeinitialized="false"
autopause="false"
autounlock="true"
worldscale="1.0"
started="true"
keep="true"/>

Still looking on how to make audios to play in iphone...
»pbetancourt« hat folgendes Bild angehängt:
  • Captura de pantalla 2023-06-13 a la(s) 15.29.23.jpg

4

Dienstag, 13. Juni 2023, 20:53

why are you using 1.20.11 ?
only the newest version has support for the newest devices and os versions.

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

5

Dienstag, 13. Juni 2023, 22:24

Zitat

I see that your sounds (cool music actually, ha) take several seconds to load as well.

I don't experience that... 0.2 sec perhaps.. but there are many roads to Rome and options etc.. this is just a quickly made help thingy...
there must be quite a few threads discussing all this here online in the forum.

I now did cut some white space from the audio file though.

here an example with different sounds.
https://www.virtualtuur.com/krpano/121/b…amples/sound/2/


Yes I can imagine the autopause can a make a difference in your case.
..and yes you could preload all sounds at start, to a certain limit I guess. I would not do such I think, but that depends on the payload and needs.

Tuur *thumbsup*

6

Freitag, 23. Juni 2023, 04:28

why are you using 1.20.11 ?
only the newest version has support for the newest devices and os versions.
I was just afraid to update in the middle of my project. I've just did it. Sounds are now playing!, but and I'm getting a problem with icons and buttons all being smaller than before on mobile..., maybe I'll need to go back to 1.20.11. Probably Panotour Pro has its limitations with these updates?

7

Samstag, 24. Juni 2023, 01:12

why are you using 1.20.11 ?
only the newest version has support for the newest devices and os versions.
I didn't know that 1.20.11 had different versions as well. I have updated to the latest and now all is working great! Many thanks.
BTW 1.21 does have this issue with skin icon size...