网络(非?)流媒体音频解决方案?
我想将多个音频嵌入到我的网站中。 我希望加载文件但在用户点击按钮之前不播放文件。 我还希望能够像 YouTube 一样跳转到尚未加载的地方。 如果我可以播放 ogg、aac、mp4 等,那就太好了,但我不希望这是可能的,所以我不介意用 ffmpeg(或其他任何东西)转换另一个版本
。我可以用什么来拥有这个像 YouTube 一样的音频播放器?
-编辑-抱歉大家,我不在,没有及时选择最佳答案。 我发现 网络(非?)流媒体音频解决方案? 是 sorin 的最佳选择紧随网络(非?)流媒体音频解决方案?
I want to embed multiple audio to my site. I want the file to load but not play until the user hits the button. I also want the ablity to jump to places not yet loaded like youtube does. It would be great if i can play ogg, aac, mp4, etc but i dont expect that would be possible so I wouldnt mind having another version converted by ffmpeg (or anything else)
What can i use to have this youtube like audio player?
-edit- sorry guys i was away and didnt select the best answer in time. I find web (non?)streaming audio solutions? is the best with sorin following closely behind web (non?)streaming audio solutions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不明白你为什么不想流媒体? 因为这正是我在这里推荐的。 请注意,流媒体并不一定意味着像 Windows Media、QuickTime 或 Real Player 那样又大又丑的嵌入式播放器。
我建议使用 MP3 音频和 Flash,使用免费的 JW FLV 媒体播放器 它应该做你想做的一切,除了“低/高质量”的事情,但如果你需要的话,也许你可以只使用两个播放器。
I don't understand why you do not want streaming? Because that is exactly what I would recommend here. Note that streaming does not neccessarily mean a big, ugly, embedded player a la Windows Media, QuickTime or Real Player.
I would recommend using MP3 Audio and Flash, using the free JW FLV Media Player which should do everything that you want, except for the "low/high quality" thing, but maybe you can just use two players if you need.
我会赞同迈克尔的建议,但稍作修改:
您可以使用开源 Flash 播放器(例如 XSPF Flash 播放器)并对其进行破解,使其在您开始播放之前就开始加载声音。 这样,在一段时间后(这取决于客户端和服务器之间的连接),您可以在客户端获得所有声音。
您可能还想看看 Soundmanager v2,它提供了与 Javascript 的紧密集成,无需额外的技巧。
I would second Michael's suggestion with a small modification:
You could use an open-source flash player (like the XSPF Flash player) and hack it such that it starts loading the sound even before you start the playback. This way you can have all the sounds at the client after a certain period of time (which depends on the connection between the client and the server).
You might also want to take a look at Soundmanager v2, which offers a tight integration with Javascript, without the need for additional hacks.
您看过Wimpy Player吗? 他们有各种产品,从简单的音频按钮到带有播放列表的视频播放器。
我不确定是否要跳到文件的不同部分,但他们说它可以使用 Ajax 进行编程,而且我知道您可以设置它是否自动开始播放。
我用过一段时间,但后来改成了带有简单的“播放/暂停”按钮的东西。
(顺便说一句,我不明白你对非流媒体播放器的兴趣。如果用户必须先下载文件,为什么你需要提供一个接口?他们不会用他们使用的任何程序打开它在他们的电脑上?)
Have you seen Wimpy Player? They have various products, from a simple audio button to a video player with a play list.
I'm not sure about skipping to different parts of the file, but they say it is programmable with Ajax, and I know you can set whether it starts playing automatically or not.
I used this for a while, but later changed to something with a simple "play/pause" button.
(By the way, I don't understand your interest in a non-streaming player. If the user has to download the file first, why do you need to provide an interface? Won't they just open it with whatever program they use on their computer?)