我创建了一个具有此脚本的index.html文件。
<html>
<body>
<object type="application/x-shockwave-flash" data="player-mini.swf?mp3=file:\\\D:\music\aa.mp3" width="160" height="20" id="dewplayer-mini"><param name="wmode" value="transparent" /><param name="movie" value="player-mini.swf?mp3=file:\\\D:\music\aa.mp3" /></object>
</body>
</html>我使用Dew Player作为我的网站的音频播放器,问题是,当我使用本地主机打开这个index.html文件时,mp3没有播放,而当我通过双击直接打开这个index.html文件时,mp3就很好了。
我知道问题是Mp3文件路径,请告诉我如何给出mp3文件路径,这样它在本地主机上就能正常工作了。露水球员不是问题。
发布于 2013-12-22 15:40:51
您正在使用file:\\\协议
将删除file:\\\从路径更改为文件(将aa.mp3移动到index.html存在的位置)
<html>
<body>
<object type="application/x-shockwave-flash" data="player-mini.swf?mp3={Path_TO_Mp3}/aa.mp3" width="160" height="20" id="dewplayer-mini"><param name="wmode" value="transparent" /><param name="movie" value="player-mini.swf?mp3={Path_TO_Mp3}/aa.mp3" /></object>
</body>
</html>https://stackoverflow.com/questions/20731008
复制相似问题