0

Hi i am developing live video stream in android with wowza media server. I follow this link http://spydroid-ipcamera.googlecode.com/svn/ . I created all the things. Now my problem is i got an error in GenericAudioStream.java class as

    import android.net.rtp.AudioCodec;
    import android.net.rtp.AudioGroup;
    import android.net.rtp.AudioStream;
    import android.net.rtp.RtpStream;

The import android.net.rtp cannot be resolved. How can i resolved it? Can anybody help me to solve this problem? Thanks in advance.

malavika
  • 1,331
  • 4
  • 21
  • 54
  • 1
    press `CTRL + SHIFT + O` and put all jar file in `libs` folder if you have. – MAC Sep 13 '12 at 11:30
  • but i have android2.3 device only to execute this application. So i mentioned in manifest.xml file. Is it possible??? – malavika Sep 13 '12 at 11:53
  • The classes in `android.net.rtp.*` are only available for `android:minSdkVersion="12"` or higher. If you just want to play back an RTSP (RTP, SDP) stream, take a look at http://stackoverflow.com/a/4416773/180740 – Philipp Reichart Sep 13 '12 at 11:59
  • is this final or any alternate solution for this problem? – malavika Sep 13 '12 at 13:34

1 Answers1

0

The android.net.rtp.* package is only available since API level 12 (Android 3.1.x Honeycomb MR1), so your app would need android:minSdkVersion="12" or higher.

If you just want to play back an RTSP (RTP, SDP) stream, take a look at: Does android support APIs for implementing RTP,RTSP for VoIP and PTT Project? -- this claims to work all the way back to Android 2.3 Gingerbread.

Community
  • 1
  • 1
Philipp Reichart
  • 20,771
  • 6
  • 58
  • 65