Class KurentoClient


  • public class KurentoClient
    extends Object
    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 Detail

      • manager

        protected org.kurento.client.internal.client.RomManager manager
    • Constructor Detail

      • KurentoClient

        protected KurentoClient​(org.kurento.jsonrpc.client.JsonRpcClient client)
      • KurentoClient

        protected KurentoClient​(org.kurento.jsonrpc.client.JsonRpcClient client,
                                boolean overrideClientTimeouts)
    • Method Detail

      • configureJsonRpcClient

        protected static void configureJsonRpcClient​(org.kurento.jsonrpc.client.AbstractJsonRpcClientWebSocket client)
      • createMediaPipeline

        public MediaPipeline createMediaPipeline()
        Creates a new MediaPipeline in the media server.
        Returns:
        The media pipeline
      • createMediaPipeline

        public void createMediaPipeline​(Continuation<MediaPipeline> cont)
                                 throws org.kurento.commons.exception.KurentoException
        Creates a new MediaPipeline in the media server.
        Parameters:
        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.
        Throws:
        org.kurento.commons.exception.KurentoException
      • createMediaPipeline

        public void createMediaPipeline​(Properties properties,
                                        Continuation<MediaPipeline> cont)
                                 throws org.kurento.commons.exception.KurentoException
        Creates a new MediaPipeline in the media server.
        Parameters:
        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.
        Throws:
        org.kurento.commons.exception.KurentoException
      • 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

        public Transaction beginTransaction()
      • getSessionId

        public String getSessionId()
      • setLabel

        public void setLabel​(String label)
      • getLabel

        public String 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