Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Freitag, 6. April 2012, 06:55

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

Quellcode

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

Freitag, 6. April 2012, 10:36

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:

Quellcode

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


Best regards,
Klaus

3

Freitag, 6. April 2012, 16:14

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

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Weslley« (6. April 2012, 17:02)