Playing MP3 files (or streaming it) in a new thread

Discussion in 'Java' started by gamenovice@gmail.com, May 30, 2014.

  1. Guest

    Is there an efficient way to play or stream mp3 files? I tried working it out on some existing source code, and while some methods work completely fine when I ran them in test code [as in by itself], it would cause the project code I was working with to crash. My first thought was to find a way to stream the mp3 data in a new thread and play it there, but I'm not sure how to properly go about this.










    P.S. I notice that I do not have to do this for .wav files, and .wav has a rather simplistic implementation in comparison to mp3 that lets me stream its data in the same thread. is there any reason java operates in this manner? if there is a way to do the same for mp3s in the same thread please let me know
     
    , May 30, 2014
    #1
    1. Advertising

  2. Josip Almasi Guest

    Seems you're looking for Java Media Foundation with mp3 plugin.
    Though I'm not sure what are you talking about:)

    Regards...

    On 05/30/2014 10:38 AM, wrote:
    > Is there an efficient way to play or stream mp3 files? I tried working it out on some existing source code, and while some methods work completely fine when I ran them in test code [as in by itself], it would cause the project code I was working with to crash. My first thought was to find a way to stream the mp3 data in a new thread and play it there, but I'm not sure how to properly go about this.
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    > P.S. I notice that I do not have to do this for .wav files, and .wav has a rather simplistic implementation in comparison to mp3 that lets me stream its data in the same thread. is there any reason java operates in this manner? if there is a way to do the same for mp3s in the same thread please let me know
    >
     
    Josip Almasi, May 30, 2014
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?ISO-8859-1?Q?I=F1igo?=

    Python libraries for playing MP3 files

    =?ISO-8859-1?Q?I=F1igo?=, Oct 1, 2004, in forum: Python
    Replies:
    0
    Views:
    278
    =?ISO-8859-1?Q?I=F1igo?=
    Oct 1, 2004
  2. Dave Brueck
    Replies:
    2
    Views:
    353
    Dave Brueck
    Oct 1, 2004
  3. Sunfire
    Replies:
    7
    Views:
    480
    Sunfire
    Nov 10, 2007
  4. Andy B

    playing mp3 files from app_data

    Andy B, Dec 7, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    333
    Andy B
    Dec 7, 2007
  5. HY Tech
    Replies:
    0
    Views:
    650
    HY Tech
    Sep 7, 2003
Loading...

Share This Page