Flash mp3 播放器与播放列表播放已删除或更改的歌曲

发布于 2024-10-08 21:15:57 字数 516 浏览 3 评论 0原文

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

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

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

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

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

I downloaded player from http://premiumbeat.com but I don't know why what the problem it had with with playlist. I had a playlist in xml file with songs. When i deleted the mp3 from the server, it is still playing. and when i changed the mp3 files it is still playing the original files.

I don't know where these files were saved. I thought it was saved in my browser cache and i cleared it but it didn't work. I thought it was cached in my server, but in my localserver , i had the same problem.

So, again i downloaded the player, and this time it played different song, that i put.

I have a hypothesis. Does flash player (swf object) absorb mp3 files?? i don't think so but how come player is playing the mp3 that has been changed or deleted? if it was in server cache then how long will it take to clear the cache and play new file. However, i don't remember coding something like 'cache';

Can anyone suggest me mp3 music player with playlist(dynamic such that songs can be changed from database however playlist that can be changed from ftp is also appreciable) that is quite small and of courser free.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

囚我心虐我身 2024-10-15 21:15:57

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

  1. 通过 php 使用 fopen、fwrite 和 fclose 编辑 playlist.xml,使其动态化。
  2. 保存播放列表名称,然后将 random() 添加到播放列表文件的名称中。 每次闪存读取您的播放列表时,它都会变成“playlist123874.xml”
  3. ,它会读取不同的文件名,但内容相同,所以它会被刷新,

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

This is how flash works. The first data in the cache loaded will be the only data it will read. Even if you already delete your file, flash already buffered it, so it will still play it. For a simple solution, try "Private Browsing" for chrome or mozilla. But for the real solution, try this:

  1. make your playlist.xml dynamic by editing it through php with fopen, fwrite and fclose.
  2. save the playlist name, then add random() to the name of the playlist file. It will become "playlist123874.xml"
  3. every time flash read your playlist, it will read different filenames but have one content, so it will be refreshed

that's the main idea. try renaming the file you want to play randomly. Check my website librengmusika.org

扛刀软妹 2024-10-15 21:15:57

我认为您需要更改播放列表的路径。您可能使用的默认路径指向您购买播放器的服务器上的默认播放列表。查看有关如何将播放器指向另一个播放列表的说明。

如果您在安装此媒体播放器时遇到问题,首先要尝试的是使用绝对路径而不是相对路径。例如,

不要使用如下所示的相对路径

options.playlistXmlPath = "playlist.xml"
使用完整的绝对路径:

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

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"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文