Results 1 to 5 of 5

Thread: Play music

  1. #1
    carderne is offline Senior Member
    Join Date
    Nov 2007
    Posts
    160
    Rep Power
    7

    Default Play music

    I've created a simple music management program, that imports iTunes playlists, allows you to make playlists and smart playlists and remove duplicates etc.

    I want to know if it will be at all possible for me, with very limited Java knowledge to actually allow my program to play music? Is there an existing java class or something?

    Thanks

    --Here's my program if anyone wants to see it: download link

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,589
    Rep Power
    23

    Default

    Yes, java can play some sound files.
    very limited Java knowledge
    It make take some work. There are probably several example programs around if you Search for them.

  3. #3
    carderne is offline Senior Member
    Join Date
    Nov 2007
    Posts
    160
    Rep Power
    7

    Default

    Would you mind having a quick look at the link I uploaded. Do you think it would be possible to integrate music playing into that?

    I say very limited Java knowledge, but I can do stuff. Just not much in comparison with everyone who really knows what they're doing.

    I will try some Googling.

  4. #4
    Rooneyz is offline Member
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    25
    Rep Power
    0

    Default

    You might want to use the Java Media Framework (JMF) to play media in your java application. This is an extension of the Sun JDK and can be downloaded at:
    java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/download.html

    You can find several implementations on the internet. JMF supports at least MP3 where I know of but you can add extra codecs to expand the supported formats.
    Last edited by Rooneyz; 08-05-2008 at 11:29 AM. Reason: typo

  5. #5
    carderne is offline Senior Member
    Join Date
    Nov 2007
    Posts
    160
    Rep Power
    7

    Default

    Quote Originally Posted by Rooneyz View Post
    You might want to use the Java Media Framework (JMF) to play media in your java application. This is an extension of the Sun JDK and can be downloaded at:
    java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/download.html

    You can find several implementations on the internet. JMF supports at least MP3 where I know of but you can add extra codecs to expand the supported formats.
    Thanks, I'll give that a try.

Similar Threads

  1. How to play MP3 files?
    By Tsiliadoros in forum Advanced Java
    Replies: 0
    Last Post: 05-29-2008, 11:54 PM
  2. Music File Conversion
    By Dave Almighty in forum Advanced Java
    Replies: 11
    Last Post: 04-21-2008, 03:30 AM
  3. printing MIDI notes on a music staff
    By kbyrne in forum Advanced Java
    Replies: 0
    Last Post: 12-29-2007, 07:50 PM
  4. printing MIDI notes on a music staff
    By kbyrne in forum AWT / Swing
    Replies: 0
    Last Post: 12-29-2007, 05:30 PM
  5. play() and mp3
    By willemjav in forum Advanced Java
    Replies: 3
    Last Post: 12-23-2007, 02:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •