为什么 XSPF Player 无法在 Mac 上运行?
我在新网站上使用 XSPF Player (slim)。 客户告诉我,他们在 Mac 上的 Safari 浏览器中听不到任何音乐。 播放器是可见的,但它只是说“正在加载播放列表...”并且永远不会继续超过该点。 我无法想象为什么它在我尝试过的所有基于 PC 的浏览器中运行良好。 我没有 Mac,所以很难确认这一点。 我无法解决这个问题,并且想知道之前是否有人在 Mac 上遇到过该播放器的问题。 该网站是:
也许 Mac 中有一个安全设置不允许它下载未知的扩展? 该播放列表名为 playlist.xspf。
注意:我什至不想在网站上放音乐,他们坚持要这样做。
I'm using the XSPF Player (slim) on a new website. The client tells me they cannot hear any music on their Mac in Safari. The player is visible but it just says "Loading playlist..." and never continues past that point. I cannot imagine why since it works fine in all the PC-based browsers I have tried. I don't have a Mac so am having a hard time confirming this. I'm at a loss for fixing this issue and am wondering if someone else has had problems with the player on Macs before. The website is:
Maybe there is a security setting in Macs that don't allow it to download unknown extensions? The playlist is called playlist.xspf.
Note: I didn't even want music on the site, they rather insisted.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先恭喜您获得了有效的 XSPF 文件 - 很少有人能正确理解这一点。 我想您可能会对 Windows 上的 Firefox 3.0.5 上没有显示该播放器感兴趣。 我必须深入研究 HTML 代码才能找到播放器 URL。 直接加载时效果很好。 不过,由于我使用的不是 Mac,因此无法提供进一步的帮助。 祝你好运。
First congrats on your valid XSPF file - few people get that right. I thought you might be interested that the player doesn't show up at my Firefox 3.0.5 on Windows. I had to dig into the HTML code to find the player URL. It worked fine when loaded directly. As I'm not on a Mac I cannot offer further help, though. Good luck.
事实证明这只是 Flash 安全问题。 客户端在 URL 前面使用了 www,而我没有。 如果没有设置跨域策略,Flash 将不会从主机加载某些内容。 我已将 XSPF 文件的路径更改为相对路径,现在无论输入的域如何,它都可以正常工作。
到了某个时候我会抛出 301。
Turns out it was simply a Flash security issue. The client was using www in front of the URL, I was not. Without a cross-domain policy set up Flash will not load something from a host. I've changed the path to the XSPF file to be relative and now it works regardless of the domain entered.
At some point I'll toss in a 301.