Playing mp3s with java

Does anyone know how to do this? I can only make java play windows default sounds (chime etc).
Cheers
ARB

Hey PhHein,
what brings you back to the JDC(or SDC as its now known)? I havn't seen you leave the "Discuss the JDC Website" forum, since the Water Cooler fell.

Similar Messages

  • Playing MP3 through JAVA in MAC OS.

    Hi,
    Is there any way to play MP3 files in MAC OS Using JAVA other than the Quick Time Player?.
    Regards,
    Uvaraj S

    uvaraj.S wrote:
    Is there any way to play MP3 files in MAC OS Using JAVA other than the Quick Time Player?.Of course there is. You can always just handle the MP3 decoding yourself and play it as a WAV file...
    Not sure if the MP3 plugin for JMF / JavaSound works for MAC, but you could try it...
    [http://www.oracle.com/technetwork/java/javase/download-137625.html]
    With that installed, you should be able to just play an MP3 file as you would any other file...
    [http://www.jsresources.org/examples/]

  • Can't play mp3 with sonata?

    Hi,
    Just installed Sonata om ny new fresh Arch installation.
    Alsa is configured and I can play the sound test aplay ....wav files...
    But now when im in X I started sonata and I cant ge the application to play my mp3 files?
    I can't even see them?
    And if I browse with Thunar and try run a file using sonata nothing happends...
    So how do I get sonata so show my files, I need a guideanse of that application, and second do one have to config anymore to play mp3 in x?

    Sonata is a python-based interface to MPD. Either install and setup MPD(Music Player Daemon), or use another player(Totem?)
    EDIT: Have fun learning how to use Archlinux, you already learned one thing! Don't give up now.
    ~Sander
    Last edited by Sander Hoksbergen (2009-01-22 20:53:32)

  • Ticking sound when playing MP3s with Realplayer on...

    When I transfer MP3 music onto my phone and play it with realplayer, there is a ticking sound about every three seconds. It is farely quiet but gets to be annoying. It makes no differance if I use headphones or not. I was wondering if there is a way to correct this problem.

    i wish it were that simple (mute button)
    Everyone I work with is having the same problem, presently Apple's Music Match is not working.
    I certainly hope they will be able to fix this as soon as possible.

  • Play movie with java

    Hey,
    Im searching for a way to play a movie with java (without using JMF or javafx, these are media players only?),
    I want to play a movie in my app. how do i do this?

    I don't know, but JMF is not as inflexible as you imagine it to be. Why not ask in the forum dedicated to JMF?
    [http://forums.sun.com/forum.jspa?forumID=28]

  • Playing mp3s with out installing softw

    I would like to play mp3s at work. Unfortunately, I can't install any software on the work's computer. Is there any way of accessing the music files without installing any software? I know I could put them on the removable disc portion, but that would mean duplicating everything and take up unnessessary space, so if I could avoid doing that, all the better.

    If you can install drivers then yes you could access your songs without installing any of the Creative software. Just plug it in and it should automatically install the necessary drivers. Then you can browse your songs in Windows Explorer. Sometimes though, those drivers are blocked from being installed, so your other option is to use the removable disk option and just transfer songs onto there.

  • Playing MP3s with out a desktop environment

    Can anyone recommend a good command line program for playing MP3s?  I am looking for a simple program that will run in the background, in which I tell it the directory where my music is saved, and it then randomly plays the music.  It would also be nice to be able to query the song information every once in a while.
    Thank you

    Ramses de Norre wrote:
    peets wrote:Usually I use mpd, but its downside is that you have to import the files into its database to be able to play them.
    Support for playing files outside the db is in the roadmap, they don't say anything about a completion date or version though.
    Better yet, there is a mpd-updater daemon that uses inotify to automatically update your database on file changes. It still needs a little finessing (for example, I believe it updates your entire db on a file change when all it needs to do is update the single file), but it works fine. I hope it will eventually make it into mpd, but I've bugged mpd devs about it a few times and haven't made much progress.
    https://svn.musicpd.org/mpd-updater/

  • Playing MP3s in java

    I am making a simple media player in java, using Borlands latest JBuilder. I have downloaded JMF, but have been unable to get it to work in any way whatsoever, I have tried setting the classpath and everything, but i beleive i am going about it the wrong way complety (change the enviroment var., right? just add what the documentation says to the end of what is already there, correct?) but beyond that, i cant get anything besides a .wav to play. I am wondering if anyone knows of a way to convert an mp3 on the fly during runtime, and etc. I have been on javazoom, but the download they give you is just an abstract class, doenst give you definitions on what each method does. thanks for any help

    If you can get wav files to play, it's working, I would think...
    I think I read somewhere that MP3 support was dropped from JMF due to some licensing issue with whoever made the MP3 codec they were using.
    Look here...
    http://www.javazoom.net/javalayer/javalayer.html

  • Playing around with java

    Im fairly new to the whole programing thing, and for starters, i was thinking of using java to create a calculator that uses fractions. How would i go about doing this.
    So far, i have managed to create one that uses integers, but i seem to draw a blank with fractions.
    Any ideas anyone.

    Unless I've missed something significant, Java doesn't have built-in support for fractions. Actually offhand I can't think of ANY language that has built-in support for a fractional number type. (I'm not counting floating points; let's not get into a semantic argument...)
    So, assuming you really do mean fractions (numbers expressed as a ratio of two integers) and not just any number system that allows values between integers, you'd have to build support for that. This is a non-trivial task; one really interesting part is dealing with the fact that two fractions can be numerically equal but have different representations (e.g., 3/4 and 9/12). I'd suggest writing this code completely separately from the calculator or any user interface. Write test code to run it. Remember to deal with stuff like greatest common denominator calculations, etc. Then go back and add your code to your calculator program when you're done.
    If you really do just mean a number system that can represent values between consecutive integers, then take a look at java.math.BigDecimal.

  • Can't play mp3 with N95 music player...

    Hi, I've got Nokia N95 and when I copy my mp3 songs from pc I cant listen them in music player and I can find that songs just when I changing my ringtone... but when I get mp3 via bluetooth then I can listen in music player also I can listen song if it a .dcf file... Maybe someone can tell me where is the problem and how can I solve it?

    Thanks man I got this phone just for few days first time Nokia like that now I'm feel so stupid

  • Need Help Mp3 with jmf?

    Can somebody write a few lines of code that i can play an *.mp3 file with the jmf (with an application). I visited the Jmf HP but i can't find some examples about this problem.
    Please help me rapidly
    Thank you
    Thomas R.

    It's been a while, but I think I still remember:
    To play any media with the JMF you must obtain a Player object for the file containing the media. This is done by invoking the static createPlayer method of the Manager class. The only import you should need is javax.media.*;
    example:
    File f = new File("myMP3File.mp3");
    Player p = Manager.createPlayer(f);This will return to you a Player object, which has start and stop methods to start and stop playing the media, obviously.
    The JMF is pretty limited w.r.t. mp3 playback unless you delve deep into the API, and get the GUI component for the player, but I can't remember the code for doing that, and anyway, playing mp3s with the JMF is pretty poor at the moment, because it is so slow to start the songs. Who knows, maybe when computers get fast enough, java may actually perform reasonably in this area.
    Hope this helps.

  • Hi. I use Adobe Acrobat XI pro to make a PDF ebook embedded with audio. It works really well on my computer-I can read the book and hear the auto play mp3. The problem is, when I send it to my customers, they have difficulty hearing the audio. A few of th

    Hi. I use Adobe Acrobat XI pro to make a PDF ebook embedded with audio. It works really well on my computer-I can read the book and hear the auto play mp3. The problem is, when I send it to my customers, they have difficulty hearing the audio. A few of them say they have Flash player on their PC and somehow they still can't hear, some say their Google Chrome browser tells them they've already got one flash player while they try to download one. For me, I had to download two versions of Flash player to be able to access to the audio. I don't know what the problem is, is it because it's the latest version of Adobe Acrobat XI pro that people with older version of Adobe reader or flash player can't open it properly? Or is it something else? How can I make sure every customer with different system can access to my books? Hope to hear from you ASAP! Thank you very much.

    And how are the customers accessing the PDFs?
    What devices are they using?
    What program or apps with versions are they using?
    I this age of other then PDF eBooks formats and reader program and apss for computers and mobile devices for these formats I would look at creating the books in one or more of the eBook formats.
    Google Chrome and FireFox both have their own version of a PDF reader plug-in and they are well known to be less capable than Adobe Reader. It is possible to configure these products to use Adobe Reader.

  • Java playing havoc with permissions in Snow Leopard

    My wife has a 24" iMac, 2.16GHz Intel Core 2 Duo running Snow Leopard 10.6.8 with 4GB RAM. She likes to play games offered on Facebook. Her favorite browser is Firefox. But, playing these Facebook games plays havoc with the permissions on her machine. The machine slows way down and the mouse does not respond well. Using Onyx I repair the permissions, which takes about 5 minutes. Most of the repairs are being made to System/Library/Java and System/Library/CoreServices and other files within the System folder, especially those with a .jar extension. The list of repairs is exceptionally long. Then I fix the permissions using Disk Utility. Again, the same type of permissions are being fixed, the list is very long and it takes about 5 minutes. The iMac runs fine after fixing the permissions -- until the next time she logs on and plays a game. I have disabled Java on both Firefox and Safari; that doesn't seem to make any difference. Any suggestions as to what I can do to stop this problem? It's very frustrating for my wife because her machine slows down so much and her mouse doesn't work. It's frustrating for me because every time she logs off of Firefox and her games, I have to fix her machine!

    These are currently mine, which are endlessly repeated. They are NOT errors, it's that Apple didn't bother to update the Permissions database along with Java updates. As long as you get the message at the end "Permissions repair complete," everything is fine. You are wasting your time doing Permissions repair. The problem has nothing to do with Permissions.
    Instead, when this occurs, open Activity Monitor in Utilities. Check to see which processes or applications, if any, are hogging the CPU. Those games may be using huge amounts of Flash (through Firefox) not Java. (If you have disabled Java, then, obviously, those games aren't running through that.) And your RAM and CPU may not be up to the task.Then switch to the Memory tab and see how much Free and Inactive there are. Also, what are the numbers for Page Ins, Page Outs, and Swap used? Also check to see how much Real Memory Firefox is using during one of these episodes.
    Which Firefox are you running?
    Message was edited by: WZZZ

  • Please help with ability to play Mp3 Email attachments

    I am new to the iPhone (as most of us are) and one of the key services I have with my previous Windows Mobile phone was that I would receive voice mails left on our corporate messaging service via email to my cell phone.
    I would get an e-mail with a caller ID on it and an mp3 file which was the audio message I could play.
    In my office when one of these emails comes in to my PC, I click to play the mp3 file and my itunes opens and the message plays - however, when the message comes to my iPhone, the attachment shows up, but is greyed out and NOT playable.
    Since Apple prides itself on being a "MultiMedia, digital" type of company, I sincerely hope that this oversight can be resolved quickly via a firmware upgrade.
    I tunes can of course play mp3 files, so I would think this should be a relatively easy issue to resolve.
    How about it Apple - can this get on your list of updates???
    Thank you,
    Steve Ganz

    Hello Steve.
    How about it Apple - can this get on your list of updates???
    This is a user to user help forum only for technical support issues that is provided and moderated by Apple and although some Apple employees participate here and certainly some Apple employees peruse the discussions from time to time, for the most part you are not directing anything to Apple here.
    Best to use the Feedback link for this purpose.
    http://www.apple.com/feedback/iphone.html

  • Playing LOCAL video with Java FX

    Hello,
    I'm trying to make a media player with Java FX.
    I have downloaded the next example (BasicMoviePlayer)
    [http://jfxtras.org/portal/pro-javafx-platform/-/asset_publisher/1Bl5/content/16700?redirect=%2Fportal%2Fpro-javafx-platform|http://jfxtras.org/portal/pro-javafx-platform/-/asset_publisher/1Bl5/content/16700?redirect=%2Fportal%2Fpro-javafx-platform]
    and now I want to play a local video.
    Anybody knows how to do this?
    Thank you very much!

    For example:
    import javafx.stage.*;
    import javafx.scene.*;
    import javafx.scene.media.*;
    var source = "C:/Movie/big-buck-bunny-640x360.flv";
    Stage {
        title: "Simple Video Player"
        scene: Scene {
            width: 640
            height: 360
            content: [
                MediaView {
                    preserveRatio: true
                    mediaPlayer: MediaPlayer {
                        autoPlay: true
                        media: Media {
                            source: source
    }

Maybe you are looking for