AJP Microproject
AJP Microproject
AJP Microproject
“Music Player”
Submitted by
Sandip Polytechnic
Mahiravani, Nashik - 422213
Affiliated to
Maharashtra State
Board of Technical Education
1
Maharashtra State
Board of Technical Education
Certificate
This is to certify that Ms. Krishna Laxmikant Gadakh with Roll No-30 has successfully completed Micro-
project in course “Advanced Java Programming(22517)” for the academic year 2021-22 as prescribed in the
'Assessment Manual'during his/her tenure of completing Fifth Semester of Diploma Programme in Information
Technology from institute, Sandip Polytechnic with institute code 1167.
2
Maharashtra State
Board of Technical Education
Certificate
This is to certify that Ms. Gayatri Bajirao Gulve with Roll No-18 has successfully completed Micro-project in
course “Advanced Java Programming(22517)” for the academic year 2021-22 as prescribed in the 'Assessment
Manual'during his/her tenure of completing Fifth Semester of Diploma Programme in Information
Technology from institute, Sandip Polytechnic with institute code 1167.
3
Maharashtra State
Board of Technical Education
Certificate
This is to certify that Ms. Mahesh Pravin Bauskar with Roll No-27 has successfully completed Micro-project
in course “Advanced Java Programming(22517)” for the academic year 2021-22 as prescribed in the
'Assessment Manual'during his/her tenure of completing Fifth Semester of Diploma Programme in Information
Technology from institute, Sandip Polytechnic with institute code 1167.
4
Maharashtra State
Board of Technical Education
Certificate
This is to certify that Ms. Vishal Dasharath Pawar with Roll No-48 has successfully completed Micro-project
in course “Advanced Java Programming(22517)” for the academic year 2021-22 as prescribed in the
'Assessment Manual'during his/her tenure of completing Fifth Semester of Diploma Programme in Information
Technology from institute, Sandip Polytechnic with institute code 1167.
5
Annexure – I
Micro Project Proposal
Music Player
3. Proposed Methodology:
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.
6
4. Action Plan:
3 Literature Review
4 Collection of Data
1.Krishna Laxmikant Gadakh
2.Gayatri Bajirao Gulve
Discussion and Outline of
5 3.Mahesh Pravin Bauskar
Content
4.Vishal Dasharath Pawar
Rough Writing of the Projects
6 Contents
Editing and Proof Reading of
7 the Contents
8 Final Completion of the Project
5. Resources Required:
7
Index
8
Abstract
“ Music Player” is a project, which is of great use at the present. The main goal of this project is
to perform various tasks, which can be done on media. “Music Player” specially focuses on
playing different types of audio and video format. Capturing audio and video data and saving it
to a file is done with the help of “Music Player”. We can transfer and receive real time media,
which makes this project valuable for the purpose such as distant education with the
enhancement of this project. Similarly changing the format of the file is another purpose of this
project. “Music Player” is currently focused on changing the file from WAV file format to MP3
file format that can be extended to change the file format from one format to the different
formats. For the completion of this project we use the API called Java Media Framework. It is a
good API, which is used to perform the tasks, related with the media. We have used Windows as
the platform for the completion of this project. Different class and package of Java Media
Framework are used to achieve the task. Different types of the Manager are present in Java
Media Frame work, which have different functions to perform with
9
Introduction
“Music Player” is a complete media package. It holds the entire basic requirement for playing
various audio and video files with an excellent GUI. It is mainly based on the JMF API of java.
JMF is a good API for works related to the media. “Music
Player” can be used for capturing audio and video using microphone and webcam. With the
further improvement it also can be used as a tool for voip. “Music Player” can be used for the
converting one file format to another format. This version of
“Music Player” is capable of converting the WAV file to MP3 file format, which can be
extended to support other file format. Similarly it can be used to transmit media files across
network and receive those files from the network. All the transmitting and receiving media files
is based on UDP protocol. UDP protocol is mainly used for the purpose of multimedia file
transfer. Since all transmitting and receiving is done on real time protocol “Music Player” can
also be extended for works such as videoconference and distant education. Thus “
Music Player” is software with many useful features at the present world.
Implementation
10
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)
11
{
open_dialog();
}
}
);
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);
12
}
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);
}
catch (Exception ec){}
}
catch(IOException e)
{
e.printStackTrace();
}
}
}
public static void main(String[] args)
{
layer l = new layer();
}
}
13
Output
14
Conclusion :
In this project, I have learned various GUI components,
Thus we have build music player using Java and various GUI components
Prof.R.S.Mahajan
Name & Signature of Course Teacher
15
Annexure – IV
Micro Project Evaluation Sheet
(A) (B)
Process and Product Assessment Individual Presentation/Viva Total Marks (10
(6 Marks) (4 Marks) Marks)
…………………………………..……………………………………………………………………………
16
Micro Project Evaluation Sheet
(A) (B)
Process and Product Assessment Individual Presentation/Viva Total Marks (10
(6 Marks) (4 Marks) Marks)
…………………………………..……………………………………………………………………………
17
Name of Student : Mahesh Pravin Bauskar Enrollment No :2011670614
Name of Programme : Information Technology Semester :V
Course Title : Advanced Java Programming Course Code : 22517
Title of Micro Project : Music Player
(A) (B)
Process and Product Assessment Individual Presentation/Viva Total Marks (10
(6 Marks) (4 Marks) Marks)
…………………………………..……………………………………………………………………………
Annexure – IV
Micro Project Evaluation Sheet
18
Name of Student : Vishal Dasharath Pawar Enrollment No :2011670604
Name of Programme : Information Technology Semester :V
Course Title : Advanced Java Programming Course Code : 22517
Title of Micro Project : Music Player
(A) (B)
Process and Product Assessment Individual Presentation/Viva Total Marks (10
(6 Marks) (4 Marks) Marks)
…………………………………..……………………………………………………………………………
19