Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM)...

17
Vishleshan-International Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected] 39 | Page Bluetooth Enabled Java Media Player Samuel Jos Atlantic International University America Abstract Through this thesis I will be analyzing how a media player can be created using JAVA. Today we have infinite number of media players around us, and these are available in different forms like freeware, shareware, licensed etc. However when we look at the code which they have developed none of these media players have used JAVA. Through my thesis I intend to develop a media player using the programming language JAVA and also will be analyzing the efficiency of it by adding an extra feature of controlling the layer using a Bluetooth device paired to it. For the thesis I will be designing a media player from scratch using programming language JAVA. To make it more efficient data structures like two dimensional arrays or stacks will be used. The computational thinking will also be involved as the media player has to be coded using a high level programming language. For coding the Netbeans IDE will be used as it has more user friendly graphical interface than any other IDEs. Use of JFrames and the screens will allow for an efficient media player. Introduction Through the thesis the main questions which I will be tackling are follows Can features of JAVA be effectively used for creation of an effective media player? Adding an extra feature of controlling the media player with any Bluetooth device will it help the users to prefer this over any other common media players used? How effective will it be if recursive algorithms can be used in the design of media player? Object Oriented Programming (OOP) language JAVA has many features associated with it. The class of media player gives control options like play, stop search etc. Extra features which the

Transcript of Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM)...

Page 1: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

39 | P a g e

Bluetooth Enabled Java Media Player

Samuel Jos

Atlantic International University

America

Abstract

Through this thesis I will be analyzing how a media player can be created using JAVA. Today

we have infinite number of media players around us, and these are available in different forms

like freeware, shareware, licensed etc. However when we look at the code which they have

developed none of these media players have used JAVA. Through my thesis I intend to develop

a media player using the programming language JAVA and also will be analyzing the efficiency

of it by adding an extra feature of controlling the layer using a Bluetooth device paired to it.

For the thesis I will be designing a media player from scratch using programming language

JAVA. To make it more efficient data structures like two dimensional arrays or stacks will be

used. The computational thinking will also be involved as the media player has to be coded

using a high – level programming language. For coding the

Netbeans IDE will be used as it has more user friendly graphical interface than any other IDEs.

Use of JFrames and the screens will allow for an efficient media player.

Introduction

Through the thesis the main questions which I will be tackling are follows

Can features of JAVA be effectively used for creation of an effective media player?

Adding an extra feature of controlling the media player with any Bluetooth device

will it help the users to prefer this over any other common media players used?

How effective will it be if recursive algorithms can be used in the design of media

player?

Object Oriented Programming (OOP) language JAVA has many features associated with it. The

class of media player gives control options like play, stop search etc. Extra features which the

Page 2: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

40 | P a g e

class can provide are the volume options. These features come as inbuilt in the processor. Even

in the volume control more advanced feature of filtering and other options are also available in

the class of audio equaliser. Properties to check the current status, runtime etc are available in

the class.

The media player operation is an asynchronous operation. The player should not take any

immediate action until the response status has been changed. To include all these features

JAVA is the best programming language because it has the class for the media player. It’s just

the coding process for these abstract classes left. Also it is platform independent, which makes

the media player more effective as it can be run across various platforms without any difficulty.

The same set can be shared with multiple views; the change in one will not affect the play back

of the player.

In today’s era we are mostly dependent on wireless networks. When it comes to a personal data

sharing people prefer private networks like Bluetooth. This makes the transmission more secure

and private. For transfer to happen the devices has to be paired. For pairing both the sender and

receiver has to come to terms with each other. This gives the network more security. This is one

feature which made me think why not to add the extra feature of controlling the media player

via Bluetooth. Will people prefer this media player more if the extra feature of Bluetooth

control is added?

To add this feature and to get it installed many Application Programming Interfaces (APIs) can

be used. In this case Java Media Framework can be used. This helps in installing the features of

the Bluetooth to the devices. The framework selected will cover a variety of applications. It also

covers the requirements of the programmer at various levels. Many media sources can be

represented using the frameworks. Once the media store is used it cannot be used again with

any other stress or forms, which makes it more authentic and also more in demand. Here the use

of the data structure stack comes into play for pushing the sources and also for popping it out.

The degree at which the client can execute the client program is dependent on the type of the

source of media presented. Some of the sources allow repositioning the current state of playing.

When this happens the chances of overlooking the minor details are more. If we look at more

Page 3: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

41 | P a g e

examples, there are other sources like broadcast sources. These are under the control of the

server. Because of this the user control over this is less as the privileges are assigned by the

server which has already been set at the beginning. For this the data which has been pushed has

to be popped out of the stack.

With the use of recursion the efficiency of the player can be improved. This is a process where

the output of a problem is dependent on the very smaller instincts of the object. The power of

the media player lies in the possibility of making a set of infinite statements as a finite one. For

more improved performance the function call has to come back to its base. Any procedure call

made has to be smaller than the previous one.

When it comes to the media player recursion can be used for the searching the playlist for

finding a particular track. For this a sub routine has to be created and this has to be called again

and again till the search yields a result. The process is first it goes from folder to subfolder and

to it’s subfolder till it finds the file and starts searching the inmost folder files once it is done

then it moves on to the next and this process continues until all the files are completely done.

In the media player which I’ am going to create the additional advantage is the JAVA memory

can be used for these type of functions so the system memory can be efficiently used which is the

key for the high performance.

These are the few of the concepts which I will be trying to uncover through my thesis.

Background Information

Electronics is one of the rapid growth areas in the field of computers. This rapid growth has

given way to the development of different media players. Media player is a library used for

playing sound and audio files. The functions of the media player depend on the developer of the

media player. The advanced version of the media player started coming out in 1991.

Depending on the version it can also play animated images and videos. It continually plays the

media in a loop. During the initial times any media player each components had to be coded

separately.

Page 4: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

42 | P a g e

The media players play back the audio and this feature is supported by most of the media player.

An efficient media player should also support the streaming of the video. It should also support

full media management function for its smooth functioning. The audio and the songs everything

can be arranged using different methods, it can be sorted by artist, segregated by albums etc.

these entire functions media player has to support. All of these are programmed using

programming languages. Quick access points also play an important role in the efficiency of the

media player. For making it more users friendly the graphics also play an important role in the

visual effects.

The portability of the media player is also important. It should be able to play easily using

phones or even in computer. The distribution and the marketing of the media player is also

dependent on it. Also it should be able to support different formats of videos, or at least the most

relevant ones. Otherwise it can’t be called as a successful one.

During the early 1990s there was an outburst of different types of media player. There were set

of media players which came out only for audio files, for both audio and video etc. Media

players started supporting the MIDI files and other types of files as well. The play back features

are also vital in the performance analysis.

These media players had the ability of searching the users system to find out all the music and

the audio files and will be brought to the media player. Once it is brought to the media player

then the files can be listed based on different classifications. Adding the features of cover page to

the files or even customizing the images all can be done easily. The other aspect for better

marketing is for people who are interested in audio podcast it has to be easier for them to play

the podcast. This should be abele to be played without much difficulty.

Portability is another specialty which has to be looked into it. If a user has multiple systems with

multiple platforms, it has to be easier for them to play their files using the same media player

across all the platforms with very limited or no effort at all. These also had feature of web

bookmarks and also the comment ability. It also has the streaming feature from the net. This

happens because the link is already preloaded into the media player library. Copying of the files

from device to device feature is also possible with these ones. The features of the blog are also

Page 5: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

43 | P a g e

there in the list. The facility of remote also can be availed, but it has to be of the same

manufacturer.

Extra features of plug-ins are also there. If any type of music is not supported the relevant plug-

in can be installed without any difficulty which will help in making it play all the types of music.

Most of the above media players are not open source one. For better marketing strategy and wide

reach they need to be open sourced. Also the compression techniques used will also play a

pivotal role in the performance. The media files are generally large in size. It becomes difficult to

manage the memory efficiently. To make use of the memory effectively we have to use the

compression techniques.

These techniques have to be inbuilt in the media players. The more efficient the compression is

the more the performance of the media player. These open sourced media player started coming

in 1996. The first open sourced media player which came out was an imitative is a group of

technical students. This was the main motivation I had for selection of the topic.

The main feature for these open source media players was its GUI feature. This is one feature

which makes it more users friendly. These open source one is a packet based media player. This

helps it to play almost all the types of formats without any difficulty. The compression used is

also enough for all the formats which makes it more effective. Since these media players support

all types of formats so there is no need of any extra codecs for playing the files. The main

advantage of this media player is that it can play high definition videos without any difficulty.

This open source media player is a cross platform independent. It can be easily played across

windows, mac and linux.

Thesis Statement

Can features of JAVA be effectively used for creation of an effective media player? Adding an

extra feature of controlling the media player with any Bluetooth device will it help the users to

prefer this over any other common media players used? How effective will it be if recursive

algorithms can be used in the design of media player?

Page 6: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

44 | P a g e

Methodology

The research was done by hand on experience. A media player with the above mentioned

features was programmed by using JAVA programming language. It was then executed or run in

different platforms. Same music was played in 2 different media players. The differences of

performance was then calculated and analysed.

The software items used for the development are given below

JAVA Netbeans IDE

JDK

J2ME SDK 3.0

Java Media Framework (JMF) version 2.1 or above

JSR 82 profiles

Design and Development

The main strategies for developing were

It should be simple and very efficient

It must be secured and robust

It should be easily portable

It should have very high performance

JMF is a versatile interface which gives the JAVA programmers various ways to process media

in different ways. It is a frame work for handling media streaming in the media player. With the

use of JMF following features can be effectively developed for the media player

Playback of any multimedia contents

Recording of audio or Video through Microphone and Camera

It allows real time streaming of multimedia contents from internet

It gives the feature of changing the media formats

It allows the storing of media into a file

Page 7: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

45 | P a g e

The development stages are given below

Page 8: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

46 | P a g e

SCREEN SHOTS FROM THE D EVELOPED PRODUCT

Page 9: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

47 | P a g e

Page 10: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

48 | P a g e

The JAVA program used for developing the software

Page 11: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

49 | P a g e

Page 12: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

50 | P a g e

Page 13: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

51 | P a g e

Page 14: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

52 | P a g e

Page 15: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

53 | P a g e

Page 16: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

54 | P a g e

Conclusion

Through the thesis the main questions which I was intending to answer are given below

Can features of JAVA be effectively used for creation of an effective media player?

Adding an extra feature of controlling the media player with any Bluetooth device will it

help the users to prefer this over any other common media players used?

How effective will it be if recursive algorithms can be used in the design of media

player?

Yes the features of JAVA can be used for an effective media player. The features like

inheritance; abstraction etc can be used to create an excellent performance media player.

The created media player was then distributed amongst a set of people of various ages and was

asked to use it for some days. After the stipulated number of days a survey was taken and 9 out

of every 10 people said they preferred using this media player. So yes adding the extra feature

of controlling the media player via Bluetooth will help the users to prefer this over any common

media players available.

The media player became effective only because of the usage of the recursive algorithms.

This helped in improving the storage aspect of execution and also increased performance of

the player.

Because more space could be allotted to the media inside it rather than the program.

Further Recommendations

Adding more attractive Graphic feature while playing the audio

Layout of the screen feature

Adding the video conferencing feature

Page 17: Vishleshan-International Journal of Engineering … Journal of Engineering and Management (VIJEM) Volume 2, Issue 3 (Apr.-June, 2017) ISSN (Online): 2455 - 524X

Vishleshan-International Journal of Engineering and Management

(VIJEM) Volume 2, Issue 3 (Apr.-June, 2017)

ISSN (Online): 2455 - 524X

Website: www.vijem.com Ph. (0755) 4273272 E-mail: [email protected]

55 | P a g e

Acknowledgements

At the time of submitting this report we use this opportunity to mention those people who were

with us along the work.

I express my whole hearted thanks to Atlantic International University for giving me an

opportunity to undertake the endeavour.

I also thank my family for their love and support they provided. I extend our heartfelt thanks to

all my dear friends without whom we would not have accomplished this work.

Above all we would like to acknowledge with thanks “The Lord Almighty”, the foundation of

all wisdom who has been wonderfully guiding me step by step.

References

Bruce, Hopkins, 2003. Bluetooth For Java. 1st ed. Berkely: The Authors Press.

Juan Carlos, Cano, 2006. Wireless Personal Communications. UbiqMuseum: A

Bluetooth and Java Based Context- Aware System for Ubiquitous Computing, 2/38, 187-

202.

Radhika, Grover, 2013. Programming with Java: A Multimedia Approach. 1st ed.

Burlington: Jones & Bartlett Learning.

Sullivan, Sean, 1998. Programming with the Java Media Framework (SUG). 1st ed.

Newyork: John Wiley and Sons.

Terrazas, Alejandro, 2002. Java Media APIs: Cross-Platform Imaging, Media and

Visualization. 2nd ed. Indianapolis: Indiana: Sams.