summaryrefslogtreecommitdiff
path: root/voip/java/android/net/sip/SipAudioCall.java
diff options
context:
space:
mode:
authorHung-ying Tyan <tyanh@google.com>2010-08-18 14:37:59 +0800
committerHung-ying Tyan <tyanh@google.com>2010-08-24 17:54:47 +0800
commit3294d44b96f63f647fba3a03604eb028e28a42bc (patch)
treef6e4ed0b30c0edb0e681f39eef43292da250148a /voip/java/android/net/sip/SipAudioCall.java
parenta83987d2ccc6b235dd3dd5cc6206c257dfe9e0a8 (diff)
Add confcall management to SIP calls
and fix the bug of re-assigning connectTime's in SipConnection, and adding synchronization for SipPhone to be thread-safe, and set normal audio mode when call not on hold instead of on hold in SipAudioCallImpl, and fix re-entrance problem in CallManager.setAudioMode() for in-call mode. Change-Id: I54f39dab052062de1ce141e5358d892d30453a3a
Diffstat (limited to 'voip/java/android/net/sip/SipAudioCall.java')
-rw-r--r--voip/java/android/net/sip/SipAudioCall.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/voip/java/android/net/sip/SipAudioCall.java b/voip/java/android/net/sip/SipAudioCall.java
index f4be839da72b..3cdd11489d7e 100644
--- a/voip/java/android/net/sip/SipAudioCall.java
+++ b/voip/java/android/net/sip/SipAudioCall.java
@@ -244,7 +244,8 @@ public interface SipAudioCall {
* Also, the {@code AudioStream} may change its group during a call (e.g.,
* after the call is held/un-held). Finally, the {@code AudioGroup} object
* returned by this method is undefined after the call ends or the
- * {@link #close} method is called.
+ * {@link #close} method is called. If a group object is set by
+ * {@link #setAudioGroup(AudioGroup)}, then this method returns that object.
*
* @return the {@link AudioGroup} object or null if the RTP stream has not
* yet been set up
@@ -253,6 +254,15 @@ public interface SipAudioCall {
AudioGroup getAudioGroup();
/**
+ * Sets the {@link AudioGroup} object which the {@link AudioStream} object
+ * joins. If {@code audioGroup} is null, then the {@code AudioGroup} object
+ * will be dynamically created when needed.
+ *
+ * @see #getAudioStream
+ */
+ void setAudioGroup(AudioGroup audioGroup);
+
+ /**
* Checks if the call is established.
*
* @return true if the call is established