Addressing Multiple Skin Elements in HTML5

Q&A about the latest versions
Post Reply
altman.norris
Posts: 33
Joined: Thu Jan 27, 2011 9:58 am

I am trying to program a pano with multiple sounds that are user controlled though hotspots. I am following the wiki posting on Using regular expressions to address multiple elements - found here http://gardengnomesoftware.com/wiki/Usi ... e_elements

In the sound editor i have elected to NOT EMBED.

It works great for flash but the html5 version on the iPad will not stop the current sound if the user clicks on another sound, it will play both of them at once.

Tour Link
http://www.spinatour.com/gfs/_apartment ... html5.html

Here is the coding for Addressing Multiple Elements in the above tour.
Here is the coding for Addressing Multiple Elements in the above tour.
Here is the coding for Addressing Multiple Elements in the above tour.
coding.png (22.84 KiB) Viewed 6235 times
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
OK had a look in to this, its iOS6 so regular expression don't work and now multi sound files can play, in iOS5.1.1 only one sound file would work.
What you can try, use the action to stop main and then play the required file.

So use a Pressed action to stop sound main and then mouse click to play.

Press will stop when mouse down, then play will happen on mouse up.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
altman.norris
Posts: 33
Joined: Thu Jan 27, 2011 9:58 am

Hey Hopki,

Still having the same problems....I've prepared two versions of the tour. Both versions have the same 10 panosound files, all set to -1 in the sound editor, not embedded. One skin incorporates the action in a static rectangle/button unassociated with any hotspot (in a drop down sound selection menu). I used your suggested action and believe it or not this version works! The second version incorporates the sound files as hotspots using the same suggested set of actions and this version does NOT work. They all play at the same time. Does it make sense that the same set of actions would act differently in a drop down sound selector than they would from a hotspot? I've spent the past 10 hours trying to figure it out and I am stuck. See the links below and let me know what you think.

Drop Down Sound Selector
http://www.spinatour.com/gfs/_apartment ... html5.html

Hotspot Sound Selector
http://www.spinatour.com/gfs/_apartment ... html5.html

I've attached the second version of the project (hotspot sound selector) as a compressed attachment, skin "Simplex1" included.

Thank you for your help Hopki.

AJ
Attachments
_den_test2.rar
I couldn't fit the source images in there, it was too big for the forum. I figured you probably didn't need them anyway.
(2.72 MiB) Downloaded 267 times
altman.norris
Posts: 33
Joined: Thu Jan 27, 2011 9:58 am

Hey Hopki,

Did you get a chance to go over my previous post? Clearly there is a sound bug in either ios6 or panp2vr. How do we get this fixed or even investigated? We are at a stand still in programming as all of our projects have multiple narrated hotspots. In addition all of our previous projects programmed in pano2vr3.0 have sound issues as well, with one file playing along with the next instead of stoping one and starting another.

Thanks for your help man.

AJ
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Yes, you need to change the actions to get this to work in the iPad.
In the Hotspot Template use:

Mouse Click => Play Media => Loop: 1 => Target: $ht
Mouse Enter => Stop Media => Target: _main

That should get you working.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
altman.norris
Posts: 33
Joined: Thu Jan 27, 2011 9:58 am

Hopki,

It works great using flash however the HTML5 version for the iPad still plays all sounds as you click on the hotspots without stopping the currently playing sound.

I'm placing the audio file ID: in the Target: of the hotspot editor, and then setting up the skin with the actions on the hotspot template as you instructed. Here is the new link http://www.spinatour.com/gfs/_apartment ... html5.html

Thank you for your help.
AJ
altman.norris
Posts: 33
Joined: Thu Jan 27, 2011 9:58 am

Hopki,

I did some more testing. Each time i visit, initially the sound files will play over top of one another in error, however if you spin around the room clicking on all of the icons repeatedly, eventually one of them will turn all of the others off and from that point forward the sound will work perfectly. If you hit refresh then the malfunction comes back. It doesn't make sense for it to fix itself after a certain period of time has passed or a certain number of files have been played. Can you help me troubleshoot just a little more please?

Here is the latest link to review
http://www.spinatour.com/gfs/_apartment ... html9.html

Thanks Hopki.

Aj
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Aj
Will look at tomorrow as its late here.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
altman.norris
Posts: 33
Joined: Thu Jan 27, 2011 9:58 am

Hopki,

Did you ever get a chance to look into the multiple sound issue? Thanks in advance for your help.
AJ
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Aj,
I had this working so I thought but have found a bug which is very frustrating. Trying to come up with a workaround but it does not look I will be able.
Will be bug tracking.
EDIT: I do not know if this can be fixed and is just another iOS FEATURE :evil:
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
altman.norris
Posts: 33
Joined: Thu Jan 27, 2011 9:58 am

Frustrating indeed. Let me know what you come up with. Thanks Hopki.
Post Reply