Teach you to easily make java music player

1、 Implementation principle of music player

The multimedia function of javase is very weak, so there is a plug-in dedicated to multimedia called JMF. The models provided by JMF can be roughly divided into seven categories

*Data source * capture device (including video and audio capture devices) * player * processor * datasink * data format * Manager

The music player mymusicplayer (this is the class name I created) I created calls the player class in JMF to realize its playback and other functions

The first thing we need to do is install JMF. I believe that the installation of JMF is very troublesome for many novices. JMF only supports 32-bit JDK version. However, IDE environment such as eclipse should correspond to JDK, that is, IDE environment should support 32-bit JDK version. After installing JMF, sometimes MP3 playback is not successful, and the mp3plugin of JMF needs to be installed.

2、 Interface rendering

3、 Functional structure diagram

4、 Code for various functions

5、 Total test effect

as follows

For more information about the player, please click "Java player functions" to learn.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>