You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, April 6th 2012, 6:55am

soundinterface in safri?

Hello everybody I'm having trouble playing the soundinterface on safari.
I've tried several codes and all works in SWF and JS nothing.
Does not work soundinterface safari? Or soundinterface.js conrropido this?
Anyone have the correct code and a JS that works on safari to post?

The browser: Safari 5.1.4
My code

Source code

1
2
<plugin name="soundinterface"        url="soundinterface.js"        preload="true"        rootpath=""        keep="true" 		volume="1.0"        mute="false"		onloaded="playsound(s1,som01.mp3);"        />
<plugin name="autorotation"	url="seta.png"	onclick="playsound(s1,som01.mp3);"/>

thank you

2

Friday, April 6th 2012, 10:36am

Hi,

using - preload="true" - AND - onloaded=".." - is not possible!

See here:
http://krpano.com/docu/xml/#plugin.preload

When preload="true" is used then the plugin will be loaded before the viewer itself starts and at this time executing action like in onloaded event is not possible. But therefore you can use the soundinterface actions already in the onstart or other events in this case.

So the solutions will be:
- either use an other event to call the playsound() action start the sound (e.g. onstart)
- or remove the preload="true"

Btw - to include the soundinterface plugin correctly for Flash and HTML5 use:

Source code

1
2
3
4
5
<plugin name="soundinterface"
        url="soundinterface.swf"
        alturl="soundinterface.js"
        ...
        />


Best regards,
Klaus

3

Friday, April 6th 2012, 4:14pm

Thanks for the help.
I was using swfobject.js old.

This post has been edited 1 times, last edit by "Weslley" (Apr 6th 2012, 5:02pm)