Page 1 of 1

Sounds play in Flash & HTML5...but not ipad?

Posted: Thu Apr 04, 2013 8:24 pm
by AncientCityPhoto
I have multi-panorama tour. Each pano has a sound (surround) added into the sound editor. When you select a pano from the navigation, the sound begins playing when the pano loads.There is a button in the navigation that is a play/pause action on the sound. There is no target selected.

Issue 1: In flash everything works perfectly. In HTML5 desktop the play/pause button does not work.

Issue 2: On the Ipad, on the first two panoramas load sound. The rest do nothing when they load.

Sounds are mp3 and ogg file.

What is going on here?

Re: Sounds play in Flash & HTML5...but not ipad?

Posted: Thu Apr 04, 2013 8:28 pm
by AncientCityPhoto
If I set the play/pause button to target "_main" then the button does not work in flash. In HTML it works to stop the sound...but then you can not play the sound again without reloading the panorama. Targeting "_background" does nothing on either.

Re: Sounds play in Flash & HTML5...but not ipad?

Posted: Thu Apr 04, 2013 10:16 pm
by Hopki
Hi,
To Play a sound you must target the sound file.
You can use "main" to stop all sounds as well as use it for master volume.
Regards,
Hopki

Re: Sounds play in Flash & HTML5...but not ipad?

Posted: Thu Apr 04, 2013 11:02 pm
by AncientCityPhoto
In HTML5, the

Mouse Click : Play/Pause Media : Loop 50 : Target "Main"

Does absolutely nothing. It still does not pause or resume the audio.

Also, why do only some of the panoramas play audio, and my others do not on the ipad? But they work fine on a desktop?

Re: Sounds play in Flash & HTML5...but not ipad?

Posted: Thu Apr 04, 2013 11:06 pm
by AncientCityPhoto
Hopki, just sent you an email, please check it and let me know!

Re: Sounds play in Flash & HTML5...but not ipad?

Posted: Fri Apr 05, 2013 12:34 am
by Hopki
Hi,
Not received any e-mails?
But as said you must target the sound file's ID and not use main.

Add sound to the media editor and give it an ID of say snd1.
Then in the skin add to a button mouse click, play.pause sound, loop 0 or what ever (0=endless loop) target: snd1.
Regards,
Hopki

Re: Sounds play in Flash & HTML5...but not ipad?

Posted: Fri Apr 05, 2013 12:53 am
by AncientCityPhoto
Then will that button only play pause that one sound file? I have 12 panoramas, each with a sound. The button I was hoping would be master on/off sound button. Is there a way to do that?

Re: Sounds play in Flash & HTML5...but not ipad?

Posted: Fri Apr 05, 2013 1:09 am
by AncientCityPhoto
Ok, so I used a regular expression to make the Sound button Play/pause all the audio. It works in flash, but not in HTML5...

Re: Sounds play in Flash & HTML5...but not ipad?

Posted: Fri Apr 05, 2013 1:22 am
by AncientCityPhoto
Ok, so it seems that the regular expressions won't work. If I just add 12 seperate play/pause commands to the same button, it works perfectly in HTML5 and flash. Not the most convenient...but it works!

Re: Sounds play in Flash & HTML5...but not ipad?

Posted: Fri Apr 05, 2013 1:30 am
by AncientCityPhoto
But now I notice the sounds reload each time a panorama loads. Is there a way to just make a master volume so if the sound is "off" then even if the next panorama and sound load you dont hear them unless the click to unmute the sound?

Re: Sounds play in Flash & HTML5...but not ipad?

Posted: Fri Apr 05, 2013 1:35 am
by AncientCityPhoto
And in that situation... my button that is clicked changes to a sound off picture incorrectly.

I have a mouse click show element Sound off button
Another mouse click show element Sound On Button

These work with the Pause, and play toggle.

Well if I pause the sound and show a sound off picture...and a new panorama is selected, the sound automatically starts again and then the button image is backwords! Off button is still showing and when you click to toggle the audio, you then turn the sound off again, but the on picture becomes visible.

Re: Sounds play in Flash & HTML5...but not ipad?

Posted: Fri Apr 05, 2013 1:38 am
by AncientCityPhoto
And I still get no sound in the ipad!

Re: Sounds play in Flash & HTML5...but not ipad?

Posted: Sun Apr 07, 2013 10:57 pm
by Hopki
Hi,
Without seeing the project I can not advise.
My e-mail is: martin@gardengnome.at
Regards,
Hopki