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

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

问题描述

我试图实现对iPhone渐进式下载的音频播放器,使用HTTP和固定大小的MP3文件。

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.

/溴约翰内斯

推荐答案

有什么不幸关于简单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标头的内容长度属性来弄清这一点,只要它是一个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天全站免登陆