Android的MediaPlayer的,对于渐进式下载音频或不支持? [英] Android MediaPlayer, support for progressive download audio or not?

查看:491
本文介绍了Android的MediaPlayer的,对于渐进式下载音频或不支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我正在执行,其中的一个问题是关于从流式音频的渐进式下载切换的可能性的可行性研究。通过渐进式下载我的意思是音频文件,这是由什么也没有它看中了一款标准的Web服务器托管,可通过标准的HTTP调用来下载和播放的 的整个文件全部下载完毕之前。

I'm currently performing a feasibility study where one of the questions is concerning the possibility to switch from streaming to progressive download of audio. By progressive download I mean that the audio files, which are hosted by a standard web server with nothing fancy on it, can be downloaded through standard http calls, and played back before the whole file is downloaded completely.

我公司已对外承包Android应用开发者,现在声称,虽然在上述规定的方式渐进式下载工作正常的MP3文件,但它是不可能的AAC MP4文件。我没有理由怀疑开发商,但我喜欢第二个意见。我一直在研究这个话题(由疯狂的google搜索),并发现没有理由为它不工作。我还测试了在Android Market(MX播放器实例)一些现有的球员,在下载他们可以发挥的文件。

My company's has contracted external Android app developers, which now claim that although progressive download in the manner specified above works fine for the MP3 files but that it is not possible with the AAC MP4 files. I have no reason to doubt the developers, but I would love a second opinion. I've been researching this topic (by frantic googling) and find no reason for it not to work. I've also tested some existing players on the Android Market (MX player for instance) and they can play the files while downloading.

所以我的问题基本上是,如果任何人知道的一个事实,使用在Android上的MediaPlayer组件(假设版本2.1至4.1)时,AAC MP4文件之前渐进式下载和播放完全是实际下载工程?

So my question is basically if anyone know for a fact that using the MediaPlayer component in Android (let's say versions 2.1 through 4.1), progressive download and playback before the AAC MP4 file is downloaded completely actually works?

此外,由于AAC codeC和MP4容器有很大的复杂得多MP3,做我们必须做我们的文件编码的东西他们,以确保渐进式下载与MediaPlayer的组件时?研究当我发现一些的fastStart选项的一些信息,也暗示,这可能会或可能不会是重要的(提示似乎是最神奇的主题之一...一半的文章/博客说你需要暗示,但另一半说,你绝对不需要提示)。因为我可以MX播放器播放逐渐,我猜是需要什么,我们已编码的执行,还是我错在这个假设?

Also, since the AAC codec and the MP4 container are vastly more complex than MP3, do we have to do something with our files when encoding them to ensure progressive download with the MediaPlayer component? When researching I found some information about some "faststart" option, and also "hinting" which may or may not be important (hinting seems to be one of the most "magical" topics... half of the articles/blogs say you need to hint, but the other half says that you definitely don't need to hint). Since I can play back progressively with MX Player, I am guessing that our encoding already performs whatever is needed, or am I wrong in this assumption?

干杯!

推荐答案

(免责声明:这是视频文件,而不是那些音乐做)

(disclaimer : that was done with video files, not music ones)

我已经做到了,这是完全可行的。

I have done that, it is completely feasible.

与MP4的技巧是发生在文件/开始/指数,而不是在到底哪里它通常是。

The trick with MP4 is to place the index at the /beginning/ of the file, rather than at the end where it usually is.

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

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