Class KurentoOptions

    • Constructor Detail

      • KurentoOptions

        public KurentoOptions​(Integer videoMaxRecvBandwidth,
                              Integer videoMinRecvBandwidth,
                              Integer videoMaxSendBandwidth,
                              Integer videoMinSendBandwidth,
                              String[] allowedFilters)
    • Method Detail

      • getVideoMaxRecvBandwidth

        public Integer getVideoMaxRecvBandwidth()
        Defines the maximum number of Kbps that the Connection will be able to receive from Kurento Media Server per media stream. 0 means unconstrained. Giving a value to this property will override the global configuration set in OpenVidu Server configuration (parameter OPENVIDU_STREAMS_VIDEO_MAX_RECV_BANDWIDTH) for every incoming stream of the user owning the token.
        WARNING: the lower value set to this property limits every other bandwidth of the WebRTC pipeline this server-to-client stream belongs to. This includes the user publishing the stream and every other user subscribed to the stream
      • getVideoMinRecvBandwidth

        public Integer getVideoMinRecvBandwidth()
        Defines the minimum number of Kbps that the Connection will try to receive from Kurento Media Server per media stream. 0 means unconstrained. Giving a value to this property will override the global configuration set in OpenVidu Server configuration (parameter OPENVIDU_STREAMS_VIDEO_MIN_RECV_BANDWIDTH) for every incoming stream of the user owning the token.
      • getVideoMaxSendBandwidth

        public Integer getVideoMaxSendBandwidth()
        Defines the maximum number of Kbps that the Connection will be able to send to Kurento Media Server per media stream. 0 means unconstrained. Giving a value to this property will override the global configuration set in OpenVidu Server configuration (parameter OPENVIDU_STREAMS_VIDEO_MAX_SEND_BANDWIDTH) for every outgoing stream of the user owning the token.
        WARNING: this value limits every other bandwidth of the WebRTC pipeline this client-to-server stream belongs to. This includes every other user subscribed to the stream
      • getVideoMinSendBandwidth

        public Integer getVideoMinSendBandwidth()
        Defines the minimum number of Kbps that the Connection will try to send to Kurento Media Server per media stream. 0 means unconstrained. Giving a value to this property will override the global configuration set in OpenVidu Server configuration (parameter OPENVIDU_STREAMS_VIDEO_MIN_SEND_BANDWIDTH) for every outgoing stream of the user owning the token.
      • getAllowedFilters

        public String[] getAllowedFilters()
        Defines the names of the filters the Connection will be able to apply to its published streams. See Voice and video filters.
      • isFilterAllowed

        public boolean isFilterAllowed​(String filterType)
        See if the Connection can apply certain filter. See Voice and video filters.
      • toJson

        public com.google.gson.JsonObject toJson()