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
SoundInterface doesn't work on iPhone. Why?
-
-
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 -
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,
Klausyes, 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
-
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.
-
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. -
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 -
thank you veru much.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!