Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 12

MUSIC PLAYER USING JAVA

Part- A Plan
“Music player using java”

1.Brief description

Java is a class-based, object-oriented programming language that is designed to have as few


implementation dependencies as possible. It is a general-purpose programming language intended to let
application developers write once, run anywhere (WORA), meaning that compiled Java code can run on
all platforms that support Java without the need for recompilation. Java applications are typically
compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the underlying
computer architecture. The syntax of Java is similar to C and C++, but has fewer low- level facilities
than either of them. The Java runtime provides dynamic capabilities (such as reflection and runtime code
modification) that are typically not available in traditional compiled languages.

Java was originally developed by James Gosling at Sun Microsystems (which has since
been acquired by Oracle) and released in 1995 as a core component of Sun Microsystems' Java
platform. The original and reference implementation Java compilers, virtual machines, and class
libraries were originally released by Sun under proprietary licenses. As of May 2007, in compliance
with the specifications of the Java Community Process, Sun had relicensed most of its Java
technologies under the GNU General Public License. Oracle offers its own HotSpot Java Virtual
Machine, however the official reference implementation is the OpenJDK JVM which is free open
source software and used by most developers and is the default JVM for almost all Linux distributions.

Music Player lets you manage all your music files quickly and easily . This audio
player supports almost all types of mp3 , midi ,wav , flac raw aac files and other audio formats .
Easily browse and play music songs by genres , albums , artists , songs and folder.
Media is integral parts of our lives. We are creating media player using java to handle all the music
requirements of user.

James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991.
Java was originally designed for interactive television, but it was too advanced for the digital cable television industry
at the time. The language was initially called Oak after an oak tree that stood outside Gosling's office. Later the project
went by the name Green and was finally renamed Java,
from Java coffee, the coffee from Indonesia. Gosling designed Java with a C/C++-style syntax that system and
application programmers would find familiar.

1.Aims of the micro project:


To Design a java program play music stored on machine and control it using various java
components.

o pg. 1 Swami Vivekanand Institute of Polytechnic


MUSIC PLAYER USING JAVA

2.Course outcomes addressed

1.Develop programs to handle events in Java Programming

2.Developrograms using GUI Framework (AWT and Swing).

3.Purposed Methodlodgy:-

We discussed about our Advance java programming micro project topic .we searched on internet for micro
project topic. We got some topic related to our syllabus .we decided to make a project on Scheduling
algorithm which is useful for student to understand scheduling algorithm easy with the help of project.
1. After the selecting the topic of our project, we started to searching on internet to get more information
related to scheduling algorithm.
2. We collect the all information which we required to make project.
3. We also visited some website to get some idea how to make project for scheduling algorithm.
4. Finally we got ideas and we started to make a project.
5. Firstly we roughly created our project and we saw our project to our subject teacher .our teacher told
some changes in project.
6. As per the teacher guidance we finally created our project
7. We created report and proposal for our micro project.

1.Action plan:

Sr. Planned Planned Name of Responsible


No. Details of Activity start Date Finish Date Team Members
Gathering The Raw
08.08.2023 22.08.2023
1. Information Related
2:45 to 4:45 2:45 to 4:45
To Project
22.08.2023 05.09.2023
2. Analysis 2:45 to 4:45 2:45 to 4:45
05.09.2023 12.09.2023
3. Designing 2:45 to 4:45 2:45 to 4:45
Tadme Pradip S.
12.09.2023 26.09.2023
4. Implement of Coding Madje Rohit O.
2:45 to4:45 2:45 to 4:45
Mukade Sai F.
26.09.2023 03.10.2023 Lavate Santosh V.
5. Testing of Project
2:45 To 4:45 2:45 to 4:45
03.10.2023 10.10.2023
o pg. 1 Swami Vivekanand Institute of Polytechnic
MUSIC PLAYER USING JAVA
2:45 to 4:45 2:45 to 4:45
6. Deployment of Module
10.10.2023 17.10.2023
7. Prepare Out Put 2:45 to 4:45 2:45 to 4:45
Prepare Report on 17.10.2023 31.10.2023
8. Micro Project 2:45 to 4:45 2:45 to 4:45

o pg. 1 Swami Vivekanand Institute of Polytechnic


MUSIC PLAYER USING JAVA

1. Resources used:

Sr.no. Name of resources/Material Specification Qty Remarks


1 Google Search engine 1 -
2 Microsoft word Application 1 -

➢Name of Team Members:


• Tadme Pradip Sanjay

• Madje Rohit Omprakash

• Mukade Sai Fulchand

• Lavate Santosh Vyankat

pg. 3 Swami Vivekanand Institute of Polytechnic


MUSIC PLAYER USING JAVA

Part B- Outcomes after Execution

1. Rationale:
The goal of the project is to create Music player using java.

2. Brief Description:

Java is a class-based, object-oriented programming language that is designed to have as few


implementation dependencies as possible. It is a general-purpose programming language intended to let
application developers write once, run anywhere (WORA), meaning that compiled Java code can run on
all platforms that support Java without the need for recompilation. Java applications are typically
compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the underlying
computer architecture. The syntax of Java is similar to C and C++, but has fewer low- level facilities
than either of them. The Java runtime provides dynamic capabilities (such as reflection and runtime code
modification) that are typically not available in traditional compiled languages.

Java was originally developed by James Gosling at Sun Microsystems (which has since
been acquired by Oracle) and released in 1995 as a core component of Sun Microsystems' Java
platform. The original and reference implementation Java compilers, virtual machines, and class
libraries were originally released by Sun under proprietary licenses. As of May 2007, in compliance
with the specifications of the Java Community Process, Sun had relicensed most of its Java
technologies under the GNU General Public License. Oracle offers its own HotSpot Java Virtual
Machine, however the official reference implementation is the OpenJDK JVM which is free open
source software and used by most developers and is the default JVM for almost all Linux distributions.

Music Player lets you manage all your music files quickly and easily . This audio
player supports almost all types of mp3 , midi ,wav , flac raw aac files and other audio formats .
Easily browse and play music songs by genres , albums , artists , songs and folder.
Media is integral parts of our lives. We are creating media player using java to handle all the music
requirements of user.

James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991.
Java was originally designed for interactive television, but it was too advanced for the digital cable television industry
at the time. The language was initially called Oak after an oak tree that stood outside Gosling's office. Later the project
went by the name Green and was finally renamed Java,
from Java coffee, the coffee from Indonesia. Gosling designed Java with a C/C++-style syntax that system and
application programmers would find familiar.
pg. 5 Swami Vivekanand Institute of Polytechnic
MUSIC PLAYER USING JAVA

3. Aims of the micro project:


To Design a java program play music stored on machine and control it using various java
components.

4. Course Outcomes Achieved:


• Develop and test a model for an innovative and efficient water filtration system, and
recover resources.
• Conduct water quality tests.
• Provide qualitative and quantitative results that describe the success (or failure) of a
model filtering system in meeting the project objectives.

pg. 6 Swami Vivekanand Institute of Polytechnic


MUSIC PLAYER USING JAVA

5. Actual Procedure Followed:

Program code
package jlay;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedInputStream;
import java.io.File;

import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.Player;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.function.Function;

public class layer {

Player ;
BufferedInputStream bis;
FileInputStream fis;
File file;

layer(){
JFrame main = new JFrame();
main.setVisible(true);
main.setVisible(400,440);
main.setLayout(new FlowLayout());
main.setBackground(Color.MAGENTA);

JButton choose = new JButton("Choose Your Song");


choose.addActionListener
(
new ActionListener()
{
@Override
public void action Performed(ActionEvent actionEvent)
{
open_dialog();
}
}
);
5
MUSIC PLAYER USING JAVA

main.add(choose);

JButton play = new JButton("Play");


play.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent actionEvent) {
try
{
player.play(100);
}
catch (Exception x){}
}
});
main.add(play);

JButton pause = new JButton("Pause");


pause.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent actionEvent) {
try
{
player.wait();
}
catch (Exception x){}
}
});
main.add(pause);

main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

void open_dialog()
{
JFileChooser fc = new JFileChooser();
int result = fc.showOpenDialog(null);

if (result == JFileChooser.APPROVE_OPTION)
{
try {
file = new File(fc.getSelectedFile().getAbsolutePath());
fis = new FileInputStream(file);
bis = new BufferedInputStream(fis);
try {
player = new javazoom.jl.player.Player(bis);
6
MUSIC PLAYER USING JAVA

}
catch (Exception ec){}
}
catch(IOException e)
{
e.printStackTrace();
}
}
}
public static void main(String[] args)
{
layer l = new layer();
}
}

6. Actual Resources used:

Sr. No Name of Resource Specification Qty Remarks

1 Computer 500GB HDD, 1


4 Gb RAM,
AMD processor,
Windows 7 OS

Action plan:
Sr. Planned Planned Name of Responsible
No. Details of Activity start Date Finish Date Team Members
Gathering The Raw
08.08.2023 22.08.2023
1. Information Related
2:45 to 4:45 2:45 to 4:45
To Project
22.08.2023 05.09.2023
2. Analysis 2:45 to 4:45 2:45 to 4:45
05.09.2023 12.09.2023
3. Designing 2:45 to 4:45 2:45 to 4:45
Tadme Pradip S.
12.09.2023 26.09.2023
4. Implement of Coding Madje Rohit O.
2:45 to4:45 2:45 to 4:45
Mukade Sai F.
26.09.2023 03.10.2023 Lavate Santosh V.
5. Testing of Project
2:45 To 4:45 2:45 to 4:45
03.10.2023 10.10.2023
6. Deployment of Module 2:45 to 4:45 2:45 to 4:45
10.10.2023 17.10.2023
7. Prepare Out Put 2:45 to 4:45 2:45 to 4:45
Prepare Report on 17.10.2023 31.10.2023
8. Micro Project 2:45 to 4:45 2:45 to 4:45

pg. 9 Swami Vivekanand Institute of Polytechnic


MUSIC PLAYER USING JAVA

2. Output of micro project:

pg. 10 Swami Vivekanand Institute of Polytechnic


MUSIC PLAYER USING JAVA

Skill developed/learning outcomes of this micro project

3. Application of the micro project


To implement and make a project for Music player using java.

pg. 11 Swami Vivekanand Institute of Polytechnic


MUSIC PLAYER USING JAVA

You might also like