Audio streaming/progressive download over HTTP

by Alexander » Wed, 15 Apr 2009 04:12:42 GMT


Sponsored Links
 Hi All,

I have a couple questions regarding audio streaming/progressive
download over
HTTP. Could you please help me?

1. MediaPlayer supports progressive download according to the
developer guide from
this link  http://developer.android.com/guide/topics/media/index.html 
("If you're
passing a URL to an online media file, the file must be capable of
progressive
download."). As far as I understand progressive download means media
playback during
download process with saving the media file to file system(SD card or
internal FS) after
the downloading is finished (if it's a file, not a stream in the
passed URL).
So, I tried to set the following URL: setDataSource
( http://84.204.154.49/mmapi/music.mp3 ). Playback is fine, but the file
isn't saved to
SD card or internal phone file system. Can MediaPlayer save media
content to the file system
after downloading is completed? Is there a way to turn on such
capability?


2. Does MediaPlayer support HTTP streaming? I tried to use
 http://217.10.32.134 :8129/ultrafan128.mp3,  http://62.32.66.180 :8800,
also AMR-, AAC-
audio stream over HTTP on the local server, but playback does not
work. For example,
RTSP streaming works fine with AMR and AAC.


Thank you,
   Alexander
--~--~---------~--~----~------------~-------~--~----~



Audio streaming/progressive download over HTTP

by Dave Sparks » Wed, 15 Apr 2009 05:56:57 GMT


 We don't have an API for progressive download yet. Technically, the
website should say "progressive streaming", but from a file authoring
perspective there is no distinction between the two.

RTSP support is only available for MPEG-4 file formats. There is no
support for raw AMR, AAC, or MP3 streams.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Audio streaming/progressive download over HTTP

by patrick » Wed, 15 Apr 2009 20:53:56 GMT


 When you say "no support for AAC", does it mean "no AAC support for
pure audio stream"?
Can we use rtsp streaming with a MPEG-4 video containing an AAC audio
channel?




--~--~---------~--~----~------------~-------~--~----~



Audio streaming/progressive download over HTTP

by Dave Sparks » Thu, 16 Apr 2009 03:40:18 GMT


 AAC inside an MP4 file is fine. There is no support for raw AAC
streams.





--~--~---------~--~----~------------~-------~--~----~



Audio streaming/progressive download over HTTP

by tainy » Wed, 22 Apr 2009 17:04:54 GMT


 Hi Dave:

for audio streaming, only MPEG-4(AAC LC/LTP decoding) is supported,
right?
what about video streaming? I found no place saying that is not
supported, but someone said video streaming is not available by now.
and if it will be supported, what format will be ok for streaming?
thanks!

tainy






--~--~---------~--~----~------------~-------~--~----~



Audio streaming/progressive download over HTTP

by Dave Sparks » Thu, 23 Apr 2009 07:59:22 GMT


 rogressive streaming using HTTP is well-supported.

RTSP support isn't great yet, but it will get better with the 1.5
release (Cupcake), which fixes the 302 redirect problem. There may be
some issues with RTSP and H.264 - we found some issues with the
hardware codec late in the test cycle that we're too risky to fix. H.
263 and MPEG4-SP should work pretty well.

The caveat with RTSP is that carriers may block the streams.

On Apr 22, 2:04 am, tainy <tainy.zh...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Audio streaming/progressive download over HTTP

by tainy » Thu, 23 Apr 2009 10:37:23 GMT


 hanks a lof , Dave.

So I can use http streaming on H.264/H.263/MPEG4-SP
and use rtsp streaming on H.263/MPEG4-SP, the issue with H.264
will be fixed
thanks for your work.

what is more, how about the support for flash video(flv)? Do you know
anything about that? and will it being supported for streaming?

tainy

On 43 79 Dave Sparks <davidspa...@android.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Audio streaming/progressive download over HTTP

by tainy » Thu, 23 Apr 2009 15:02:31 GMT


 hat is more:

according to "media-formats.html" in the reference, MPEG4 SP is not
supported for both encoding and decoding,
so how can it support streaming?
quite confusing.

On 43 79 Dave Sparks <davidspa...@android.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Audio streaming/progressive download over HTTP

by Dave Sparks » Fri, 24 Apr 2009 01:12:22 GMT


 here is currently no support for Flash in Android.

On Apr 22, 7:37 pm, tainy <tainy.zh...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Audio streaming/progressive download over HTTP

by Dave Sparks » Fri, 24 Apr 2009 01:16:19 GMT


 'm not sure which reference you a referring to, but MPEG4-SP decode
is supported.

Encoding implies streaming upload, but the subject of this thread is
download, not upload. If you are asking about RTSP upload streaming,
that is not supported in any format today.

On Apr 23, 12:02 am, tainy <tainy.zh...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Audio streaming/progressive download over HTTP

by tainy » Fri, 24 Apr 2009 13:24:15 GMT


 hank you Dave

I have checked the newest version of "android supported Media Formats
" and found that MEPG4 SP is is Decoder supported.

And what I am asking here is all about downloading:-)

Best regards!

tainy

On 44 16 Dave Sparks <davidspa...@android.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Audio streaming/progressive download over HTTP

by Dilli » Mon, 11 May 2009 18:49:10 GMT


 i Dave Sparks,

According to above discussion
raw aac file format not supported in the android.

If i send RTP packets which contains AAC audio frame in "mp4a-latm"
format , then the android will capable to play the stream ?

i am using android sdk "android-sdk-windows-1.0_r2"



On Apr 23, 10:16 pm, Dave Sparks <davidspa...@android.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Audio streaming/progressive download over HTTP

by David Liu » Tue, 12 May 2009 01:37:22 GMT


 I'm currently using the MediaPlayer class to play some files. However,
it seems that whenever I seek back and forth, it needs to re-download
and buffer parts it has already played.

Is this what you mean by no "progressive download yet"?





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Getting the Model Number field

In Settings > About phone there is a field Model Number which now
obviously says "T-Mobile G1". But to already be device-independent for
the future, is there a way in the SDK to get this field. I will not be
using it to identify the device but simply to form a string that says
"I am running Android on my [Model Number]"

Thanks
--~--~---------~--~----~------------~-------~--~----~

2. Taking Camera Pictures in app

Still trying to figure this out, but not getting anywhere on it.

Does taking a picture using the camera only require creating the
Camera.PictureCallback for onPictureTaken() and passing it into
Camera.takePicture() as an input?  Or do you have to stop the preview,
lock the canvas, and convert/extract data from there to get it into a
writable form?

I'm fine with the first one, but completely confused as to how to do
the latter.

Also, is taking pictures in the emulator functional or not?  I tried
to run CameraApiTest and it crashes hard whenever I hit spacebar, even
though I have an SD card instantiated.
--~--~---------~--~----~------------~-------~--~----~

3. why would android call oncreate when flipping the keyboard

4. install application from sdcard, how?!

5. chmod unexpected permission error when logged into an actual device

6. Viewing Market Comments

7. Suggestion