1

我从http://premiumbeat.com下载了播放器,但我不知道为什么播放列表有什么问题。我在带有歌曲的 xml 文件中有一个播放列表。当我从服务器上删除 mp3 时,它仍在播放。当我更改 mp3 文件时,它仍在播放原始文件。

我不知道这些文件保存在哪里。我以为它保存在我的浏览器缓存中,我清除了它,但它没有用。我以为它缓存在我的服务器中,但在我的 localserver 中,我遇到了同样的问题。

所以,我再次下载了播放器,这次它播放了不同的歌曲,我放了。

我有一个假设。flash player (swf object) 会吸收 mp3 文件吗?我不这么认为,但是为什么播放器正在播放已更改或删除的 mp3?如果它在服务器缓存中,那么清除缓存并播放新文件需要多长时间。但是,我不记得编写过类似“缓存”的代码;

任何人都可以向我推荐带有播放列表的 mp3 音乐播放器(动态的,可以从数据库中更改歌曲,但是可以从 ftp 更改的播放列表也是可观的),它非常小而且当然免费。

4

2 回答 2

1

这就是闪光灯的工作原理。加载的缓存中的第一个数据将是它将读取的唯一数据。即使你已经删除了你的文件,flash 已经缓冲了它,所以它仍然会播放它。对于一个简单的解决方案,请尝试 chrome 或 mozilla 的“私人浏览”。但对于真正的解决方案,试试这个:

  1. 通过使用 fopen、fwrite 和 fclose 的 php 编辑它,使您的 playlist.xml 动态化。
  2. 保存播放列表名称,然后将 random() 添加到播放列表文件的名称中。它将成为“playlist123874.xml”
  3. 每次 flash 读取您的播放列表时,它会读取不同的文件名但只有一个内容,因此会刷新

这是主要思想。尝试重命名要随机播放的文件。检查我的网站librengmusika.org

于 2012-02-18T05:29:16.630 回答
0

I think you need to change the path to your playlist. You are probably using the default path that points to the default playlist on the server where you bought the player. Look at the instructions on how to point the player to another playlist.

If you are having problems installing this media player, the first thing to try is using absolute paths instead of relative paths. For example,

Instead of using a relative path like below

options.playlistXmlPath = "playlist.xml" Use a full absolute path:

options.playlistXmlPath = "http://www.yoursite.com/playlist.xml"

于 2010-12-23T05:46:32.303 回答