public class SdpObserver
extends java.lang.Object
implements org.webrtc.SdpObserver
This class helps to track the possible states of the WebRTC Stream protocol. It proceed to handle failure and successfull states.
| Modifier and Type | Field and Description |
|---|---|
static int |
LOCAL_SDP |
static int |
REMOTE_SDP |
| Constructor and Description |
|---|
SdpObserver(java.lang.String nameObserver,
android.app.Activity activity,
int type)
Constructor for creating a new observer that track the WebRTC states protocol
|
| Modifier and Type | Method and Description |
|---|---|
void |
onCreateFailure(java.lang.String s)
Callback to inform the failure at the moment of creating a new Session descriptor message.
|
void |
onCreateSuccess(org.webrtc.SessionDescription sessionDescription)
Callback to inform the successfully creation of the Session descriptor message.
|
void |
onSetFailure(java.lang.String s)
Callback to inform the failure at the moment of setting a new Session descriptor message.
|
void |
onSetSuccess()
Callback to inform the successfully setting of the Session descriptor message.
|
public static final int LOCAL_SDP
public static final int REMOTE_SDP
public SdpObserver(java.lang.String nameObserver,
android.app.Activity activity,
int type)
nameObserver - the observer name to recognize the ObserverObject in the logsactivity - the activity to access the TextViewtype - the type of the Observer. Remote or Local. Please look at the constants at SdpObserverpublic void onCreateSuccess(org.webrtc.SessionDescription sessionDescription)
onCreateSuccess in interface org.webrtc.SdpObserversessionDescription - the session descriptor created by the WebRTC librarypublic void onSetSuccess()
onSetSuccess in interface org.webrtc.SdpObserverpublic void onCreateFailure(java.lang.String s)
onCreateFailure in interface org.webrtc.SdpObserverpublic void onSetFailure(java.lang.String s)
onSetFailure in interface org.webrtc.SdpObservers - the message description of the failure