Sie sind nicht angemeldet.

1

Sonntag, 27. Oktober 2013, 21:05

Sound starts paused on android

Hi, I have the sound loaded in onxmlcomplete using playsound(skin_sound, 'skin/music.mp3|skin/music.ogg', 0);".
Controlled with a button using onclick="pausesoundtoggle(skin_sound); switch(crop, 444|120|30|30, 414|120|30|30);"


It starts automatically on the PC flash, PC HTML5, iphone device, and ipad.

However, on android phones it starts paused, I have to physically click the sound button to make it unpause.

Although I only have in the code 1 extra section <krpano devices="mobile"> and it doesn't deal with the sound.

Any ideas?

2

Montag, 28. Oktober 2013, 18:20

Hi,
what browser on android?
Please show the whole code.

3

Montag, 28. Oktober 2013, 21:03

Hi,

that's normal - Android has the same limitations as iOS - there need to be a user-interaction to start a sound.
That means with the first touch (anywhere) the sound should start.

Best regards,
Klaus

Satya.Teja

Anfänger

Beiträge: 6

Wohnort: Planet Earth

Beruf: Web Developer

  • Nachricht senden

4

Mittwoch, 11. April 2018, 13:12

Hi,

that's normal - Android has the same limitations as iOS - there need to be a user-interaction to start a sound.
That means with the first touch (anywhere) the sound should start.

Best regards,
Klaus
Hey Klaus,

Is there any fix for this, meaning can we trigger audio on load of scene( on mobile devices).
Triggering the audio by touch is not a good experience, i'd like to keep it uniform on all devices.

Ähnliche Themen