Mp3 support in Java

I want to write a decent multi-media player in Java so I can run it on both Linux and Windows. As of yet however, I have not come across any support in Java for the mp3 format. It supports .au and .wav files, but I have yet to see mp3 support. Does anyone have any experience of working with mp3's in Java? I'd appreciate greatly any help.

Hi,
type "JMF" in the search field and search for it - its the Java Media Framework, a kind of add-on you can use for that.A Media player is provided too by JMF as example application. Have fun ...
greetings Marsian

Similar Messages

  • MP3 support for applets

    Dear gurus of the forum,
    I am a computer science student planning to create a website and considering the use of applets on it. On my previous website I used [Sound Manager 2|http://www.schillmania.com/projects/soundmanager2/] to play MP3 sounds. SM2 is a tiny flash program and has been a breeze to use. However, if I am to build decent applets, I'd prefer to somehow use MP3 support in Java, so users won't be required to have both Java and Flash installed.
    I am a very basic Java programmer, but I know enough to get me started. However, thus far I have only been able to discover that Java supports .au sounds and more recently .wav and .aiff (which doesn't ring a bell). I have also found some MP3 player applets. However, the various old and new resources confuse me greatly on this subject.
    My question is rather simple:
    Is there any lightweight option to add basic support to play MP3 files in an applet? I do not need a player with buttons and whatnot, just classes with methods to use in my applet.
    I can only hope someone here may be able to help me out here or send me in the right direction.
    Thanks in advance,
    Dysprosium

    Hi Andrew,
    no wonder you have 5,7?? posts.... you're just posting all day ha.... I wonder how many of those posts were actually useful,
    anyways, I think that your place is somewhere in English Grammar forums or so 'cause that's all you know about...
    There is no mention of that on the linked page. Can you produce a link that supports that statement?instead of wandering around, just do something really simple like googling android java platform, and RTFM from there on...
    No. You think that.yes, I think, and as you can see in this reply I have some more thoughts about you !
    .. then WHY DOESN'T ORACLE DO ANYTHING ABOUT IT ????? 1) There is no need to SHOUT at us.
    2) One '?' denotes a question, whereas 2 or more typically denotes a bozo.
    yes well, I've already said that you're great at gammar issues, way to go.
    >
    So maybe it is because Sun ignores shouting bozos. More likely it is because Sun staff do not trawl the forums looking for problems. That is what the [Bug Database|http://bugs.sun.com/] is for.
    that's the first (and last) valuable information I got from you, you could have just replied with these two lines, or even make it shorter and just redirect me to the link, save electronic space, you're wasting it as if it was yours.
    AFAIU neither Flash nor Java will be supported on iPad, so there is a new source of worry for you.who talks about iPad, dude, start getting into shape with your reading comprehension, though your grammar level is great ! Oh, and You need to start worrying my friend, you might know Java but start working on your English skills quickly...
    I'm talking about Google's Android, Apple's Iphone, Windows Mobile and Nokia's Symbian.
    oh, and don't bother increasing you post number by replying to this one with some more useless info.
    thanks a lot

  • Unicode support in java.io.File.listFiles()

    I am trying to list all the files in a given directory using the File.listFiles() method, yet for some reason the File objects returned have invalid paths when a file has unicode characters in its filename.
    example .. a test directory has these files
    tiga-dj_kicks.mp3
    tr\374by_trio-elevator_music.mp3
    if i call dir.listFiles() i will get ...
    tiga-dj_kicks.mp3
    tr?by_trio-elevator_music.mp3
    why is java converting my unicode into "?"s?
    i have seen other java apps that don't have this problem ... does anyone know why this is happening?
    in terms of my system ... i am on linux 2.4.20 in the US and i have tried may jdk versions including 1.3.1 and the latest 1.4.2 as well as blackdown 1.4.1

    It's true that System.out may not like unicode characters, so I instead I have been using a JTextArea and I know that supports my unicode.
    **eek ... after a preview it seems that my unicode isn't going to show up here either :( i'll wrap brackets around what was actually displayed as unicode in my environment.
    here is another test I have run ... println(String) just appends to the text area
    String original = new String("A" + "\u00ea" + "\u00f1" +
                   "\u00fc" + "C");
    println(original);
    File f = new File(original);
    println(f.getPath());
    f.createNewFile();
    String[] files = new File(System.getProperty("user.dir")).list();
    for(int i=0; i < files.length; i++)
    println(files);
    Output ...
    [[A???C]]
    [[home/ag92114/workspace/test/unicode-test/A???C]]
    Test.java
    Test.java~
    Test.class
    A???C
    As you can see ... the text area correctly displayed the unicode for the String and File objects that I constructed myself, but when I list back the file I just created then my unicode is lost.
    listing the directory on the shell yields ...
    [ag@home:~/workspace/test/unicode-test ] ls
    ./ ../ A???C Test.class Test.java Test.java~
    So possibly the file is not even written to the native filesystem with the unicode??
    Finally I tried opening xemacs and touching a file with a unicode filename and it works fine and displays in the shell just fine, yet when I list the dir contents in java then the unicode is lost. I touched the file [[A?]] using xemacs.
    shell view ...
    [ag@home:~/workspace/test/unicode-test ] ls
    ./ A???C Test.class Test.java~
    ../ [[A?]] Test.java
    java lists files as ...
    Test.java
    Test.java~
    Test.class
    A???C
    A?
    normally this is where I would concede that java just isn't capable of handling unicode in the filesystem, but I know that isn't true because I have tried other applications (jEdit, limewire) that both seem capable of listing and displaying directories and files that contain unicode. i just wish i knew how they were doing it.

  • Open type font "Myriad Pro" support in Java AWT

    Hi
    I have installed open type font "Myriad Pro" on my machine.
    When I use the following AWT APIs on jre 1.6, I dont get the open type font "Myriad Pro" in the font list.
    Code snippet
    java.awt.GraphicsEnvironment     ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    if (ge != null) {
         java.awt.Font[] fontList = ge.getAllFonts();
    The fontList variable doesnt have "Myriad Pro" font.
    My question is
    1) Is the open type font "Myriad Pro" supported by java AWT?
    2) Is there a workaround to get that particular font?
    Thanks
    Vikas

    When I print out the list of all the fonts java recognizes on my machine, all the otf fonts (about 70 of them) are missing including Myriad Pro. All the true type fonts show up. You might need to convert the Myriad Pro into a true type font to get it recognized in java.

  • Charset support in Java

    Hi all,
    We are having a problem with the charset support in Java. We are attempting to decode strings using codepage 037. The call,
    String s = "mystring";
    byte[] iArray = s.getBytes("037");runs fine on some machines and not on others. All the machines are using version 1.4.2_01 and are a mix of Win 2000 and NT. I am guessing that there is an issue with the character encoding sets installed by Java but how do we add new charsets??
    We're seriously stumped on this one. We've tried installing United States English on the machines as well as our locale Irish English through the Regional settings in Control Panel but to no avail.
    Hope someone can help,
    Thanks,
    Phillip

    Hi,
    the most obvious problem to start with, is that getBytes() does not use codepages. It uses encoding schemes.
    Check out http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html
    for a list of supported schemes.
    So you should have been seeing "UnsupportedEncodingScheme" exceptions
    on every machine you tried to execute s.getBytes("037");
    After that, ensure every machine has the "international version" of the JRE installed. ie. in the JRE's lib directory you should see charsets.jar
    regards,
    Owen

  • OOPs support in Java

    how oops principles are supported in java ??

    Here's a good example:
    if(myString == "wrong"){......}
    oops
    I meant
    if(myString.equals("right")){......}
    Oops is a vital component of Java, as you can seeBut that OOPS is so manual. Just wait until the predictive adaptive OOPS JIT JVMs. So that you're code can have if(myString == "wrong"){......}, but the JVM sees if(myString.equals("right")){......} Now THAT's OOPS support!
    Come to think of it, discussions with SO's have this characteristic. Although it usually goes the other way: myString == "right" --> myString == "wrong" ;)
    Regards,
    Nathan

  • Queries on Mac OS X support for Java 1.3

    Hi All
    I am having some trouble figuring out how to make Swing based Applets
    work on Mac OS X. Can anybody help me ?
    Queries on Mac OS X support for Java 1.3
    1) Will a Java Applet compiled using Java 1.3 run on "Mac OS X" without the need for a Plugin.? This includes Applets using Swing since we compiled using 1.3.
    2) I tried to run some Java 1.3 applets compiled using 1.3.1-04.
    Unfortunately, the Applets wouldn't run.
    Is there some setting in Mac OS X that i need to change or modify for the Applet to work ?
    3) When i open a Terminal in Mac OS X and type Java -version, i get
    "------ Java 1.3---------".
    This implies that Mac OS X supports the Java 1.3 SDK. Does it imply that it supports the runtime as well since this is usually the case ?.
    If it supports the runtime, then does this inculde support for Swing.
    Finally, as i enquired in '(1)' does this mean that i do not need any plugin(MRJ) to make Swing based applets work.
    Thanks and regards
    Prashanth

    What I am seeing is that Java is throwing a security error when file io is initiated by an external call from Javascript to a file on the server that java should have access to. Here is the error.
    <<< ProxyClassLoader: defined LiveConnectProxy class. >>>
    <<< Here're the permissions you've got: >>>
    <<< java.security.Permissions@157402b (
    (java.net.SocketPermission www.dhba.com connect,accept,resolve)
    >>>
    VirtualLab.loadProblemSpecification: properties file=assignments/Walkthough.xml
    http://www.dhba.com/wested/applet/assignments/Walkthough.xml not retrieved
    java.security.AccessControlException: access denied (java.io.FilePermission assignments/Walkthough.xml read)
    My system:
    Mac OSX10.6.4 with Firefox3.6.12 (Java Plug-in 1.6.0_22 Using JRE version 1.6.0_22-b04-307-10M3261 Java HotSpot(TM) Client VM)

  • MQSeries 5.2 still support old Java API 1.1.8 ?

    We are using MQseries 5.1 and java 1.1.8. now we are upgrading to MQseries 5.2, do we need java 1.2 or 1.3.
    does the MQSeries 5.2 still support old Java API 1.1.8 ?
    thanks
    Rupinder

    Not according to the documentation which says MQSeries 5.2 has a dependency on JDK1.2.2 or later.
    Having said that, I have managed to get some JMS functions to work under JDK1.1.8.
    I have had a problem when using JMS to GET a message from our mainframe QMgr but not from our Unix QMgr. This runs ok when using JDK1.2.2,
    Regards
    Chris

  • Version of Unicode supported by Java 1.3.1 and 1.4

    Does anyone know exactly which versions of Unicode are supported and NOT supported by Java 1.3.1 and 1.4? My understanding is that v2 and v3.00 are supported in 1.3.1, but not sure about v1.x. Java 1.4.0 supports v3.0x (not 3.1), but what about Unicode v2.x or v1.x? Is there a list somewhere?

    J2RE 1.3.1 provides Unicode 2.1 support. J2RE 1.4 now supports Unicode 3.0. By "support" I mean that:
    1. Unicode character properties are available.
    2. Collation and break iterators should work.
    3. Case map operations should work.
    It would be nice if Character provided an API like getUnicodeVersion(). The javadoc for Character does tell what Unicode version is supported...at least in 1.4.
    J2RE 1.4 does not support Unicode 3.1 or 3.2 because the Unicode specs were not stable at the time the J2RE 1.4 specs were solidified. The Java I18N team is committed to tracking the evolving Unicode standard. The next major release of the Java platform will most likely support the existing version of Unicode at that time.
    Regards,
    John O'Conner

  • New in Kodo 3.3.3: Improved support for Java 5 enums and generics?

    Hello,
    Can anybody tell me if Kodo 3.3.3 can be deployed on WebLogic 8.1 sp4, jdk
    1.4.1? The reason I ask this is because one of the features mentioned for
    v3.3.3 is the support for Java 5 generics, which is available on WebLogic
    9 -- but not in WebLogic 8.1 sp4. The documentation for Kodo 3.3.3 seems
    to indicate that it can be deployed on WebLogic 8.1 -- can anyone tell me
    if this is accurate?
    Thanks for your help!

    Correction:
    I think that my question may have been misunderstood. What I want to know
    is if Kodo 3.3.3 can be deployed on WebLogic 8.1sp4 which is running JDK
    1.4 or do I have to deploy on a newer version of WebLogic that is running
    Java 5?
    Thanks!
    Rita wrote:
    I think that my question may have been misunderstood. What I want to know
    is if Kodo 3.3.3 can be deployed on WebLogic 8.1sp4 which is running JDK
    1.4 or do I have to deploy on a newer version of WebLogic that is running
    Java 4?
    Thanks!
    Stephen Kim wrote:
    Rita,
    While Kodo 3.3.x can work with JDK 5, it cannot make WL work with JDK 5.
    However, Kodo 3.4 RC 3 / 4.0 EA 2 both can work with WL 9 (which works
    with JDK 5).
    Rita wrote:
    Hello,
    Can anybody tell me if Kodo 3.3.3 can be deployed on WebLogic 8.1 sp4,
    jdk
    1.4.1? The reason I ask this is because one of the features mentionedfor
    v3.3.3 is the support for Java 5 generics, which is available on WebLogic
    9 -- but not in WebLogic 8.1 sp4. The documentation for Kodo 3.3.3 seems
    to indicate that it can be deployed on WebLogic 8.1 -- can anyone tell me
    if this is accurate?
    Thanks for your help!
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Building MP3 player in Java

    How to build a MP3 player in java using Applet or other interfaces. Is it necessary to include extra classes apart from those in JDK 1.2? Please help me in constructing a MP3 player in Java.

    I forgot the URL :
    http://www.javazoom.net/javalayer/javalayer.html
    An alternative to MP3 could be OggVorbis format.
    We've just made an Ogg Vorbis SPI (Service Provider Interface) for Java based on JOrbis library.
    What is SPI ? It's the way JAVA (through JavaSound API plays sound, regardless to the format.
    In others words we've made a "Vorbis Driver" that could be plugged to ANY Java music player.
    http://www.javazoom.net/vorbisspi/vorbisspi.html

  • MP3 Support in Solaris

    Hi
    I'm starting a new project that requires MP3 support. What is the support of MP3 using JMX in Windows and Solaris with the Enhancement Pack. Can I decode it? Can I encode it?

    I'm starting a new project that requires MP3 support.
    What is the support of MP3 using JMX in Windows and
    Solaris with the Enhancement Pack. Can I decode it?
    Can I encode it?I am not entirely sure, but I have been working on some
    webstart examples of launching the Performance Pack
    versions of JM Studio(1) & JMF Registry(2).
    (1) http://www.javasaver.com/testjs/jmf/#test3
    (2) http://www.javasaver.com/testjs/jmf/#test4
    I expect (OK hope) the second can tell you what
    it supports for Solaris - particularly for the mime-types,
    e.g. for the Windows PP, it looks like this..
    http://www.javasaver.com/testjs/jmf/#mime

  • H264 and mp3 support in VLC needed ? streaming.ffmpeg

    I have found that I need to VLC (video-lan-client) with mp3 support so I used the cvs version of ffmpeg in the  AUR packages but this doesn't seem to support H264 video.
    How do I add H264 support to the PKGBUILD so I can have both. ?
    Any help greatly appreciated I can stream H264 with current version of ffmpeg but no audio
    Then with the ffmpeg-cvs no audio or video.
    This is the same if I am streaming or playing locally.
    Cliff

    You'll need to install GPAC in order to build ffmpeg with H264 support. I don't believe it compiles properly without it. I couldn't find gpac in any of the repositories or AUR so your best best would be to write a pkgbuild yourself or make a request for  someone in the AUR request forum to do it for you.

  • ALERT - Support for Java Critical Patch Update

    ALERT - Support for Java Critical Patch Update
    On October 15th, Java released a critical patch update (CPU) which will require download and upgrade to the Java Runtime Environment (JRE) release – 1.7.0_45.   If upgrading the JRE to this release, the P6 module (also known as Web Access) of the P6 EPPM product line and the Contract Management product, which utilize LiveConnect applets in the browser, will start generating one or more prompts.   To remediate these prompts for the P6 EPPM Web Access module and the Contract Management product, Oracle Primavera will be releasing fixpacks.   Until fixpacks become available, you can use the following workaround to suppress these prompts:  Select the 'Allow' Prompt or 'Yes' prompt for successful loading of applets.  Note: This prompt will occur for each applet. 
    For more information, please refer to the following KM Documents in My Oracle Support.
    For P6 (Web Access), refer to KM Document ID 1591925.1
    For Contract Management, refer to KM Document ID 1592535.1

    I found the answer to my own question. For any newbies out there, if you create an account with Oracle, that is not enough to download patches. You have to have an Oracle Customer Support Identifier associated with your account. Once you have a CSI that you obtain through your employer who has paid for support or through some other means, you then can go into My Oracle Support and enter a request to be added to the given CSI. That request goes into a pending state until the administrator of the CSI grants you privileges to download patches. (NOTE: You might have to bug someone within your organization to get this to happen.) For me, once I was given the privilege, the link worked as it should.

  • Toplink support for Java 5.0

    I tried to import java classes, compiled with jdk 5.0
    into Toplink workbench. The mapping fails.
    I tried to run the workbench with jre 5.0 but that didn't work either.
    Does anyone know how to do it and does Toplink even have a version that supports java 5.0?

    Anna,
    TopLink 10.1.3 will offer formal support for Java 5.0. Currently the runtime should work fine with Java 5.0. The only issue may be the workbench mapping process depending on the version of TopLink you are using.
    If you are using the 10.1.3 preview the workbench will still run with JDK 1.4 but should be compatible with importing and mapping classes compiled with JDK5. We will upgrade the JRE used by the workbench to JDK5 for the production release but this should not make any difference to your ability to map JDK 1.4 or 5 classes and use either at runtime.
    If you are using 9.0.4.X then the workbench will not be able to run or import JDK5 compiled classes. I believe the runtime is fine but not certified. For this environment you will need to compile the classes under JDK 1.4 and map this version of the classes. You can then use JDK5 compiled version in conjunction with the runtime.
    I hope this helps,
    Doug

Maybe you are looking for

  • Default where clause for different users

    Hi! Is it possible to implement a different where clause to the filter for when different users log into the application? Let's say I have a table DEPARTMENTS and users Mark and John. I would like the following: When Mark logs in and opens the report

  • Powerpoint Notes not showing up in Keynote

    I just got an ipad 2 and have been trying to view powerpoints on keynote. However, i cannot get the notes from the original powerpoint to show up in keynote. Any suggestions?

  • During the downloading - error Exit Code: 15

    Good evening. I have a problem. When I try to download the Illustrator, then during the downloading an error - the installation fails. Exit Code: 15 Please see specific errors below for troubleshooting. For example, ERROR: DW051 ... -----------------

  • Bridge will not display my image.

    Here is what I get when I try and view an image in Bridge. It has been working fine and then all of a sudden I can't view images. Thanks!

  • Insert Image/Table not working in SP 2007 Rich Text Editor, also in Wiki.

    This is an odd one. It's in SP 2007. When I try to insert a table or image when using the Rich Text editor, it doesn't work. Others with the same rights are able to and I have confirmed that I am following all appropriate steps (and variations thereo