Mp3 player and online radio
New open source mp3player plugin.
(file defines the path to mp3 file, volume sets the initial volume level, repeat sets the number of repetitions)
You can use online radio stream instead of static mp3 file (I used TRACE.FM radio in example above):
You can find more radios here, for example: http://dir.xiph.org/. Note, not all radios is OK for Flash, it supports only mp3 streams (doesn’t support ogg vorbis streams), and some shoutcast servers ignores Flash movies because of unexpected http header (it can be fixed by shoutcast server’s configuration changing).
Internet radio has one advantage: you will listen new music every time you take a look on the panorama.
As I told already, you can use any Flash mp3 player to run together with Flash Panorama Player. This specific solution is better only if you need to control the music concurrently with panorama images. You can send new info to the player the same as for other plugins: use
If you are good enough in Actionscript programming you can use this source as a base to create more powerful mp3 player (with track selection, with id3 tags support and so on).
mp3hotspot.swf, mp3hotspot.fla (source).
There is a variation of mp3player plugin. It has no interface, but you can load it to any hotspot. You can create a panorama with several sounds on the scene and you can use sound panning with it, for example:
<spot id="frog" url="files22/mp3hotspot.swf" file="images/frog.mp3" repeat="1000" pan="0" tilt="-70" enableSoundPannig="1" soundRadius="100" />
Note: you can send parameters using spot attributes. Another way is to place them to query string: url=”files22/mp3Hotspot.swf?file=images/frog.mp3&repeat=1000&volume=0.5″. The first way is preferred so it works both online and offline.
This is another example. I placed several sounds around the scene and the sound is changing against the panorama position. A little fun.
Mp3 hotspot handles loading/unloading of hotspots correctly; you can use it together with linked/unlinked properties without a problem.
One more notice about the difference between mp3hotspot and mp3player. Mp3hotspot is a special type of FPP’s plugins, I’m calling it “smart hotspot”, it works only inside Hotspots plugins as a hotspot (flvPlayer.swf and lensFlare.swf are smart hotspots as will). It has one advantage with sound panning support. Mp3Player in constrain to mp3hotspot is a full-blown FPP’s plugin, it can work without loaded Hotspots, it can handle its own XML blocks. Use mp3player or mp3hotspot plugin subject to your idea.
This entry was posted on Saturday, November 17th, 2007 at 1:27 pm and is filed under Flash Panorama Player. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.