Actionscript 3,播放 MP3 文件的特定部分而不加载全部内容?
我在办公室有一个 MP3 播放器项目,它
即将完成,但我有一个问题,
当用户从任何点开始播放歌曲时,我需要您的帮助,整个 mp3 文件被加载,然后从用户选择的点开始播放,
所以现在我需要一个解决方案,能够从特定时间播放 mp3,而无需加载整个 mp3 才能做到这一点
(就像 youtube 一样,当您单击视频中间时,它就会从此时开始播放)
任何帮助将不胜感激, 谢谢。
I have a project at office which is mp3 player
its almost finished but I have a problem in which I need your help
when a user start a song from any point, the whole mp3 file gets loaded then start to play from the point user selected
so now I need a solution to be able to play the mp3 from a specific time without loading the whole mp3 to be able to do that
(You know like youtube when you click in the middle of a video and it starts to play from this point)
Any help will be greatly appreciated, Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
YouTube 视频由流媒体服务器播放,允许您跳转到特定位置而无需加载所有内容。这对于标准文件服务器来说是不可能的。您必须将 mp3 发送到流媒体服务器上才能执行此操作(red5、FMS、在线流媒体服务...),但我想这对于您的项目来说可能有点过头了。
Youtube videos are broadcasted by a streaming server which allows you to jump to a specific position without loading everything. This is not possible with a standard file server. You must send your mp3 onto a streaming server to do so (red5, FMS, online streaming service...), but I guess it may be overkill for your project.