有人知道类似于 niftyplayer 的可编写脚本的 mp3 播放器吗? niftyplayer 正是我所需要的,但代码很旧(2003 年)并且似乎已损坏。它有一个 flash .swf 和一个具有控制播放器功能的 .js 文件。
我正在寻找一个 mp3 播放器,我可以在其中调用 play()、stop()、load(file.mp3)、loadandplay(file.mp3) 等函数。
niftyplayer 做到了这一点。
<a href="javascript:niftyplayer('niftyPlayer1').playToggle()">play toggle</a>
(or
<a href="javascript:niftyplayer('niftyPlayer1').play()">play</a>
|
<a href="javascript:niftyplayer('niftyPlayer1').pause()">pause</a>
)
<a href="javascript:niftyplayer('niftyPlayer1').stop()">stop</a>
<br />
<a href="javascript:niftyplayer('niftyPlayer1').load('betty.mp3')">load file 1</a>
|
<a href="javascript:niftyplayer('niftyPlayer1').load('creeeeak.mp3')">load file 2</a>
|
<a href="javascript:niftyplayer('niftyPlayer1').loadAndPlay('creeeeak.mp3')">load file 2 and play it</a>
最佳答案
你看过JPlayer吗? ?它可以用作 MP3 播放器,并且兼容 HTML5。另外,还有a bunch of methods用于控制它。
关于php - 类似于 niftyplayer 的可编写脚本的 mp3 播放器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7181113/