Mp3 player and online radio

New open source mp3player plugin.

mp3 player example

mp3player.swf, mp3player.fla (source).

Usage

<mp3player> file=files/mySong.mp3 volume=1 repeat=1000 </mp3player>
(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):

<mp3player> file=http://8331.str.ovh.net:8331/tracemq.mp3 </mp3player>
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 XML blocks if you are using separate XML files or you can control the playing file directly using Hotspots script: external.mp3player.file=music/newFile.mp3

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).

Mp3 Hotspots

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.

17 Comments so far

  1. The MP3 hotspot is pretty neat!
    Who’s the guy in the mirror, taking the pano? ;)

  2. I have no words. Excellent. Beautifull nature example. After two years of working in this bussiness, learning to work with several SW and spending money for it I am for first time satsfied - FPP is really very nice piece of SW. Thanks Denis for Your work!

  3. [...] post by Denis V. Chumakov and software by Elliott [...]

  4. The best flash panorama software just got another great addition!!! Very well done Denis!

  5. Fantastic. This was just what I needed . Now I only need to find out how I connect the mp3hotspot.swf to my toolbar sound control.
    I need to be able to globally control sound with on/off

    Hans

  6. Woow that’s great news
    Now I have to learn how to use it :-) Thanks Denis and
    thanks Hans for pointing it

    AYRTON

  7. Hi!

    Is there a way to place the mp3player elsewhere in the pano? Or to move it dynamically ?

    Thx.

  8. please
    i want to put number of your swf eg. 1.swf & 2.swf & 3.swf & 4.swf into 1 folder
    to play the adherent 1.mp3 & 2.mp3 & 3.mp3 & 4.mp3 without html and without control bar(blank swf)
    and if i can play the mp3 from 4:07 to 5:08 (this time for examble)
    i hope you help me
    thanx in advance

  9. Very informative post. And in general, I Wash constant reader! Very interesting to read you! Mentally thank you!

  10. Hi!

    I’m trying to use a mp3 hotspot with the linked property. When starts the right pano, it don’t must play de sound since i turn 180 degrees, but it plays a very pest noise. Any idea?

    Excuse my english.
    Thanks.

  11. Hi all,
    Is it possible to put an icon to mute the sound of the hotspots. I use the mp3hotspot.swf and i want to keep it, but it would be great to ad a button to put the sound on or to put the sound off. Do you know, how to do?
    Tks a lot!

  12. why is there a frog and water on the top of the pano? is seems that the sound hotspots are placed twice. at tilt,pan and 180° on the other side.

  13. of reliastar life company insurance life insurance reliastar company rating

  14. The information is very useful, thanks a lot!

  15. Just a question a little bit out of this topic.

    Denis i see that your panoramas, when we open them different times, are taken from the cache and not re-download each times.
    Perhaps a stupid question from a stupid newbie, but by the way I ask it : How do you do?

    Thanks by advance and for everything you do for us,

    David

  16. Great Article! Thank you very much for posted this…

  17. It is wonderful, this makes mp3 players more powerful then ever.

    thanks for the great job

    wapadar

Have your say

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URIs must be fully qualified (eg: http://www.domainname.com) and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.