Skip to content

Most visited

Recently visited

added in API level 12

Provides APIs for RTP (Real-time Transport Protocol), allowing applications to manage on-demand or interactive data streaming. In particular, apps that provide VOIP, push-to-talk, conferencing, and audio streaming can use these APIs to initiate sessions and transmit or receive data streams over any available network.

To support audio conferencing and similar usages, you need to instantiate two classes as endpoints for the stream:

The simplest usage involves a single remote endpoint and local endpoint. For more complex usages, refer to the limitations described for AudioGroup.

Note: To use the RTP APIs, you must request the INTERNET and RECORD_AUDIO permissions in your manifest file.


AudioCodec This class defines a collection of audio codecs to be used with AudioStreams. 
AudioGroup An AudioGroup is an audio hub for the speaker, the microphone, and AudioStreams. 
AudioStream An AudioStream is a RtpStream which carrys audio payloads over Real-time Transport Protocol (RTP). 
RtpStream RtpStream represents the base class of streams which send and receive network packets with media payloads over Real-time Transport Protocol (RTP). 
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Suivez Google Developers sur WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)