Package org.kurento.client
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
-
Constructor Summary
ModifierConstructorDescriptionprotected
KurentoClient
(org.kurento.jsonrpc.client.JsonRpcClient client) protected
KurentoClient
(org.kurento.jsonrpc.client.JsonRpcClient client, boolean overrideClientTimeouts) -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
configureJsonRpcClient
(org.kurento.jsonrpc.client.AbstractJsonRpcClientWebSocket client) static KurentoClient
create()
static KurentoClient
static KurentoClient
create
(String websocketUrl, KurentoConnectionListener listener) static KurentoClient
create
(String websocketUrl, KurentoConnectionListener listener, Properties properties) static KurentoClient
create
(String websocketUrl, Properties properties) protected static KurentoClient
create
(String kmsWsUri, Properties properties, Handler connectedHandler, Handler connectionFailedHandler, Handler reconnectingHandler, Handler disconnectedHandler, ReconnectedHandler reconnectedHandler, Long tryReconnectingMaxTime, Long connectionTimeout) static KurentoClient
create
(Properties properties) static KurentoClient
create
(Properties properties, KurentoConnectionListener listener) static KurentoClient
createFromJsonRpcClient
(org.kurento.jsonrpc.client.JsonRpcClient jsonRpcClient) static KurentoClient
createFromJsonRpcClientHonoringClientTimeouts
(org.kurento.jsonrpc.client.JsonRpcClient jsonRpcClient) Creates a newMediaPipeline
in the media server.void
Creates a newMediaPipeline
in the media server.createMediaPipeline
(Properties properties) Creates a newMediaPipeline
in the media server.void
createMediaPipeline
(Properties properties, Continuation<MediaPipeline> cont) Creates a newMediaPipeline
in the media server.createMediaPipeline
(Transaction tx, Properties properties) void
destroy()
<T extends KurentoObject>
Tstatic String
getKmsUrl
(String id, Properties properties) getLabel()
boolean
isClosed()
boolean
org.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 newMediaPipeline
in the media server.- Returns:
- The media pipeline
-
createMediaPipeline
public void createMediaPipeline(Continuation<MediaPipeline> cont) throws org.kurento.commons.exception.KurentoException Creates a newMediaPipeline
in the media server.- Parameters:
cont
- An asynchronous callback handler. If the element was successfully created, theonSuccess
method from the handler will receive aMediaPipeline
stub from the media server.- Throws:
org.kurento.commons.exception.KurentoException
-
createMediaPipeline
-
createMediaPipeline
Creates a newMediaPipeline
in the media server.- Returns:
- The media pipeline
-
createMediaPipeline
public void createMediaPipeline(Properties properties, Continuation<MediaPipeline> cont) throws org.kurento.commons.exception.KurentoException Creates a newMediaPipeline
in the media server.- Parameters:
cont
- An asynchronous callback handler. If the element was successfully created, theonSuccess
method from the handler will receive aMediaPipeline
stub 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
-