Pages

A Java Program To Play A MP3 File Using JLayer

Watch video tutorial below :


*********************************************************************
COMPLETE SOURCE CODE FOR : TestPlay.java
*********************************************************************

import javazoom.jl.player.Player;
import java.io.FileInputStream;

public class TestPlay
{
    public static void main(String[]args)
    {
        try
        {
            FileInputStream fis=new FileInputStream("C:\\Documents and Settings\\UserXP\\Desktop\\01-flo_rida_(feat_david_guetta)-clab_cant_handle_me.mp3");
            Player playMp3=new Player(fis);

            playMp3.play();
        }
        catch(Exception e)
        {
            System.out.println(e);
        }
    }
}

Related Posts Plugin for WordPress, Blogger...

I Also Can Create T-Shirt Logo For You