public class KurentoClient extends Object
MediaPipeline
in the media server.Modifier and Type | Field and Description |
---|---|
protected org.kurento.client.internal.client.RomManager |
manager |
Modifier | Constructor and Description |
---|---|
protected |
KurentoClient(org.kurento.jsonrpc.client.JsonRpcClient client) |
Modifier and Type | Method and Description |
---|---|
Transaction |
beginTransaction() |
protected static void |
configureJsonRpcClient(org.kurento.jsonrpc.client.AbstractJsonRpcClientWebSocket client) |
static KurentoClient |
create() |
static KurentoClient |
create(Properties properties) |
static KurentoClient |
create(Properties properties,
KurentoConnectionListener listener) |
static KurentoClient |
create(String websocketUrl) |
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 |
createFromJsonRpcClient(org.kurento.jsonrpc.client.JsonRpcClient jsonRpcClient) |
MediaPipeline |
createMediaPipeline()
Creates a new
MediaPipeline in the media server. |
void |
createMediaPipeline(Continuation<MediaPipeline> cont)
Creates a new
MediaPipeline in the media server. |
MediaPipeline |
createMediaPipeline(Properties properties)
Creates a new
MediaPipeline in the media server. |
void |
createMediaPipeline(Properties properties,
Continuation<MediaPipeline> cont)
Creates a new
MediaPipeline in the media server. |
MediaPipeline |
createMediaPipeline(Transaction tx) |
MediaPipeline |
createMediaPipeline(Transaction tx,
Properties properties) |
void |
destroy() |
<T extends KurentoObject> |
getById(String id,
Class<T> clazz) |
static String |
getKmsUrl(String id,
Properties properties) |
String |
getLabel() |
ServerManager |
getServerManager() |
String |
getSessionId() |
boolean |
isClosed() |
org.kurento.jsonrpc.message.Response<com.google.gson.JsonElement> |
sendJsonRpcRequest(org.kurento.jsonrpc.message.Request<com.google.gson.JsonObject> request) |
void |
setLabel(String label) |
protected KurentoClient(org.kurento.jsonrpc.client.JsonRpcClient client)
public static String getKmsUrl(String id, Properties properties)
public static KurentoClient create()
public static KurentoClient create(Properties properties)
public static KurentoClient create(String websocketUrl)
public static KurentoClient create(String websocketUrl, Properties properties)
protected static void configureJsonRpcClient(org.kurento.jsonrpc.client.AbstractJsonRpcClientWebSocket client)
public static KurentoClient create(String websocketUrl, KurentoConnectionListener listener)
public static KurentoClient create(Properties properties, KurentoConnectionListener listener)
public static KurentoClient create(String websocketUrl, KurentoConnectionListener listener, Properties properties)
protected static KurentoClient create(String kmsWsUri, Properties properties, Handler connectedHandler, Handler connectionFailedHandler, Handler reconnectingHandler, Handler disconnectedHandler, ReconnectedHandler reconnectedHandler, Long tryReconnectingMaxTime, Long connectionTimeout)
public MediaPipeline createMediaPipeline()
MediaPipeline
in the media server.public void createMediaPipeline(Continuation<MediaPipeline> cont) throws org.kurento.commons.exception.KurentoException
MediaPipeline
in the media server.cont
- An asynchronous callback handler. If the element was successfully created, the
onSuccess
method from the handler will receive a MediaPipeline
stub
from the media server.org.kurento.commons.exception.KurentoException
public MediaPipeline createMediaPipeline(Transaction tx)
public MediaPipeline createMediaPipeline(Properties properties)
MediaPipeline
in the media server.public void createMediaPipeline(Properties properties, Continuation<MediaPipeline> cont) throws org.kurento.commons.exception.KurentoException
MediaPipeline
in the media server.cont
- An asynchronous callback handler. If the element was successfully created, the
onSuccess
method from the handler will receive a MediaPipeline
stub
from the media server.org.kurento.commons.exception.KurentoException
public MediaPipeline createMediaPipeline(Transaction tx, Properties properties)
@PreDestroy public void destroy()
public boolean isClosed()
public static KurentoClient createFromJsonRpcClient(org.kurento.jsonrpc.client.JsonRpcClient jsonRpcClient)
public Transaction beginTransaction()
public ServerManager getServerManager()
public <T extends KurentoObject> T getById(String id, Class<T> clazz)
public String getSessionId()
public void setLabel(String label)
public String getLabel()
public org.kurento.jsonrpc.message.Response<com.google.gson.JsonElement> sendJsonRpcRequest(org.kurento.jsonrpc.message.Request<com.google.gson.JsonObject> request) throws IOException
IOException
Copyright © 2019 Kurento. All rights reserved.