Sie sind nicht angemeldet.

1

Dienstag, 25. Mai 2021, 12:52

SoundInterface doesn't work on iPhone. Why?

Hello everyone, hello Klaus!
I am facing problem with SoundInterface where it works fine on PC and Android but not on my iPhone. Even the example on krpano's homepage. I tried on my iphone and it doesn't work either. Can someone help me with this problem? I use iPhone 7 Plus, IOS 13.5

https://krpano.com/releases/1.20.9/viewe…groundsound.xml

2

Dienstag, 25. Mai 2021, 16:34

Hi,

hmm... it should work (and it does on all my iOS test devices)...

Did you touch the screen to start the sound?

Best regards,
Klaus

3

Mittwoch, 26. Mai 2021, 02:53

Hi,

hmm... it should work (and it does on all my iOS test devices)...

Did you touch the screen to start the sound?

Best regards,
Klaus
yes, but there is no sound coming out on my iPhone :( I do know that Apple blocks autoplay sound, and I tried touching the screen and it doesn't work either

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

4

Mittwoch, 26. Mai 2021, 11:00

Just tried on iPhone 6S with latest IOS and it works as expected BUT on the krpano exemple you posted playsound is used, that means the audio file must be fully loaded before playing (not like streamsound) so if you connection is slow it can take a while before you hear anything.

5

Mittwoch, 26. Mai 2021, 11:19

Just tried on iPhone 6S with latest IOS and it works as expected BUT on the krpano exemple you posted playsound is used, that means the audio file must be fully loaded before playing (not like streamsound) so if you connection is slow it can take a while before you hear anything.
Hi jeromebg !

This is my code:

<action name="startup" autorun="onstart">
if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
loadscene(get(startscene), null, MERGE);
if(startactions !== null, startactions() );
preloadsound(audio/bgsound.mp3 || audio/bgsound.ogg);
playsound(bgsound, audio/bgsound.mp3 || audio/bgsound.ogg, true, 0.75);
</action>


Is it correct?
If possible can you give me an example? Thank you.

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

6

Mittwoch, 26. Mai 2021, 11:28

preloadsound can be used to preload sounds that you want to play later, but it will not help if you try playing the sound at the same time.
Instead of using preloadsound + playsound try streamsound : https://krpano.com/plugins/soundinterface/#streamsound

7

Mittwoch, 26. Mai 2021, 12:01

thank you veru much.