public class KurentoTreeClient
extends java.lang.Object
Constructor and Description |
---|
KurentoTreeClient(JsonRpcClient client) |
KurentoTreeClient(JsonRpcClient client,
ServerJsonRpcHandler handler) |
KurentoTreeClient(java.lang.String wsUri) |
KurentoTreeClient(java.lang.String wsUri,
SslContextFactory sslContextFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addIceCandidate(java.lang.String treeId,
java.lang.String sinkId,
IceCandidate candidate)
Notifies the server of a gathered ICE candidate on the client side.
|
TreeEndpoint |
addTreeSink(java.lang.String treeId,
java.lang.String offerSdp) |
void |
close() |
java.lang.String |
createTree() |
void |
createTree(java.lang.String treeId) |
IceCandidateInfo |
getServerCandidate()
Polls the candidates list maintained by this client to obtain a candidate gathered on the
server side.
|
void |
releaseTree(java.lang.String treeId) |
void |
removeTreeSink(java.lang.String treeId,
java.lang.String sinkId) |
void |
removeTreeSource(java.lang.String treeId) |
java.lang.String |
setTreeSource(java.lang.String treeId,
java.lang.String offerSdp) |
public KurentoTreeClient(java.lang.String wsUri)
public KurentoTreeClient(java.lang.String wsUri, SslContextFactory sslContextFactory)
public KurentoTreeClient(JsonRpcClient client)
public KurentoTreeClient(JsonRpcClient client, ServerJsonRpcHandler handler)
public java.lang.String createTree() throws java.io.IOException
java.io.IOException
public void createTree(java.lang.String treeId) throws java.io.IOException
java.io.IOException
public void releaseTree(java.lang.String treeId) throws TreeException, java.io.IOException
TreeException
java.io.IOException
public java.lang.String setTreeSource(java.lang.String treeId, java.lang.String offerSdp) throws TreeException, java.io.IOException
TreeException
java.io.IOException
public void removeTreeSource(java.lang.String treeId) throws TreeException, java.io.IOException
TreeException
java.io.IOException
public TreeEndpoint addTreeSink(java.lang.String treeId, java.lang.String offerSdp) throws java.io.IOException, TreeException
java.io.IOException
TreeException
public void removeTreeSink(java.lang.String treeId, java.lang.String sinkId) throws TreeException, java.io.IOException
TreeException
java.io.IOException
public IceCandidateInfo getServerCandidate()
public void addIceCandidate(java.lang.String treeId, java.lang.String sinkId, IceCandidate candidate) throws TreeException, java.io.IOException
treeId
- the tree identifiersinkId
- optional (nullable) identifiercandidate
- the gathered candidateTreeException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException