0% found this document useful (0 votes)
19 views

Advance Java Microproject

The document describes developing a music player application in Java. It includes sections on resources required, literature review, code implementation, outputs, and skills developed. The application allows users to browse, select, and play music files on their computer.

Uploaded by

atul gaikwad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Advance Java Microproject

The document describes developing a music player application in Java. It includes sections on resources required, literature review, code implementation, outputs, and skills developed. The application allows users to browse, select, and play music files on their computer.

Uploaded by

atul gaikwad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

P K TECHNICAL CAMPUS, CHAKAN

A MICRO-PROJECT REPORT ON
“MUSIC PLAYER USING ADVANCED JAVA”

SUBMITED BY:-
MANAV PIMPALSHENDE

UNDER GUIDANCE
Prof mrs. ANKITA GADEKAR
THIS IS CERTIFY THAT THE MICROPROJECT
IS SUCCESSFULLY SUBMITTED BY,

• Manav Pimpalshende

MRS. ANKITA GADEKAR HEAD OF THE


MADAM DEPARTMEN
lOMoARcPSD|32033068

INDEX

Sr. No. Name of the topic

1 Brief Description
2 Resources Required
3 Literature Review
4 Actual Procedure
5 Outputs of the Micro-Projects
6 Skill Developed
7 Conclusion
lOMoARcPSD|32033068

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.
lOMoARcPSD|32033068

2. Resources Required

Sr. No Name of Resource Specification Qty Remarks


1 Computer 256GB SSD, 1
8 Gb RAM,
core i5
processor, -
Windows 11
OS

3. Literature Review
A literature review on music player development in Java reveals a rich
landscape of research and development efforts that span various aspects of
software engineering, multimedia technologies, and user interface design.
Several studies focus on the core functionality of music players, such as audio
playback, file format compatibility, and performance optimization. These
investigations explore algorithms for decoding audio files, audio streaming,
and memory management. Moreover, there is a significant body of work
dedicated to user interface design, where researchers explore graphical user
interfaces (GUIs), touchscreen interaction, and usability studies. Additionally,
research in the field delves into advanced features like playlist management,
music recommendation algorithms, and social integration. Security and
privacy concerns have also gained attention, particularly in the context of
online music streaming and cloud-based storage solutions. Collectively, this
literature highlights the diverse challenges and opportunities in music player
development in Java, offering insights into both technical and user-centric
aspects of this popular software domain.
lOMoARcPSD|32033068

4. Actual Procedure

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();
}
}
);
lOMoARcPSD|32033068

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);
lOMoARcPSD|32033068

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

5. Outputs of Micro-Projects

Output:
lOMoARcPSD|32033068
lOMoARcPSD|32033068

6. Skill Developed

Developing a music player encompasses a multifaceted skill development


journey, spanning various domains of software engineering and multimedia
technologies. At its core, this endeavor hones one's programming skills,
particularly in languages like Java, delving into data structures, object-oriented
programming, and algorithmic problem-solving. Understanding audio
processing, file handling, and codecs becomes essential for managing and
playing audio files efficiently. Furthermore, crafting an intuitive and visually
appealing user interface demands proficiency in user interface (UI) design,
while multithreading expertise is crucial for handling concurrent tasks, such as
audio playback and user interface updates. Memory management skills come
to the fore in optimizing the application's efficiency, as do data organization
capabilities in creating and managing playlists and libraries. Testing and
debugging proficiencies, coupled with performance optimization techniques,
are key to ensuring a smooth and responsive user experience. Additionally,
cross-platform development skills may be required for broad compatibility,
and security awareness is pivotal for safeguarding user data, especially in the
context of online features like cloud synchronization. Networking expertise is
essential for tasks such as streaming music and cloud integration. Quality
assurance, documentation, communication, and version control competencies
round out the skill set, fostering a holistic skill development experience in the
creation of a music player.
lOMoARcPSD|32033068

7. Conclusion

One of the most important benefits of Java is its capacity to move easily
from one computer system to another. The capability to run the same
program on many different systems is essential to World Wide Web
software, and Java grows at this by being platform-independent at both
the source and binary levels.

You might also like