Coder Social home page Coder Social logo

jmusic's Introduction

JMusic

JMusic is a library developed in Java (and NetBeans) that allows management to create a mp3 music player.

I created the library for my projects in the area of Algorithms and Programming III at School of Engineering at the Andrés Bello Catholic University (UCAB) in Caracas, Venezuela.

After years working with the library, I decided to release it as an open source project.

The library is based on JLayer -> http://www.javazoom.net/javalayer/javalayer.html.

The goals of this code are:

  • Abstracting mp3 player implementation in Java
  • Allow people who don't know the implementation of a mp3 player create one in Java very easily
  • Allow programming teachers create more interesting and complex projects without the need for implementing a mp3 music player

Adding JMusic to your project

You need to follow these steps:

  • Add the JMusic library JAR file to you project
  • Create a JMusicPlayerList list with the mp3 info for each song
  • Use the MusicPlayerControl.initMusicPlayer method with mp3 music files path and JLabel that contains the song information
  • Use the MusicPlayerControl.loadSongs method with the JMusicPlayerList list
  • That's it!

Optional steps:

Use the following methods (at MusicPlayerControl class) in order to control your music player:

  • playAllSongs
  • playSong
  • pauseSong
  • nextSong
  • prevSong
  • repeatSong
  • repeatSongsFromTheBeginning
  • resumeSong
  • stopSong

Internal JMusic mp3 music player

If you want it, you can use the internal JMusic mp3 music player. You just need to follow the next steps:

  • Create a JMusicPlayerList list with the mp3 info for each song
  • Use the JMusicPlayer.main method with mp3 music files path and the JMusicPlayerList list
  • Done! :3

Javadoc

If you need any help with the library methods you can use the javadoc documentation (it's include in the project)

Support && contact

Email

You can contact me using my email: [email protected]

Twitter

Follow me @rcasanovan on twitter.

jmusic's People

Contributors

rcasanovan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

qijun0202 an-m1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.