Building a simple mp3 music player [closed]

岁酱吖の 提交于 2020-01-20 07:20:42

问题


It is possible for me to write a simple mp3 music player? If yes, how should I go about building it? Are there any online resources that can help?


回答1:


This would be the basis of creating a Flash based MP3 player: http://www.macloo.com/examples/audio_player/

Your question is a little too vague to warrant explicitly stating which language you should use.

^_^




回答2:


This has already been done and the is available on Google Code as Damn Small Media Player.

Its built on C++ and the player just takes up only 716KB of space and it is a simple download and use software. No Installers etc.

It has a features like:

  1. Play Mp3s

  2. Have a playlists, retain it and ability to add all files to the player at once.

  3. Multi-platform code.

  4. Playlist Queue

  5. Search




回答3:


You can use the <audio> HTML tag along with some simple JavaScript to create a nice music player that can seek and do all the things a normal player can. That is the best option, as it's the standard, supported in most browsers including those without Flash, and doesn't have the insecurity, instability and unnecessary kludge of Flash.




回答4:


Yea , the process is pretty simple. Have you studied Data Compression? All you need is a program which takes a file stream from the input - your mp3 file, decompresses it according to the given bitrate using mp3. Google for the algorithm. There are readymade snippets for huffman decoding etc. and writes this decoded stream to your audio driver. You dont need to understand the algorithm , just implement it




回答5:


Well if you want to build a stand alone mp3 player, Drop a TMediaPlayer component on a Delphi form and take it from there ;)



来源:https://stackoverflow.com/questions/2872852/building-a-simple-mp3-music-player

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!