您可以使用 HTML 标记以及一些简单的 JavaScript 来创建一个漂亮的音乐播放器,它可以搜索并执行普通播放器可以执行的所有操作。这是最好的选择,因为它是标准,在大多数浏览器(包括不带 Flash 的浏览器)中都受支持,并且没有 Flash 的不安全性、不稳定和不必要的混乱。
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.
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)
这已经完成了,并且可以在 Google 代码上以 该死的小型媒体播放器 的形式提供。
它基于C++构建,播放器仅占用716KB空间,是一个简单的下载和使用软件。无需安装程序等。
它具有以下功能:
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:
您可以使用
HTML 标记以及一些简单的 JavaScript 来创建一个漂亮的音乐播放器,它可以搜索并执行普通播放器可以执行的所有操作。这是最好的选择,因为它是标准,在大多数浏览器(包括不带 Flash 的浏览器)中都受支持,并且没有 Flash 的不安全性、不稳定和不必要的混乱。
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.这将是创建基于 Flash 的 MP3 播放器的基础: http://www.macloo.com/ example/audio_player/
您的问题有点太模糊,无法明确说明您应该使用哪种语言。
^_^
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.
^_^
是的,这个过程非常简单。你学过数据压缩吗?您所需要的只是一个程序,它从输入中获取文件流 - 您的 mp3 文件,并根据给定的比特率使用 mp3 对其进行解压缩。谷歌一下算法。有用于霍夫曼解码等的现成片段,并将此解码流写入您的音频驱动程序。你不需要理解算法,只需实现它
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
如果您想构建一个独立的 mp3 播放器,请将 TMediaPlayer 组件拖放到 Delphi 表单上并从那里获取它;)
Well if you want to build a stand alone mp3 player, Drop a TMediaPlayer component on a Delphi form and take it from there ;)