PDA

View Full Version : Another mp3 sound solution


BillWard
06-05-2008, 08:10 PM
I just thought I would pass on an mp3 solution I came up with.

Using Dewplayer http://www.alsacreations.fr/dewplayer

Load it like:
<spot id="music_1" url="dewplayer.swf?mp3=music/johnstone_pipe_band.mp3&amp;autoplay=1" static="1" staticX="10.00" staticY="10.00" align="LT" alpha="1" salign="LT" depth="2" linked="panos/scotpipe_9" scaleX="1" scaleY="1" />

In a multiple pano tour, a pano in the tour with no sound has
<!-- Sound Killer --><spot id="audio_kill_6" url="dewplayer.swf?mp3=music/silence.mp3&amp;autoplay=1" onLoad="alpha=1" static="1" staticX="10.00" staticY="-100.00" align="LT" alpha="1" salign="LT" depth="2" linked="panos/scotpipe_10" scaleX="1" scaleY="1" />

The file silence.mp3 above is small amount of silent sound (2kb), and is placed off the top of the pano so the player is not visible. Because it loads, the sound from the previous pano is stopped, otherwise the previous sound will continue even if the "linked" parameter is used.

This mp3 player has play/pause/stop buttons, and a progress indicator, and is configurable to autostart, loop, and play sequential mp3 list. It also functions ok when go to fullscreen.

The "Sound Killer" step above seems to work but would be nice to have a mp3 player that just stops when the pano is unloaded.

My page
http://billward.eu/pages_pipes/pipes_start.html

Bill

cheathamlane
06-06-2008, 03:39 PM
Cool Bill! The graphics for the dewplayer are nice and simple. I also like the bekilted buttons. :)

Those wanting ambient sound and/or looping audio might also check out Rick's free plugin for FPP which is nifty.

http://flashpanos.com/plugins/patrick/ambient-sound-playeraudio-mixer-plugin-flash-panorama-player