L's profilePerfectL HeavenPhotosBlogListsMore Tools Help

Blog


    December 20

    让 MSN Spaces 的播放器支持播放列表~

    传说中的东西~~放在这里慢慢看~~~由于是转载,在此感谢网友Afly!
     

    实际上,根据一些访问来源的反馈才知道,其实有不少这方面的成功的研究,我总结一下:首先你要有自己有权上传或有权引用的空间;然后确定你指定的视频/音乐地址确实可用并“以 http 或 mms 开头;以mp3/wma/wmv/wav/midi/mpg/mpeg/avi 结尾”。

    基本原理都是利用合法的播放列表文件修改扩展名为 MSN  Spaces 所支持的格式,一般可以有以下几个选择:

    利用M3U更名为MP3

    #EXTM3U
    #EXTINF:1,歌曲一信息
    http://www.yourdomian.com/path/1.mp3
    #EXTINF:2,歌曲二信息
    http://www.yourdomian.com/path/2.mp3

    格式如上,后面类推,注意:#EXTINF 后面的第一个序号,其实是媒体文件的长度,以秒为单位,但不严格要求,可随便填写数字;歌曲信息一般还可以有空格等字符;但文件路径那里必须另起一行。编辑完后修改扩展名为:MP3,上传之后,在 MSN Spaces 指定路径就可以了。

    利用ASX更名为WMV

    <ASX version ="3.0">
    <Entry>
      <Title>歌曲标题一</Title>
      <Author>歌手名一</Author>
      <Copyright>版权一</Copyright>
      <Ref href = "http://www.yourdomian.com/path/1.mp3"/>
    </Entry>
    <Entry>
      <Title>歌曲标题二</Title>
      <Author>歌手名二</Author>
      <Copyright>版权二</Copyright>
      <Ref href = "http://www.yourdomian.com/path/2.mp3"/>
    </Entry>
    </ASX>

    格式如上,后面类推,注意:Title/Author/Copyright 标签可以省略,而简单只指定 Ref 路径。编辑完后修改扩展名为:WMV,上传之后,在 MSN Spaces 指定路径就可以了。

    利用带参数的Flash播放器更名为WMV

    我们先来看看这个 Flash Music Player,是一个外国人写的小东西,约9K,点这下载。下载后解压,有两个文件:player.swf 和 playlist.xml,我就按照我自己的理解说明一下使用方法:

    先按照 playlist.xml 里面的示例格式编辑自己的播放列表,音乐文件的路径可相对可绝对;因为我测试时用了中文结果界面出现乱码,所以建议大家用英文编辑;而且根据说明只能播放恒比特率的MP3,不支持变比特率的MP3、WMA、ASX/ASF。

    编辑好了 playlist.xml 播放清单,再看看播放页面的代码了:

    <embed src="Your TinyURL Address" menu="false" quality="high" width="300" height="320" name="index" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="playList=http://yourpath/playlist.xml&ShowPlaylist=1&ShowEQ=1&firstTrack=1&initVol=50" wmode="transparent" border="0" />

    蓝色的是你的 player.swf 的地址,红色是一串接口参数:

    playList - 播放列表(即刚才编辑好的 playlist.xml)的绝对路径
    ShowPlaylist - 播放界面是否显示播放列表
    ShowEQ - 播放界面是否显示均衡器
    firstTrack - 是否指定默认播放的文件,用序号指定;不自动播放设为0
    initVol - 初始化音量,设置值从0到100

    到这里,你已经可以在网页中播放你想要的播放列表了。最后,最重要的一步是:修改 player.swf 的扩展名为(MSN Spaces 的播放器所支持)WMA, WMV, WAV, AVI, MPG, MPEG, MP3 等格式之一!而播放器后面的引用参数不变。嘿,经过测试,将 player.swf 更名为 player.wmv 后,将参数加在 player.wmv 后面,顺利地成功了:

    http://yourpath/player.wmv?playList=http://yourpath/playlist.xml&ShowPlaylist=1&ShowEQ=1&firstTrack=1&initVol=50

    问题到这里其实已告一段落了(原英文说明中提到了 TinyURL,可无须理会,只是一个起到简化播放清单文件路径的作用而已)。

    利用参数内置的Flash播放器更名为WMV

    如果你觉得参数设置太麻烦的话,也有更为方便的方法,换用 Flash MP3 Player点这下载。使用原来跟上面介绍的差不多,只是这里简化了外部参数的设置,还附带了Flash源码和播放页面,你可以按照喜欢的爱好修改播放器。

    最后,把播放器和播放列表都上传(到你有权限上传和引用的空间),然后在你的 Spaces 里指定一下,你就有一个支持播放清单的 MSN Spaces 播放器了。

    Comments (6)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Picture of Anonymous
    RyuuzakiSuu wrote:
    推荐个免费空间 :http://www.filelodge.com/
    大家加油 :)
    Dec. 29
    Picture of Anonymous
    kittenjoe wrote:
    木有空间~
    Dec. 21
    Picture of Anonymous
    Perfect_L wrote:
    没有可以上传的空间,没法试,用过的来谈谈~~
    Dec. 20
    Picture of Anonymous
    piggy wrote:
    这个好像已经失效了吧。。。。
    Dec. 20
    Picture of Anonymous
    Perfect_L wrote:
    看了半天,没有空间也是白搭~~郁闷~!
    Dec. 20
    Picture of Anonymous
    Dec. 20

    Trackbacks

    The trackback URL for this entry is:
    http://perfectl2heaven.spaces.live.com/blog/cns!BE22F13438FE38B1!325.trak
    Weblogs that reference this entry
    • None