iPhone渐进式下载音频播放器 [英] iPhone progressive download audio player

查看:29
本文介绍了iPhone渐进式下载音频播放器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 http 和固定大小的 mp3 文件为 iPhone 实现渐进式下载音频播放器.

I'm trying to implement a progressive download audio player for the iPhone, using http and fixed size mp3-files.

我找到了 AudioStreamer 项目,但它看起来非常复杂,并且最适合无限流.

I found the AudioStreamer project but it seems very complicated and works best with endless streams.

我需要能够找出音频文件的总长度,并且我还需要能够在文件中查找.我发现了一个与 AudioStreamer 的黑客偏差,但它对我来说似乎不太好用.http://www.saygoodnight.com/?p=14

I need to be able to find out the total length of audio files and I also need to be able to seek in the files. I found a hacked deviation from AudioStreamer but it doesn't seem to work very well for me. http://www.saygoodnight.com/?p=14

我想知道是否有更简单的方法来实现我的目标,或者是否有一些更好的工作示例?我找到了低音库,但没有太多关于它的文档.

I'm wondering if there is a simpler way to achieve my goals or if there are some better working samples out there? I found the bass library but not much documentation about it.

/Br 约翰内斯

推荐答案

不幸的是,在 iPhone 上播放音频流并不简单.这是让我开始的文章:流式传输和播放 MP3 流

There's unfortunately nothing simple about playing audio streams on the iPhone. Here's the article that got me started: Streaming and playing an MP3 stream

这是一个 OSX 项目,但其中大部分也适用于 iPhone.至于获得它的完整播放时间,您可能必须根据 http 标头的 content-length 属性来计算它,前提是它是一个 CBR 文件.否则,我想您必须在确定之前下载整个文件.

It's an OSX project, but most of it will work with the iPhone too. As for getting the full play time of it, you'd probably have to figure that out based on the content-length property of http header, provided it's a CBR file. Otherwise, I imagine you'd have to download the entire file before determining that.

这篇关于iPhone渐进式下载音频播放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆