Why doesn’t Firefox support the MP3 file format in

Update October 2012: Wooohooo! Brendan Eich just announced on his blog that work for MP3 and H264 support in Firefox is underway. You can track the work on BugZilla: Support H.264/AAC/MP3 video/audio playback on desktop Firefox Update February 2013: After much heavy lifting from Firefox developer Chris Pearce, this patch flips the switch to enable … Read more

Play audio from a stream using C#

Edit: Answer updated to reflect changes in recent versions of NAudio It’s possible using the NAudio open source .NET audio library I have written. It looks for an ACM codec on your PC to do the conversion. The Mp3FileReader supplied with NAudio currently expects to be able to reposition within the source stream (it builds … Read more

Crop MP3 to first 30 seconds

I also recommend ffmpeg, but the command line suggested by John Boker has an unintended side effect: it re-encodes the file to the default bitrate (which is 64 kb/s in the version I have here at least). This might give your customers a false impression of the quality of your sound files, and it also … Read more

Playing .mp3 and .wav in Java?

Java FX has Media and MediaPlayer classes which will play mp3 files. Example code: String bip = “bip.mp3”; Media hit = new Media(new File(bip).toURI().toString()); MediaPlayer mediaPlayer = new MediaPlayer(hit); mediaPlayer.play(); You will need the following import statements: import java.io.File; import javafx.scene.media.Media; import javafx.scene.media.MediaPlayer;