jQuery 音频播放器

发布于 2024-08-31 09:20:47 字数 340 浏览 7 评论 0原文

我收到了 2 个 MP3 文件,一个 4.5Mb,另一个 5.6Mb。我被指示让他们在我管理的网站上玩。我找到了一个漂亮、干净的基于 CSS 的 jQuery 音频播放器。

我的问题是,对于那么大的文件来说,这是正确的解决方案吗?我不确定播放器是否预加载文件或流式传输文件? (如果这是正确的术语)我不太处理音频播放器之类的...

这个播放器来自 happyworm.com/jquery/jplayer/latest/demo-01.htm

我应该采取另一种方法来获得这个能正常玩吗?我不希望它必须缓冲,并且访问者必须等待,或者缓慢的页面加载......等等。我希望它能够干净地运行,并且不会影响访问者对网站的会话。

I was given 2 MP3 files, one that is 4.5Mb and one that is 5.6Mb. I was instructed to have them play on a website I am managing. I have found a nice, clean looking CSS based jQuery audio player.

My question is, is this the right solution for files that big? I am not sure if the player preloads the file, or streams it? (If that is the correct terminology) I don't deal much with audio players and such...

This player is from happyworm.com/jquery/jplayer/latest/demo-01.htm

Is there another approach I shoudl take to get this to play properly? I don't want it to have to buffer, and the visitor to wait, or slow page loading... etc.etc. I want it to play clean and not affect the visitors session to the site.

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

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

发布评论

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

评论(1

感悟人生的甜 2024-09-07 09:20:47

这个名字有点误导 - MP3 播放是在 中完成的Flash 组件,与所有其他类似播放器一样。它的 jQuery 部分是播放器的控制和定制(这非常好,我并不是对这个产品说任何反对的话)。

播放器应该能够在加载 MP3 文件时播放它。它不会是真正的流媒体(因为你不能跳到任意位置),但它应该可以正常工作。
确保您使用大 MP3 文件自行测试缓冲。请记住根据规则对 MP3 文件进行编码,否则文件将无法正常工作,尤其是在较旧的播放器中。

The name is a bit misleading - the MP3 playing is done in a Flash component, as in all other similar players, too. The jQuery part of it is the control and customization of the player (which is very nice, I'm not saying anything against the product).

The player should be capable to play an MP3 file while it loads. It's not going to be real streaming (because you can't skip to arbitrary positions) but it should work out all right.
Make sure you test the buffering yourself, using a big MP3 file. Remember to encode the MP3 files according to the rules because otherwise the files will act up, especially in older players.

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