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. AudioTrack flush() does not work

I am calling stop(), flush(), start() on my audiotrack when changning
songs.

This seems to only work the first time. After that, playbackposition
does not become 0, and in fact all the data queued up from the old
song plays until the buffer is drained. This is pretty bad, since I
need a large buffer to avoid skipping under heavy CPU load.

Is this a known problem? Any way around it?

-- Jonas Minnberg

-- 

2. Button State does not toggle automatically!! Help!

Guys,

I am trying to get the button in my layout to have focus as I am
programmatically changing its state. My application is a video player
using VideoView. I am toggling the state of the button based on where
my video is. So basically, I am doing videoview.getCurrentPosition()
and if it is in a certain window, I want to toggle my Button state
(enabled to disabled and vice versa). The layout is LinearLayout and I
have the VideoView and Button layed horizontally. When I first had the
MediaController in my Video, the button would change focus on touching
the videoview (which is when the MediaController would pop up). I
later removed the controller because I didn't want the button state to
change when the user touches the screen. I want it to change
automatically.

I tried all sorts of combinations possible. button.setFocusable(),
button.requestFocus(), button.bringToFront() and so on. But none of
them seem to work.

Is there any way I can make it toggle programatically and without user
intervention through touch? or is it impossible to do it with the
VideoView?

Thanks,

Abhi

-- 

3. Greedy Pirates - My First Android Game

4. Problem scrolling webview with javascript scrollIntoView() method

5. Concept of Alternate Runtimes in Android-2.2 Compatibility Definition Documen

6. question regarding home activity

7. unable to set system property