Rewrite Android Java class using Android.net.rtp deprecated API

Job ID: 33202777

Budget: €30 – €250 EUR

My Android app (Push-To-Talk) needs to manage Voip and up today I used android.net.rtp.RtpStream library.

I need to:

- send, to a my server, a VoIP flow (using GSM codec, UDP packets), capturing audio from Android Smartphone microphone
- receive, from a my server, a VoIP flow (UDP packets, always by GSM codec), playing it in Android Smartphone loudspeaker.

It worked up to Android 11, but starting from Android 12 it doesn't work anymore because android.net.rtp.RtpStream is deprecated.

In "https://developer.android.com/reference/android/net/rtp/RtpStream" no alternatives solution are mentioned, just deprecated.

I need an alternative solution, so the developper should rewrite the class here uploaded with something alternative to library "android.net.rtp"