Looking for software experts?
Need an expert advice on software development? Need consulting work done in time and at high standards? Tremend has the right solution for you.

We can provide expertise in:
  •    » high traffic and complex content website infrastructures using Java, PHP or .NET. More here ...
  •    » mobile applications for iPhone, Android or J2ME. More here ...

For an enquiry, send an email to contact [at] tremend [dot] ro.

Javascript mp3 player

February 12th, 2010 by Marius Hanganu in General, HTML, Javascript
flash javascript mp3 player

flash javascript mp3 player

Seems impossible, right? Well, it is :-). The title is a bit misleading. You can’t play mp3 in javascript. Not yet at least. Not without a flash object behind the scenes.

But when it comes to searching a flash mp3 player that has also a customizable skin and javascript integration you won’t have so much luck. The players that allow flash – javascript communication are not skinnable, and the ones that are skinnable, don’t allow communication with javascript.

So after a bit of hacking here’s the final result: http://blog.tremend.ro/wp-content/uploads/2010/02/flash-javascript-mp3-player/test.html

The script is based on this excellent flash mp3 player which involves a hidden flash mp3 player. The main headache is actually not the UI which uses a simple scriptaculous effect for scrolling (just drag and drop the cursor to see it working), but actually making sure the commands from javascript to the flash player work on all browsers.

Another bonus feature added is the ability to jump to different sections of the audio file. The sections are described in a javascript configuration object. An UI for this feature can be easily built using your favorite UI framework.

DZoneGoogle ReaderYahoo MessengerRedditEmailDelicious

Related posts

  • Javascript advanced tutorial
    I prepared a quick Javascript tutorial during the weekend and presented it to my colleagues in Tremend. You can view it better here. Although there are entire presentations or documents dedicated to what...
  • FRF competition management
    As part of an effort to meet UEFA guidelines in footbal competition management, the Romanian FA started an initiative to have a full featured management solution. Initially built in Java (Hibernate/Spring)...
  • Dynamically embed youtube videos on IE6 using innerHTML
    I got this annoying problem today: when trying to automatically populate a DIV with embed code from youtube, nothing happened on IE6. IE7 and FF work fine. Some googling and I found this good resource...
  • Software consulting services from Tremend
    Need an expert advice regarding software development? Need consulting work done in time and at high standards? Tremend has the right solution for you. We can provide expertise in: - high traffic and...
  • Link flash to html page
    This is a small one, but I banged my head several times now before fixing it. Although many have written about it, I decided to write also. More resources are always better than fewer resources :-)So you've...
.

2 Responses

  1. SaaS Says:

    This is a great find, thanks for the link. I have been looking for this it will be a great help.

  2. Piexelflo Says:

    I swear I’ve seen a javascript only sound player. I think it is called soundman or something.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.