zoukankan
html css js c++ java
mp3player.swf config.xml playlist.xml格式说明
mp3player.swf播放mp3文件时需要两个xml配置文件
mp3player.swf?config=config.xml&file=playlist.xml
play.html
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="18"> <param name="movie" value="mp.swf?config=config.xml&file=playlist_rss.xml" /> <param name="quality" value="high" /> <param name="id", "mp3player" /> <param name="name", "mp3player" /> <param name="devicefont", "false" /> <param name="menu", "false" /> <param name="allowScriptAccess", "sameDomain" /> <param name="swLiveConnect", "true" /> <param name="wmode", "transparent" /> <embed src="mp.swf?config=config.xml&file=playlist_rss.xml" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="18"> </embed> </object>
config.xml
<config> <mp3config> <autostart>true</autostart> <!--是否自动开始播放 是:true 否:false--> <shuffle>false</shuffle> <!--是否随机播放 是:true 否:false--> <repeat>all</repeat> <!--不重复:none,重复一首歌:one 重复所有:all 整个列表播放一遍:list--> <volume>10</volume> <!--默认音量大小 值为1~100--> <showdisplay>true</showdisplay> <!--是否显示歌曲名 模拟波形器 以及专辑图片--> <showplaylist>true</showplaylist> <!--是否显示播放列表--> <linktarget>_blank</linktarget> <!--打开链接方式 _blank, _self, _top 或者是一个框架名--> <backcolor>0xFFFFFF</backcolor> <!--背景颜色--> <frontcolor>0xC0C0C0</frontcolor> <!--前景颜色--> <lightcolor>0x808080</lightcolor> <!--高亮颜色--> <titlecolor>0x000000</titlecolor> <!--歌曲名颜色--> <fontface>verdana</fontface> <!--自定义字体(所有可见元素的字体)--> <boldfont>true</boldfont> <!--是否粗体--> <jpgfile></jpgfile> <!--载入皮肤,皮肤为JPG文件 需要自己制作 如果没有可留空--> <callback></callback> <!--控制播放状态的脚本地址(播放器可以接受由脚本执行的命令)--> </mp3config> </config>
playlist的xml支持RSS和XSPF两种格式
playlist_RSS.xml
<rss> <channel> <item> <title>L1</title> <link></link> <enclosure url="L2.mp3"/> </item> <item> <title>L2</title> <link></link> <enclosure url="L1.mp3"/> </item> </channel> </rss>
playlist_XSPF.xml
<playlist> <trackList> <track> <annotation>L1</annotation> <location>L1.mp3</location> <info></info> <image></image> <identifier></identifier> </track> <track> <annotation>L2</annotation> <location>L2.mp3</location> <info></info> <image></image> <identifier></identifier> </track> </tracklist> </playlist>
查看全文
相关阅读:
HTML5 视频(二) <video> 使用 DOM 进行控制
HTML5 视频(一)
Front End Developer Questions 前端开发人员问题(三)JavaScript部分
Front End Developer Questions 前端开发人员问题(二)CSS 后续
Front End Developer Questions 前端开发人员问题(二)
Front End Developer Questions 前端开发人员问题(一)
MySQL学习(二)SQL语句的总结
MySQL学习(一)MySQLWorkbench(MySQL可视化工具)下载,安装,测试连接,以及注意事项
my SQL下载安装,环境配置,以及密码忘记的解决,以及navicat for mysql下载,安装,测试连接
软件工程-构建之法 黄色领骑衫展示
原文地址:https://www.cnblogs.com/nlsoft/p/3070809.html
最新文章
Attention[Content]
Clustering[Evaluation]
Clustering[Spectral Clustering]
Generative Adversarial Nets[EBGAN]
Generative Adversarial Nets[LSGAN]
Clustering[Introduction]
Generative Adversarial Nets[Improved GAN]
Generative Adversarial Nets[Vanilla]
Tensorflow[LSTM]
【FLUENT案例】03:冲蚀
热门文章
【FLUENT案例】02:DPM模型
【FLUENT案例】01:T型管混合器中的流动与传热
Windows10上安装EDEM2.7
CFD冲蚀模拟的一些理论
star ccm+ 11.02安装
ANSYS17.0详细安装图文教程
【小白的CFD之旅】17 需要编程?
《小白的CFD之旅》招募写手
【小白的CFD之旅】16 流程
HTML5 音频 <audio>
Copyright © 2011-2022 走看看