summaryrefslogtreecommitdiffstats
path: root/voip/java/android/net/rtp
diff options
context:
space:
mode:
authorChia-chi Yeh <chiachi@android.com>2010-09-21 15:27:28 +0800
committerrepo sync <chiachi@android.com>2010-09-23 03:34:14 +0800
commit37adc522f6bc074a688ffbef420a8627ef9a4b5b (patch)
treef80baaf582d10cab68ae8bc5da5aa6fca71a2ff5 /voip/java/android/net/rtp
parent32e106b7bdd57c82ee67705871f6116d92bce79b (diff)
downloadframeworks_base-37adc522f6bc074a688ffbef420a8627ef9a4b5b.zip
frameworks_base-37adc522f6bc074a688ffbef420a8627ef9a4b5b.tar.gz
frameworks_base-37adc522f6bc074a688ffbef420a8627ef9a4b5b.tar.bz2
RTP: Add two getters to retrieve the current configuration from AudioStream.
Change-Id: Iff588130653242f6ddd6a6b663df775ecb276768
Diffstat (limited to 'voip/java/android/net/rtp')
-rw-r--r--voip/java/android/net/rtp/AudioStream.java21
1 files changed, 20 insertions, 1 deletions
diff --git a/voip/java/android/net/rtp/AudioStream.java b/voip/java/android/net/rtp/AudioStream.java
index 908aada..e5197ce 100644
--- a/voip/java/android/net/rtp/AudioStream.java
+++ b/voip/java/android/net/rtp/AudioStream.java
@@ -96,6 +96,15 @@ public class AudioStream extends RtpStream {
}
/**
+ * Returns the {@link AudioCodec}, or {@code null} if it is not set.
+ *
+ * @see #setCodec(AudioCodec)
+ */
+ public AudioCodec getCodec() {
+ return mCodec;
+ }
+
+ /**
* Sets the {@link AudioCodec}.
*
* @param codec The AudioCodec to be used.
@@ -113,12 +122,22 @@ public class AudioStream extends RtpStream {
}
/**
+ * Returns the RTP payload type for dual-tone multi-frequency (DTMF) digits,
+ * or {@code -1} if it is not enabled.
+ *
+ * @see #setDtmfType(int)
+ */
+ public int getDtmfType() {
+ return mDtmfType;
+ }
+
+ /**
* Sets the RTP payload type for dual-tone multi-frequency (DTMF) digits.
* The primary usage is to send digits to the remote gateway to perform
* certain tasks, such as second-stage dialing. According to RFC 2833, the
* RTP payload type for DTMF is assigned dynamically, so it must be in the
* range of 96 and 127. One can use {@code -1} to disable DTMF and free up
- * the previous assigned value. This method cannot be called when the stream
+ * the previous assigned type. This method cannot be called when the stream
* already joined an {@link AudioGroup}.
*
* @param type The RTP payload type to be used or {@code -1} to disable it.