Class KurentoClient
java.lang.Object
org.kurento.client.KurentoClient
Factory to create
MediaPipeline in the media server.- Since:
- 2.0.0
- Author:
- Luis López (llopez@gsyc.es), Ivan Gracia (igracia@gsyc.es), Micael Gallego (micael.gallego@gmail.com)
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedKurentoClient(org.kurento.jsonrpc.client.JsonRpcClient client) protectedKurentoClient(org.kurento.jsonrpc.client.JsonRpcClient client, boolean overrideClientTimeouts) -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidconfigureJsonRpcClient(org.kurento.jsonrpc.client.AbstractJsonRpcClientWebSocket client) static KurentoClientcreate()static KurentoClientstatic KurentoClientcreate(String websocketUrl, KurentoConnectionListener listener) static KurentoClientcreate(String websocketUrl, KurentoConnectionListener listener, Properties properties) static KurentoClientcreate(String websocketUrl, Properties properties) protected static KurentoClientcreate(String kmsWsUri, Properties properties, Handler connectedHandler, Handler connectionFailedHandler, Handler reconnectingHandler, Handler disconnectedHandler, ReconnectedHandler reconnectedHandler, Long tryReconnectingMaxTime, Long connectionTimeout) static KurentoClientcreate(Properties properties) static KurentoClientcreate(Properties properties, KurentoConnectionListener listener) static KurentoClientcreateFromJsonRpcClient(org.kurento.jsonrpc.client.JsonRpcClient jsonRpcClient) static KurentoClientcreateFromJsonRpcClientHonoringClientTimeouts(org.kurento.jsonrpc.client.JsonRpcClient jsonRpcClient) Creates a newMediaPipelinein the media server.voidCreates a newMediaPipelinein the media server.createMediaPipeline(Properties properties) Creates a newMediaPipelinein the media server.voidcreateMediaPipeline(Properties properties, Continuation<MediaPipeline> cont) Creates a newMediaPipelinein the media server.createMediaPipeline(Transaction tx, Properties properties) voiddestroy()<T extends KurentoObject>
Tstatic StringgetKmsUrl(String id, Properties properties) getLabel()booleanisClosed()booleanorg.kurento.jsonrpc.message.Response<com.google.gson.JsonElement> sendJsonRpcRequest(org.kurento.jsonrpc.message.Request<com.google.gson.JsonObject> request) void
-
Field Details
-
manager
protected org.kurento.client.internal.client.RomManager manager
-
-
Constructor Details
-
KurentoClient
protected KurentoClient(org.kurento.jsonrpc.client.JsonRpcClient client) -
KurentoClient
protected KurentoClient(org.kurento.jsonrpc.client.JsonRpcClient client, boolean overrideClientTimeouts)
-
-
Method Details
-
getKmsUrl
-
create
-
create
-
create
-
create
-
configureJsonRpcClient
protected static void configureJsonRpcClient(org.kurento.jsonrpc.client.AbstractJsonRpcClientWebSocket client) -
create
-
create
-
create
public static KurentoClient create(String websocketUrl, KurentoConnectionListener listener, Properties properties) -
create
protected static KurentoClient create(String kmsWsUri, Properties properties, Handler connectedHandler, Handler connectionFailedHandler, Handler reconnectingHandler, Handler disconnectedHandler, ReconnectedHandler reconnectedHandler, Long tryReconnectingMaxTime, Long connectionTimeout) -
createMediaPipeline
Creates a newMediaPipelinein the media server.- Returns:
- The media pipeline
-
createMediaPipeline
public void createMediaPipeline(Continuation<MediaPipeline> cont) throws org.kurento.commons.exception.KurentoException Creates a newMediaPipelinein the media server.- Parameters:
cont- An asynchronous callback handler. If the element was successfully created, theonSuccessmethod from the handler will receive aMediaPipelinestub from the media server.- Throws:
org.kurento.commons.exception.KurentoException
-
createMediaPipeline
-
createMediaPipeline
Creates a newMediaPipelinein the media server.- Returns:
- The media pipeline
-
createMediaPipeline
public void createMediaPipeline(Properties properties, Continuation<MediaPipeline> cont) throws org.kurento.commons.exception.KurentoException Creates a newMediaPipelinein the media server.- Parameters:
cont- An asynchronous callback handler. If the element was successfully created, theonSuccessmethod from the handler will receive aMediaPipelinestub from the media server.- Throws:
org.kurento.commons.exception.KurentoException
-
createMediaPipeline
-
destroy
@PreDestroy public void destroy() -
isClosed
public boolean isClosed() -
isDestroyed
public boolean isDestroyed() -
createFromJsonRpcClient
public static KurentoClient createFromJsonRpcClient(org.kurento.jsonrpc.client.JsonRpcClient jsonRpcClient) -
createFromJsonRpcClientHonoringClientTimeouts
public static KurentoClient createFromJsonRpcClientHonoringClientTimeouts(org.kurento.jsonrpc.client.JsonRpcClient jsonRpcClient) -
beginTransaction
-
getServerManager
-
getById
-
getSessionId
-
setLabel
-
getLabel
-
sendJsonRpcRequest
public org.kurento.jsonrpc.message.Response<com.google.gson.JsonElement> sendJsonRpcRequest(org.kurento.jsonrpc.message.Request<com.google.gson.JsonObject> request) throws IOException - Throws:
IOException
-