Have anyone used mediaplayer to run rtsp streaming successfully either on the emulator or on the HTC device?

by yjshi » Thu, 17 Sep 2009 00:02:56 GMT


Sponsored Links
 Have anyone used mediaplayer to run rtsp streaming successfully either
on the emulator or on the HTC device?
Could anyone give me an example to play the rtsp streaming
successfully?
I tried it too many times ,but always failed.
Could anyone tell me some suggestions? Thanks.
--~--~---------~--~----~------------~-------~--~----~



Have anyone used mediaplayer to run rtsp streaming successfully either on the emulator or on the HTC device?

by Balwinder Kaur (T-Mobile USA) » Thu, 17 Sep 2009 06:27:36 GMT


 Here is a related thread 


Sponsored Links


Other Threads

1. Problem with PhoneStateListener.onSignalStrengthsChanged

I have written an android app which listens to the phone signal
strength. The app works perfectly with Android 1.6 and lower using
PhoneStateListener.SignalStrengthChanged(int asu), but I can't get it
to work on Android 2.1.

I know that I have to use onSignalStrengthsChanged(SignalStrength
signalStrength) but this override never seems to be called in my code.
SignalStrengthChanged(int asu) is called, but this always returns a
signal strength of -1 asu because its been depecated. I need to get
the onSignalStrengthsChanged(SignalStrength signalStrength) to
work.... does anyone know what I'm doing wrong?

I'm testing on a EVO with Android 2.1. The phone type
(TelephonyManager.getPhoneType) is CDMA and
TelephonyManager.getNetworkType returns "EVDO_A".

Here's the code:

mSignalListener = new PhoneStateListener(){
  @Override
    public void onSignalStrengthChanged(int asu){
      Log.d(Utils.LOGTAG, "#1. " + String.valueOf(asu));
      if (mStrength != asu){
        mStrength = asu;
        NotifyUI();
      }
      super.onSignalStrengthChanged(asu);
    }

  @Override
  public void onSignalStrengthsChanged(SignalStrength signalStrength)
{
    Log.d(Utils.LOGTAG, "#2.");  // this never gets called

    if (signalStrength.isGsm())
      mStrength = signalStrength.getGsmSignalStrength();
    else{
      int strength = -1;
      if (signalStrength.getEvdoDbm() < 0)
        strength = signalStrength.getEvdoDbm();
      else if (signalStrength.getCdmaDbm() < 0)
        strength = signalStrength.getCdmaDbm();

      if (strength < 0){
        // convert to asu
        mStrength = Math.round((strength + 113f) / 2f);
      }

      NotifyUI();
    }
    super.onSignalStrengthsChanged(signalStrength);
  }
};


mTelManager =
(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
mTelManager.listen(mSignalListener,
PhoneStateListener.LISTEN_SIGNAL_STRENGTH);


Thanks in advance

TAO

-- 

2. capturing last n lines of logcat

I would like to capture last 100 lines of logs that are entered in
Android logs programmatically. The following command captures logs in
the chronological order.

Process logcatProc = Runtime.getRuntime().exec(
                                                                                
        new String[] { "logcat", "-v", "tag", "-b",
                                                                                
                        "main", "MYLOG:V"  });


I would like to do that in the reverse chronological order.


-- 

3. Html resource localization / internationalization

4. LVL sandbox in Market ?

5. Help - How to write test stubs for GPS device driver

6. Droid Does Everything鈥? Except Te thering

7. listview....want to set different icon in each item in list.