Android 1.6, RTP live supported?

by Yadnesh Phadke » Mon, 26 Jul 2010 19:51:35 GMT


Sponsored Links
 Hi All,

For quiet some time now I am trying to stream over RTP files on my machine
to my Android device.  I am using FFMpeg to do the task of reading media
files and do the RTP packetization.  I am using the FFServer to work as RTSP
server for my stream.

The stream Video is in H.264 format and Audio is in AAC format.  See below
the SDP that is returned by FFServer.    H.264 and AAC are Android supported
media formats.  But I am getting error (see below) when trying to play the
RTSP stream using application developed using MediaPlayer class.

Is streaming of video and audio in separate streams packetized using RTP
format supported in Android 1.6?  If RTP live is supported by MediaPlayer,
Can anyone please give tips about which encoder variation does Android 1.6
expects to have been used?  Within H.246/AAC there are many variations,
probably Android does not like the encoder that I am using :)

I have already gone through a relevant post Playing live stream (RTP) in
MediaPlayer:



Android 1.6, RTP live supported?

by Yadnesh » Mon, 26 Jul 2010 20:53:12 GMT


  came across a topic "RTP stream video decoding" (http://
groups.google.com/group/android-developers/browse_thread/thread/
f963e8f7ac35b75b/481c181362eaa66c?show_docid=481c181362eaa66c#) on
this forum.

Here I see a post stating:
------------------------------------------------------------------
Essentially it seems that at this stage the only way to get an RTP
stream to work is a couple of hacks
------------------------------------------------------------------

Using this information, may I conclude that playing RTP live stream
over RTSP is not supported by default?

But Again a Google search tells me that many users are playing live
stream from Wowza media server. Also there are notes suggesting that
users are watching RTP live streams on their Android G1.

Could anyone please clarify?

Regards,
Yadnesh

On Jul 26, 4:51pm, Yadnesh Phadke <yadn...@gmail.com> wrote:

--


Sponsored Links


Other Threads

1. Can't delete SMS in SI

Hi all :
   I try to delete SMS in SIM from Messaging , but neither I choice
delete all or delete one SMS in SIM , the SMS can't be deleted.
  I check source code in SmsManager , I find that the function
simISms.updateMessageOnSimEf always return false , but with Android
1.5 SDK no ISms.c anymore but only ISms.aidl , so please help or
advice me the guide to solve this issue.

B.R
Light
--~--~---------~--~----~------------~-------~--~----~

2. Setting Default Ringer Issue

I'm setting the default ringer to a resource in my application with
the following code.

Uri mediaUri = Uri.parse("android.resource://
com.Diligent.Apps.YoGabbaBoard/" + mediaId);
RingtoneManager.setActualDefaultRingtoneUri(getApplicationContext(),
RingtoneManager.TYPE_RINGTONE, mediaUri);

I can play the resource via the RingtoneManager with this code:
RingtoneManager.getRingtone(getApplicationContext(), mediaUri).play();

This plays the sound I would expect.

However, if I ask the RingtoneManager to play the default ringer, it
plays the default android ringer.
Here is the code I'm using to play the default ringer:

Uri defaultUri = RingtoneManager.getDefaultUri
(RingtoneManager.TYPE_RINGTONE);
Ringtone rt = RingtoneManager.getRingtone(getApplicationContext(),
defaultUri);

The question is...
Why is the "setActualDefaultRingtoneUri" method call not setting the
default ringer?

What am I doing wrong? I've searched many user forums, read the docs,
and all the news groups and I cant seem to find what I'm doing wrong.

Thanks!
--~--~---------~--~----~------------~-------~--~----~

3. More Appwidget Phantom Scenarios?

4. Adding your app to other apps menu how to

5. GUI test tool/framework for Android?

6. Error in running unit tests

7. font typeface dynamically