-
public interface CreateSessionDescriptionObserverCallback interface used to obtainRTCSessionDescriptions when calling eithercreateOfferorcreateAnswer.- Author:
- Alex Andres
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonFailure(String error)An error has occurred, causing the RTCPeerConnection to abort the SDP generation procedure.voidonSuccess(RTCSessionDescription description)Receives the generated SDP answer/offer.
-
-
-
Method Detail
-
onSuccess
void onSuccess(RTCSessionDescription description)
Receives the generated SDP answer/offer. The SDP contains descriptions of the local MediaStreamTracks attached to the RTCPeerConnection, the codec/RTP/RTCP options negotiated for the current session, and any candidates that have been gathered by the ICE Agent.- Parameters:
description- The generated answer/offer session description.
-
onFailure
void onFailure(String error)
An error has occurred, causing the RTCPeerConnection to abort the SDP generation procedure.- Parameters:
error- The error message.
-
-