You are not logged in.

thienkd

Beginner

  • "thienkd" started this thread

Posts: 21

Location: Viet Nam

  • Send private message

1

Tuesday, December 15th 2020, 9:13am

Sound doesn't work on iPhone

Hello !
I have an audio file for background music, it works fine in the PC browser, but on my iPhone it doesn't work. Have you come across a situation like this? Can you give me the solution? Thanks.
This is my code:


<plugin name="soundinterface" keep="true" url="plugins/soundinterface.js" preload="true" volume="1" mute="false"/>


<action name="startup" autorun="onstart">
playsound(bgsound, audio/bgsound.mp3, true, 0.75);
</action>

2

Tuesday, December 15th 2020, 9:32am

Hi,

playing a media without user-gesture (click/touch) is not allowed (by the browser).

But that means: after touching anywhere on the screen, the sound should start automatically playing (assuming you're using an actual krpano version).

Best regards,
Klaus

thienkd

Beginner

  • "thienkd" started this thread

Posts: 21

Location: Viet Nam

  • Send private message

3

Tuesday, December 15th 2020, 9:43am

Hi Klaus !
I tried to click / touch but it doesn't work.

thienkd

Beginner

  • "thienkd" started this thread

Posts: 21

Location: Viet Nam

  • Send private message

4

Tuesday, December 15th 2020, 9:44am

Hi Klaus !
I tried to click / touch but it doesn't work.
UPDATE:
It works but only with headphones, when I am not using the headset no sound is played at all.
I tried on:
ipad IOS 11 (work),
iphone 6 iOS 12 (not working),
iphone 7 plus IOS 13.5 (not working),
iphone 7 plus IOS 14.2 (not working),
iPhone XS Max IOS 14.2 ( work)
Hi,

playing a media without user-gesture (click/touch) is not allowed (by the browser).

But that means: after touching anywhere on the screen, the sound should start automatically playing (assuming you're using an actual krpano version).

Best regards,
Klaus

This post has been edited 2 times, last edit by "thienkd" (Dec 16th 2020, 2:12am)


5

Tuesday, December 15th 2020, 12:17pm

Hmm... that doesn't make much sense...
The iPhones are not muted or have volume set to zero?

thienkd

Beginner

  • "thienkd" started this thread

Posts: 21

Location: Viet Nam

  • Send private message

6

Wednesday, December 16th 2020, 2:13am

Hmm... that doesn't make much sense...
The iPhones are not muted or have volume set to zero?
I'm not sure about this, but when I tested it on a few Apple devices, it did.

Similar threads