PDA

View Full Version : add an audio commentaire


limpid
11-24-2008, 03:45 PM
Hi,

I work in a projet where there are many photos and i wish add an audio commentaire on each photos.

Pano_Amiens (http://www.limpidstudio.com/amiens/pano_amiens.htm)

I have see different methode for add sound
-mp3player.swf
-ia_ambiantmix.swf
-dewplayer.swf
-and make a swf with un external sound...

Can you help me too choose "the best"... ?
Have you a complete tutoriel for it ?

I must add sound when the photo is open and close it in the same time as the photo...

thanks
sorry for my English
D@m's [Limpid]

limpid
11-24-2008, 03:49 PM
Sorry,

I want too, to be able to control the sound with 3 buttons...
play / pause / stop(go to the start...)


thanks,

D@m's [Limpid]

Trausti Hraunfjord
11-24-2008, 05:21 PM
Helping you to choose the best... well... not that I am impartial or anything like that... but Flashificator would get you far towards your goal.

panomaster
11-24-2008, 06:49 PM
Simple example using sound hotspots (it presents only idea, not working example).

<?xml version = '1.0'?>
<panorama>

<parameters>
...
</parameters>

<hotspots>
<global

soundOn="
snd1.soundVolume=1;
snd2.soundVolume=1;
snd3.soundVolume=1;
"

soundOff="
snd1.soundVolume=0;
snd2.soundVolume=0;
snd3.soundVolume=0;
"
>
<pano visible="0" leash="free" />

<spot id="but_snd" url="img/but_sound.png" salign="CB" align="CB" static="1" staticX="0" staticY="0" depth="2" onclick="sOff"
sOff="soundOff(); onclick=sOn()"
sOn ="soundOn() ; onclick=sOff()" />

<!-- sound hotspots -->

<spot id="snd1" linked="pano1" url="files/mp3hotspot.swf" file="audio/sound1.mp3" soundVolume="1" repeat="1000" pan="0" tilt="0" enableSoundPannig="1" soundRadius="360" />
<spot id="snd2" linked="pano2" url="files/mp3hotspot.swf" file="audio/sound2.mp3" soundVolume="1" repeat="1000" pan="0" tilt="0" enableSoundPannig="1" soundRadius="360" />
<spot id="snd3" linked="pano3" url="files/mp3hotspot.swf" file="audio/sound3.mp3" soundVolume="1" repeat="1000" pan="0" tilt="0" enableSoundPannig="1" soundRadius="360" />

</global>
</hotspots>
</panorama>

Working example can be watched at:
www.zdjecia-panoramiczne.pl/vt/opole (virtual tour)
www.zdjecia-panoramiczne.pl/vt/settings (a short example of one sound hotspots embeded and control panel that controls three parameters: segments, qualityMotion, qualityStatic - Polish version only but but I hope example is short and clear)

limpid
11-25-2008, 07:02 AM
thanks you for your answer !

-tuddi : I think I will test the flashificator for my next pano... (if my boss he's ok to buy it...) Is there an evaluation version of flashificator?

-panomaster : how do you create the mp3hotspot.swf ...? is it a plug in? (can you send the source?) or you had created this yourself...?

thank you !

D@m's [Limpid]

Trausti Hraunfjord
11-25-2008, 08:08 AM
The free version of Flashificator is freely available, but it is very very basic.
The full version is still in daily development, getting bigger and better... but still far away from being complete (just honest talk).

You can read user's comments (good and bad) in the FFC forums, and have a look at video tutorials, where you can get an idea about how work is done with it.

If your boss doesn't want to buy it, then he's in the wrong business. It is a time saver. If you have no problem with coding, then you can still save a bunch of standard procedures, and have lots more time to customize your work manually in the xml output file.

Important issues that are still not in place:

One click installation
Help files (documentation)
Save project files for later editing
One swf file output
Encryption of content
... and a whole bunch of less important things, but the work is ongoing on daily basis, and until now, it's been new version every 3 days on average for the past month.

So... a living project, with bugs and fixes and improvements and addons. At least I am not trying to hide any of the shortcomings, and take critique and compliments equally seriously... and really like to hear from people with suggestions of new features and improvements. Without a living and interested userbase that knows it's cared for, I could just as well give up on the whole project.

Now it's your turn to convince your boss of what to do. Check the videos, show him and explain why he should make the investment.

:)

panomaster
11-25-2008, 08:31 AM
http://flashpanoramas.com/blog/2007/11/17/mp3-player-and-online-radio/

There are two free plugins mp3player and mp3hotspots (swf and fla so you can create your own design of player) and some explanation and examples.

limpid
11-25-2008, 10:52 AM
Thank you for yours fast reply!!

I have try the mp3player and it's work very good ... it' exactly what I needed to control sound!

But now I have an other problem : I want to hide the mp3player want it plays silence.mp3 ... And render it visible when it plays some other sounds and place it in the pano with the parametre: static="1" alignX="100" alignY ="100"
how to make that?
<global
external.mp3player.static="1"
external.mp3player.staticX="100"
external.mp3player.staticY="100"
external.mp3player.visible="0"
>
but the mp3player keep always the position Bottom Left and visible...

do you have a solution ?
thanks

// Tuddy: you say that "One swf file output" with the flashificator
does it mind that there is no xml files in the folder, and the sources images are compiled ??? (sorry if my question is stupid:()

D@m's [Limpid]

Trausti Hraunfjord
11-25-2008, 03:14 PM
One swf file output means that all the files and folders (xml, hotspot images, mp3's, videos, visual files etc) would be contained inside a single swf file. This has NOT been achieved yet, but is in the works. If things go well for the developing partner, there should be a definite result in 3 weeks or so.

panomaster
11-25-2008, 03:20 PM
There is a lot of ways to embed audio tracks in panoramas and everyone has its own way to do that. Mp3player by Denis is simple, lightweight and suports audio streaming, but there is (almost) no way to control visibility and positioning the player.

If you want to do this, you can try to use another player - JW FLV Media Player (recommended version < 4 - there are some problems with newer versions). It is very simple to use and easy to control.

Here you can watch how it works:
www.zdjecia-panoramiczne.pl/vt/mp3player
www.cheathamlane.net/clients/SFCM/flash/index.html

limpid
11-25-2008, 04:09 PM
Ok tuddy, it's really a very good thing, I think it will be easy to convice my boss to buy the flashificator when it will be complete!

Panomaster:
Ok I will try to use JW FLV for my pano...

But it's very dommage that we can't controle the mp3player easily.
In the mp3player.fla, is it possible to declare variables of visiblity, staticX and staticY that we could declare in the xml like the parameter of file/volume/repeat ???

I don't know if is it possible? and how make that...
If anyone can me explain...?


D@m's [Limpid]

panomaster
11-25-2008, 04:25 PM
You can do this with JW FLV Player so forget about mp3player. JW is free to use (noncommercial usage). You can visit www.jeroenwijering.com for more information.

JW can be used as any other hotspot:

<spot id="sound" static="1" align="LB" sAlign="LB" staticX="10" staticY="-30" url="files/mp3player.swf?width=200&height=20&volume=100&autostart=true&repeat=true&file=audio/street_distant.mp3" />

You can use 'linked' attribute to assign sound to the specific panorama or change attribute url dynamically (sound.url=....)

limpid
11-26-2008, 07:52 AM
Hi,

I have try to use the JWFLVPLAYER (with the version 4.2 and 3.14)
but it's didn't work for me...

I didn't see anything when I try :

<?xml version="1.0"?>
<panorama>

<parameters>
panoName = files/evian
qualityMotion=low
qualityStatic=high
zoomMin=0.6
zoomMax=2
loaderTextColor=#FFFFFF
loaderBackColor=#5C5C5C
layer_2 = files/hotspots.swf
</parameters>

<hotspots>
<global
FXbtnOver="glow=3; glowColor=#ffffff; glowAlpha=0.8; glowBlur=20; glowQuality=5"
FXbtnOut="glow=0"
>

<spot id="sound" static="1" url="files/mp3player.swf?width=200&height=20&volume=100&autostart=true&repeat=true&file=files/son01.mp3;"
/>

</global>
</hotspots>

</panorama>

And if I try this :
<spot id="sound" static="1" url="files/mp3player.swf"/>

I have just a black screen on the bottom right of my pano...

I don't know why it doesn't work??
maybe cause to the AS2 code of the mp3player...?

(I work with the version2.2 of FPP)


Thanks

D@m's [Limpid]

panomaster
11-26-2008, 09:13 AM
You can download working version (3.11) from http://www.zdjecia-panoramiczne.pl/vt/mp3player/files/mp3player.zip

limpid
11-26-2008, 09:48 AM
It's the same problem... it didn't work ...

Do you declare the mp3player in the parameters ??
I must place the mp3 files in a audio folder...?

thanks

D@m's [Limpid]