public interface SdpEndpoint extends SessionEndpoint
The API provides the following functionality:
Modifier and Type | Method and Description |
---|---|
String |
generateOffer()
Generates an SDP offer with media capabilities of the Endpoint.
|
void |
generateOffer(Continuation<String> cont)
Asynchronous version of generateOffer:
Continuation.onSuccess(F) is called when the action is
done. |
TFuture<String> |
generateOffer(Transaction tx)
Generates an SDP offer with media capabilities of the Endpoint.
|
String |
getLocalSessionDescriptor()
Returns the local SDP.
|
void |
getLocalSessionDescriptor(Continuation<String> cont)
Asynchronous version of getLocalSessionDescriptor:
Continuation.onSuccess(F) is called when the action is
done. |
TFuture<String> |
getLocalSessionDescriptor(Transaction tx)
Returns the local SDP.
|
int |
getMaxAudioRecvBandwidth()
Get Maximum bitrate expected for the received audio stream.
|
void |
getMaxAudioRecvBandwidth(Continuation<Integer> cont)
Get Maximum bitrate expected for the received audio stream.
|
TFuture<Integer> |
getMaxAudioRecvBandwidth(Transaction tx)
Get Maximum bitrate expected for the received audio stream.
|
int |
getMaxVideoRecvBandwidth()
Get Maximum bitrate expected for the received video stream.
|
void |
getMaxVideoRecvBandwidth(Continuation<Integer> cont)
Get Maximum bitrate expected for the received video stream.
|
TFuture<Integer> |
getMaxVideoRecvBandwidth(Transaction tx)
Get Maximum bitrate expected for the received video stream.
|
String |
getRemoteSessionDescriptor()
This method returns the remote SDP.
|
void |
getRemoteSessionDescriptor(Continuation<String> cont)
Asynchronous version of getRemoteSessionDescriptor:
Continuation.onSuccess(F) is called when the action is
done. |
TFuture<String> |
getRemoteSessionDescriptor(Transaction tx)
This method returns the remote SDP.
|
String |
processAnswer(String answer)
Generates an SDP offer with media capabilities of the Endpoint.
|
void |
processAnswer(String answer,
Continuation<String> cont)
Asynchronous version of processAnswer:
Continuation.onSuccess(F) is called when the action is
done. |
TFuture<String> |
processAnswer(Transaction tx,
String answer)
Generates an SDP offer with media capabilities of the Endpoint.
|
String |
processOffer(String offer)
Processes SDP offer of the remote peer, and generates an SDP answer based on the endpoint's capabilities.
|
void |
processOffer(String offer,
Continuation<String> cont)
Asynchronous version of processOffer:
Continuation.onSuccess(F) is called when the action is
done. |
TFuture<String> |
processOffer(Transaction tx,
String offer)
Processes SDP offer of the remote peer, and generates an SDP answer based on the endpoint's capabilities.
|
void |
setMaxAudioRecvBandwidth(int maxAudioRecvBandwidth)
Set Maximum bitrate expected for the received audio stream.
|
void |
setMaxAudioRecvBandwidth(int maxAudioRecvBandwidth,
Continuation<Void> cont)
Set Maximum bitrate expected for the received audio stream.
|
void |
setMaxAudioRecvBandwidth(int maxAudioRecvBandwidth,
Transaction tx)
Set Maximum bitrate expected for the received audio stream.
|
void |
setMaxVideoRecvBandwidth(int maxVideoRecvBandwidth)
Set Maximum bitrate expected for the received video stream.
|
void |
setMaxVideoRecvBandwidth(int maxVideoRecvBandwidth,
Continuation<Void> cont)
Set Maximum bitrate expected for the received video stream.
|
void |
setMaxVideoRecvBandwidth(int maxVideoRecvBandwidth,
Transaction tx)
Set Maximum bitrate expected for the received video stream.
|
addMediaSessionStartedListener, addMediaSessionStartedListener, addMediaSessionTerminatedListener, addMediaSessionTerminatedListener, removeMediaSessionStartedListener, removeMediaSessionStartedListener, removeMediaSessionTerminatedListener, removeMediaSessionTerminatedListener
addElementConnectedListener, addElementConnectedListener, addElementDisconnectedListener, addElementDisconnectedListener, addMediaFlowInStateChangeListener, addMediaFlowInStateChangeListener, addMediaFlowOutStateChangeListener, addMediaFlowOutStateChangeListener, addMediaTranscodingStateChangeListener, addMediaTranscodingStateChangeListener, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, getGstreamerDot, getGstreamerDot, getGstreamerDot, getGstreamerDot, getGstreamerDot, getGstreamerDot, getMaxOuputBitrate, getMaxOuputBitrate, getMaxOuputBitrate, getMaxOutputBitrate, getMaxOutputBitrate, getMaxOutputBitrate, getMinOuputBitrate, getMinOuputBitrate, getMinOuputBitrate, getMinOutputBitrate, getMinOutputBitrate, getMinOutputBitrate, getSinkConnections, getSinkConnections, getSinkConnections, getSinkConnections, getSinkConnections, getSinkConnections, getSinkConnections, getSinkConnections, getSinkConnections, getSourceConnections, getSourceConnections, getSourceConnections, getSourceConnections, getSourceConnections, getSourceConnections, getSourceConnections, getSourceConnections, getSourceConnections, getStats, getStats, getStats, getStats, getStats, getStats, isMediaFlowingIn, isMediaFlowingIn, isMediaFlowingIn, isMediaFlowingIn, isMediaFlowingIn, isMediaFlowingIn, isMediaFlowingOut, isMediaFlowingOut, isMediaFlowingOut, isMediaFlowingOut, isMediaFlowingOut, isMediaFlowingOut, isMediaTranscoding, isMediaTranscoding, isMediaTranscoding, isMediaTranscoding, isMediaTranscoding, isMediaTranscoding, removeElementConnectedListener, removeElementConnectedListener, removeElementDisconnectedListener, removeElementDisconnectedListener, removeMediaFlowInStateChangeListener, removeMediaFlowInStateChangeListener, removeMediaFlowOutStateChangeListener, removeMediaFlowOutStateChangeListener, removeMediaTranscodingStateChangeListener, removeMediaTranscodingStateChangeListener, setAudioFormat, setAudioFormat, setAudioFormat, setMaxOuputBitrate, setMaxOuputBitrate, setMaxOuputBitrate, setMaxOutputBitrate, setMaxOutputBitrate, setMaxOutputBitrate, setMinOuputBitrate, setMinOuputBitrate, setMinOuputBitrate, setMinOutputBitrate, setMinOutputBitrate, setMinOutputBitrate, setOutputBitrate, setOutputBitrate, setOutputBitrate, setVideoFormat, setVideoFormat, setVideoFormat
addErrorListener, addErrorListener, addTag, addTag, addTag, getChildren, getChildren, getChildren, getChilds, getChilds, getChilds, getCreationTime, getCreationTime, getCreationTime, getId, getId, getId, getMediaPipeline, getMediaPipeline, getMediaPipeline, getName, getName, getName, getParent, getParent, getParent, getSendTagsInEvents, getSendTagsInEvents, getSendTagsInEvents, getTag, getTag, getTag, getTags, getTags, getTags, removeErrorListener, removeErrorListener, removeTag, removeTag, removeTag, setName, setName, setName, setSendTagsInEvents, setSendTagsInEvents, setSendTagsInEvents
isCommited, release, release, release, waitCommited, whenCommited, whenCommited
int getMaxAudioRecvBandwidth()
This is used to put a limit on the bitrate that the remote peer will send to
this endpoint. The net effect of setting this parameter is that
when Kurento generates an SDP Offer, an 'Application Specific' (AS)
maximum bandwidth attribute will be added to the SDP media section:
b=AS:{value}
.
Note: This parameter has to be set before the SDP is generated.
void getMaxAudioRecvBandwidth(Continuation<Integer> cont)
This is used to put a limit on the bitrate that the remote peer will send to
this endpoint. The net effect of setting this parameter is that
when Kurento generates an SDP Offer, an 'Application Specific' (AS)
maximum bandwidth attribute will be added to the SDP media section:
b=AS:{value}
.
Note: This parameter has to be set before the SDP is generated.
TFuture<Integer> getMaxAudioRecvBandwidth(Transaction tx)
This is used to put a limit on the bitrate that the remote peer will send to
this endpoint. The net effect of setting this parameter is that
when Kurento generates an SDP Offer, an 'Application Specific' (AS)
maximum bandwidth attribute will be added to the SDP media section:
b=AS:{value}
.
Note: This parameter has to be set before the SDP is generated.
void setMaxAudioRecvBandwidth(int maxAudioRecvBandwidth)
This is used to put a limit on the bitrate that the remote peer will send to
this endpoint. The net effect of setting this parameter is that
when Kurento generates an SDP Offer, an 'Application Specific' (AS)
maximum bandwidth attribute will be added to the SDP media section:
b=AS:{value}
.
Note: This parameter has to be set before the SDP is generated.
void setMaxAudioRecvBandwidth(int maxAudioRecvBandwidth, Continuation<Void> cont)
This is used to put a limit on the bitrate that the remote peer will send to
this endpoint. The net effect of setting this parameter is that
when Kurento generates an SDP Offer, an 'Application Specific' (AS)
maximum bandwidth attribute will be added to the SDP media section:
b=AS:{value}
.
Note: This parameter has to be set before the SDP is generated.
void setMaxAudioRecvBandwidth(int maxAudioRecvBandwidth, Transaction tx)
This is used to put a limit on the bitrate that the remote peer will send to
this endpoint. The net effect of setting this parameter is that
when Kurento generates an SDP Offer, an 'Application Specific' (AS)
maximum bandwidth attribute will be added to the SDP media section:
b=AS:{value}
.
Note: This parameter has to be set before the SDP is generated.
int getMaxVideoRecvBandwidth()
This is used to put a limit on the bitrate that the remote peer will send to
this endpoint. The net effect of setting this parameter is that
when Kurento generates an SDP Offer, an 'Application Specific' (AS)
maximum bandwidth attribute will be added to the SDP media section:
b=AS:{value}
.
Note: This parameter has to be set before the SDP is generated.
void getMaxVideoRecvBandwidth(Continuation<Integer> cont)
This is used to put a limit on the bitrate that the remote peer will send to
this endpoint. The net effect of setting this parameter is that
when Kurento generates an SDP Offer, an 'Application Specific' (AS)
maximum bandwidth attribute will be added to the SDP media section:
b=AS:{value}
.
Note: This parameter has to be set before the SDP is generated.
TFuture<Integer> getMaxVideoRecvBandwidth(Transaction tx)
This is used to put a limit on the bitrate that the remote peer will send to
this endpoint. The net effect of setting this parameter is that
when Kurento generates an SDP Offer, an 'Application Specific' (AS)
maximum bandwidth attribute will be added to the SDP media section:
b=AS:{value}
.
Note: This parameter has to be set before the SDP is generated.
void setMaxVideoRecvBandwidth(int maxVideoRecvBandwidth)
This is used to put a limit on the bitrate that the remote peer will send to
this endpoint. The net effect of setting this parameter is that
when Kurento generates an SDP Offer, an 'Application Specific' (AS)
maximum bandwidth attribute will be added to the SDP media section:
b=AS:{value}
.
Note: This parameter has to be set before the SDP is generated.
void setMaxVideoRecvBandwidth(int maxVideoRecvBandwidth, Continuation<Void> cont)
This is used to put a limit on the bitrate that the remote peer will send to
this endpoint. The net effect of setting this parameter is that
when Kurento generates an SDP Offer, an 'Application Specific' (AS)
maximum bandwidth attribute will be added to the SDP media section:
b=AS:{value}
.
Note: This parameter has to be set before the SDP is generated.
void setMaxVideoRecvBandwidth(int maxVideoRecvBandwidth, Transaction tx)
This is used to put a limit on the bitrate that the remote peer will send to
this endpoint. The net effect of setting this parameter is that
when Kurento generates an SDP Offer, an 'Application Specific' (AS)
maximum bandwidth attribute will be added to the SDP media section:
b=AS:{value}
.
Note: This parameter has to be set before the SDP is generated.
String generateOffer()
void generateOffer(Continuation<String> cont)
Continuation.onSuccess(F)
is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable)
is called.generateOffer()
TFuture<String> generateOffer(Transaction tx)
String processOffer(String offer)
If no matching capabilities are found, the SDP will contain no codecs.
Throws:offer
- SessionSpec offer from the remote User Agentvoid processOffer(String offer, Continuation<String> cont)
Continuation.onSuccess(F)
is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable)
is called.offer
- SessionSpec offer from the remote User AgentprocessOffer(java.lang.String)
TFuture<String> processOffer(Transaction tx, String offer)
If no matching capabilities are found, the SDP will contain no codecs.
Throws:offer
- SessionSpec offer from the remote User AgentString processAnswer(String answer)
answer
- SessionSpec answer from the remote User Agentvoid processAnswer(String answer, Continuation<String> cont)
Continuation.onSuccess(F)
is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable)
is called.answer
- SessionSpec answer from the remote User AgentprocessAnswer(java.lang.String)
TFuture<String> processAnswer(Transaction tx, String answer)
answer
- SessionSpec answer from the remote User AgentString getLocalSessionDescriptor()
void getLocalSessionDescriptor(Continuation<String> cont)
Continuation.onSuccess(F)
is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable)
is called.getLocalSessionDescriptor()
TFuture<String> getLocalSessionDescriptor(Transaction tx)
String getRemoteSessionDescriptor()
void getRemoteSessionDescriptor(Continuation<String> cont)
Continuation.onSuccess(F)
is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable)
is called.getRemoteSessionDescriptor()
TFuture<String> getRemoteSessionDescriptor(Transaction tx)
Copyright © 2020 Kurento. All rights reserved.