admin管理员组

文章数量:1652896

微软最近终于放弃收购雅虎了,yahoo总算能松一口气了……

想给你的网站或者博客弄个MP3播放器吗?试试Yahoo! Media Player吧!

这不是一个下载来用的播放器,事实上你也不需要下载任何东西,只需要嵌到你的网页或Blog里面,用来播放当前页面上所有MP3用的。


整个播放器以JavaScript脚本的形式提供给大家使用。能自动识别的页面上所有MP3链接,并生成一个列表,放置在页面的左下方。访客通过点击链接前面的播放按钮,或者在左下方点开播放器界面,然后播放列表中选中某项就可以播放了。

Yahoo! Media Player现在还是Beta版本,而且JS文件非常大,达到171K。如果你的站点速度够快,还是推荐用一下的。


安装装更简单,你可以在官网和开发者网络找到详细的步骤和技术支持。

首先在你的网页中链接MP3文件,例如:

1: <a href="http://mediaplayer.yahoo/example1.mp3">First link</a> 2: <a href="http://mediaplayer.yahoo/example2.mp3">Second link</a> 3: <a href="http://mediaplayer.yahoo/example3.mp3">Third link</a>
然后调用这段脚本,插入以下代码:

1: <script type="text/javascript" src="http://mediaplayer.yahoo/js"></script>
最后看看效果吧:

First link
Second link
Third link




需要注意的是,迅雷的mp3监视功能可能会使播放出现问题,并且目前还不支持另一个流行的音乐格式wma。

最后引用官方的介绍:

A revolutionary and easy to use music player that plays audio on your website.
Adds audio to your site with one line of HTML
Uses simple, easy-to-hack HTML instead of complicated proprietary markup, ushering in the REAL Media Web
Magical floating design never gets lost, is available when you need it, gets out of your way when you don't need it
Automatically finds all audio links on your page, turning your page into a playlist
Plays all your blog entries with a single button click
Allows you to put the play buttons where they belong: IN CONTEXT
Keeps the user in the page rather than sending them away to a media player
Picks up your images and adds them as cover art
Requires no download, install or maintenance

本文标签: 播放器jscoolPlayerMedia