public static class INetConnection.Configuration
extends java.lang.Object
Configuration
- INetConnection
configuration constants.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUDIO_CODECS
AUDIO_CODECS - "audioCodecs" : audio codecs - used as a RTMP server connection parameter. |
static java.lang.String |
CAPABILITIES
CAPABILITIES - "capabilities" : capabilities - used as a RTMP server connection parameter. |
static java.lang.String |
ENABLE_ACKNOWLEDGEMENT_EVENT_NOTIFICATION
ENABLE_ACKNOWLEDGEMENT_EVENT_NOTIFICATION - "enableAcknowledgementEventNotification":
enables "NetConnection.Connect.Bandwidth" event notification on every 'acknowledgement'
message received from the server (default: false). |
static java.lang.String |
ENABLE_MEDIA_STREAM_ABSOLUTE_TIMESTAMP
ENABLE_MEDIA_STREAM_ABSOLUTE_TIMESTAMP - "enableMediaStreamAbsoluteTimestamp": (default: false). |
static java.lang.String |
FLASH_VER
FLASH_VER - "flashVer" : flash version - used as a RTMP server connection parameter. |
static java.lang.String |
FPAD
FPAD - "fpad" : fpad value - used as a RTMP server connection parameter. |
static java.lang.String |
HANDSHAKE_TIMEOUT
HANDSHAKE_TIMEOUT - "handshakeTimeout" : timeout (in seconds)
for the handshake phase of the protocol (default: 30 seconds). |
static java.lang.String |
INACTIVITY_TIMEOUT
INACTIVITY_TIMEOUT - "inactivityTimeout" : timeout (in seconds)
for RTMP protocol connection, i.e. |
static java.lang.String |
IO_TIMEOUT
IO_TIMEOUT - "IOTimeout" : I/O timeout (in milliseconds)
(default: 50 milliseconds) |
static java.lang.String |
LOGGER
LOGGER - "logger" : ILogger instance
responsible for logging. |
static java.lang.String |
MAX_RTMP_PACKET_SIZE
MAX_RTMP_PACKET_SIZE - "maxRtmpPacketSize":
max RTMP packet size that is processed by the library (default: 2MiB). |
static java.lang.String |
MAX_UPLOAD_BANDWIDTH
MAX_UPLOAD_BANDWIDTH - "maxUploadBandwidth":
max upload bandwidth (default: -1) |
static java.lang.String |
METHOD_INVOKER
METHOD_INVOKER - "methodInvoker" : IMethodInvoker instance
responsible for method invocations. |
static java.lang.String |
OBJECT_CREATOR
OBJECT_CREATOR - "objectCreator" : IObjectCreator instance
responsible for custom objects creation. |
static java.lang.String |
PAGE_URL
PAGE_URL - "pageUrl" : page url - used as a RTMP server connection parameter. |
static java.lang.String |
PROXY
PROXY - "proxy" : Proxy instance to use or null
if proxy is disabled. |
static java.lang.String |
RECEIVE_BUFFER_SIZE
RECEIVE_BUFFER_SIZE - "rcvBufSize" :
receive buffer size in bytes (default: 256KiB). |
static java.lang.String |
RTMPS_BASED_ON_RTMP
RTMPS_BASED_ON_RTMP - "rtmpsBasedOnRtmp":
'RTMPS based on RTMP' flag (default: true). |
static java.lang.String |
RTMPS_SSL_CONTEXT
RTMPS_SSL_CONTEXT - "rtmpsSSLContext":
RTMPS SSL Context (default: null). |
static java.lang.String |
RTMPT_ENABLE_FCS_IDENT
RTMPT_ENABLE_FCS_IDENT - "rtmptEnableFcsIdent":
enables "/fcs/ident2" message sent at start of the RTMPT session (default: false). |
static java.lang.String |
RTMPT_USE_HTTP_URL_CONNECTION
RTMPT_USE_HTTP_URL_CONNECTION - "rtmptUseHttpUrlConnection":
use HttpURLConnection (in RTMPT* protocols) flag (default: false) |
static java.lang.String |
RTMPT_WAIT_FOR_RESPONSE
RTMPT_WAIT_FOR_RESPONSE - "rtmptWaitForResponse": 'Wait for response' flag (default: true). |
static java.lang.String |
SEND_BUFFER_SIZE
SEND_BUFFER_SIZE - "sndBufSize" :
send buffer size in bytes (default: 256KiB). |
static java.lang.String |
SET_FIRST_MEDIA_FRAME_RTIME_TO_ZERO
SET_FIRST_MEDIA_FRAME_RTIME_TO_ZERO - "setFirstMediaFrameRtimeToZero": (default: true). |
static java.lang.String |
SOCKET_ENABLE_CONFIGURATION
SOCKET_ENABLE_CONFIGURATION - "socketEnableConfiguration" : enable/disable custom socket configuration
(default: false) |
static java.lang.String |
SOCKET_SO_RCVBUF
SOCKET_SO_RCVBUF - "socketSoRcvBuf" : Socket.setReceiveBufferSize(int) value
(default: 8 * 1024). |
static java.lang.String |
SOCKET_SO_SNDBUF
SOCKET_SO_SNDBUF - "socketSoSndBuf" : Socket.setSendBufferSize(int) value
(default: 8 * 1024). |
static java.lang.String |
SOCKET_TCP_NO_DELAY
SOCKET_TCP_NO_DELAY - "socketTcpNoDelay" : Socket.setTcpNoDelay(boolean) value
(default: false). |
static java.lang.String |
SOCKET_TRAFFIC_CLASS
SOCKET_TRAFFIC_CLASS - "socketTrafficClass" : Socket.setTrafficClass(int) value
(default: 0). |
static java.lang.String |
STREAM_BUFFER_SIZE
STREAM_BUFFER_SIZE - "streamBufSize" :
audio/video stream buffer size in bytes (default: 512KiB). |
static java.lang.String |
SWF_HASH
SWF_HASH - "swfHash" : swf file hash - used for SFW file verification. |
static java.lang.String |
SWF_SIZE
SWF_SIZE - "swfSize" : swf file size - used for SFW file verification. |
static java.lang.String |
SWF_URL
SWF_URL - "swfUrl" : swf file url - used as a RTMP server connection parameter. |
static java.lang.String |
VIDEO_CODECS
VIDEO_CODECS - "videoCodecs" : video codecs - used as a RTMP server connection parameter. |
static java.lang.String |
VIDEO_FUNCTION
VIDEO_FUNCTION - "videoFunction" : video function - used as a RTMP server connection parameter. |
static java.lang.String |
WINDOW_ACKNOWLEDGEMENT_SIZE
WINDOW_ACKNOWLEDGEMENT_SIZE - "windowAcknowledgementSize":
'Window Acknowledgement Size' values defines 'Acknowledgement' event notification period
in bytes read by server (default: 128KiB). |
Modifier | Constructor and Description |
---|---|
protected |
INetConnection.Configuration()
Constructor.
|
public static final java.lang.String SOCKET_ENABLE_CONFIGURATION
SOCKET_ENABLE_CONFIGURATION
- "socketEnableConfiguration" : enable/disable custom socket configuration
(default: false)public static final java.lang.String SOCKET_TCP_NO_DELAY
SOCKET_TCP_NO_DELAY
- "socketTcpNoDelay" : Socket.setTcpNoDelay(boolean)
value
(default: false).public static final java.lang.String SOCKET_SO_RCVBUF
SOCKET_SO_RCVBUF
- "socketSoRcvBuf" : Socket.setReceiveBufferSize(int)
value
(default: 8 * 1024).public static final java.lang.String SOCKET_SO_SNDBUF
SOCKET_SO_SNDBUF
- "socketSoSndBuf" : Socket.setSendBufferSize(int)
value
(default: 8 * 1024).public static final java.lang.String SOCKET_TRAFFIC_CLASS
SOCKET_TRAFFIC_CLASS
- "socketTrafficClass" : Socket.setTrafficClass(int)
value
(default: 0).public static final java.lang.String IO_TIMEOUT
IO_TIMEOUT
- "IOTimeout" : I/O timeout (in milliseconds)
(default: 50 milliseconds)public static final java.lang.String RECEIVE_BUFFER_SIZE
RECEIVE_BUFFER_SIZE
- "rcvBufSize" :
receive buffer size in bytes (default: 256KiB).
Note:
- This buffer is used to parse incoming RTMP messages,
i.e. socket content is written to the 'rcvBuf' for parsing.
- If packet size is greater than 'rcvBufSize' a new temporary buffer
is created to store big RTMP message (the respective INFO event is logged,
so you can adjust 'rcvBufSize' to avoid too many temporary buffers creation).
- If packet size is greater that MAX_RTMP_PACKET_SIZE then packet is discarded
(the respective WARN event is logged).
public static final java.lang.String SEND_BUFFER_SIZE
SEND_BUFFER_SIZE
- "sndBufSize" :
send buffer size in bytes (default: 256KiB).
Note:
- This buffer is used to prepare outgoing RTMP messages stream.
public static final java.lang.String STREAM_BUFFER_SIZE
STREAM_BUFFER_SIZE
- "streamBufSize" :
audio/video stream buffer size in bytes (default: 512KiB).
Note:
- This buffer is used to keep media data stream.
public static final java.lang.String ENABLE_ACKNOWLEDGEMENT_EVENT_NOTIFICATION
ENABLE_ACKNOWLEDGEMENT_EVENT_NOTIFICATION
- "enableAcknowledgementEventNotification":
enables "NetConnection.Connect.Bandwidth" event notification on every 'acknowledgement'
message received from the server (default: false).public static final java.lang.String ENABLE_MEDIA_STREAM_ABSOLUTE_TIMESTAMP
ENABLE_MEDIA_STREAM_ABSOLUTE_TIMESTAMP
- "enableMediaStreamAbsoluteTimestamp": (default: false).
Note:
- If disabled then MediaData.rtime
is sent as relative timestamp.
- If enabled then MediaData.rtime
is sent as relative timestamp only
if MediaData.timestamp
is less than zero otherwise MediaData.timestamp
is
sent using absolute stream timestamp mode.
public static final java.lang.String HANDSHAKE_TIMEOUT
HANDSHAKE_TIMEOUT
- "handshakeTimeout" : timeout (in seconds)
for the handshake phase of the protocol (default: 30 seconds).public static final java.lang.String INACTIVITY_TIMEOUT
INACTIVITY_TIMEOUT
- "inactivityTimeout" : timeout (in seconds)
for RTMP protocol connection, i.e. if data is not received
during this timeout, the connection is considered disconnected (default: -1, disabled).public static final java.lang.String MAX_RTMP_PACKET_SIZE
MAX_RTMP_PACKET_SIZE
- "maxRtmpPacketSize":
max RTMP packet size that is processed by the library (default: 2MiB).
Note:
- This artificial limit was introduced to avoid too big packet sizes
that can lead to the OutOfMemoryException or other bad behaviour.
- If packet size is greater than MAX_RTMP_PACKET_SIZE then packet is discarded
(the respective WARN event is logged, so you have to adjust the parameter).
public static final java.lang.String MAX_UPLOAD_BANDWIDTH
MAX_UPLOAD_BANDWIDTH
- "maxUploadBandwidth":
max upload bandwidth (default: -1)
Note:
- The library will try to do not exceed max value by sending large video/flv
frames in chunks.
- The library interlaces audio/video packets if 'max upload bandwidth' is positive.
public static final java.lang.String RTMPS_BASED_ON_RTMP
RTMPS_BASED_ON_RTMP
- "rtmpsBasedOnRtmp":
'RTMPS based on RTMP' flag (default: true).public static final java.lang.String RTMPS_SSL_CONTEXT
RTMPS_SSL_CONTEXT
- "rtmpsSSLContext":
RTMPS SSL Context (default: null).public static final java.lang.String RTMPT_ENABLE_FCS_IDENT
RTMPT_ENABLE_FCS_IDENT
- "rtmptEnableFcsIdent":
enables "/fcs/ident2" message sent at start of the RTMPT session (default: false).public static final java.lang.String RTMPT_USE_HTTP_URL_CONNECTION
RTMPT_USE_HTTP_URL_CONNECTION
- "rtmptUseHttpUrlConnection":
use HttpURLConnection
(in RTMPT* protocols) flag (default: false)public static final java.lang.String RTMPT_WAIT_FOR_RESPONSE
RTMPT_WAIT_FOR_RESPONSE
- "rtmptWaitForResponse": 'Wait for response' flag (default: true).
If false
then client sends HTTP requests without waiting for server HTTP response, otherwise
it waits for HTTP response before sending next HTTP request.public static final java.lang.String SET_FIRST_MEDIA_FRAME_RTIME_TO_ZERO
SET_FIRST_MEDIA_FRAME_RTIME_TO_ZERO
- "setFirstMediaFrameRtimeToZero": (default: true).public static final java.lang.String WINDOW_ACKNOWLEDGEMENT_SIZE
WINDOW_ACKNOWLEDGEMENT_SIZE
- "windowAcknowledgementSize":
'Window Acknowledgement Size' values defines 'Acknowledgement' event notification period
in bytes read by server (default: 128KiB).public static final java.lang.String FPAD
FPAD
- "fpad" : fpad value - used as a RTMP server connection parameter.public static final java.lang.String PAGE_URL
PAGE_URL
- "pageUrl" : page url - used as a RTMP server connection parameter.public static final java.lang.String SWF_HASH
SWF_HASH
- "swfHash" : swf file hash - used for SFW file verification.public static final java.lang.String SWF_SIZE
SWF_SIZE
- "swfSize" : swf file size - used for SFW file verification.public static final java.lang.String SWF_URL
SWF_URL
- "swfUrl" : swf file url - used as a RTMP server connection parameter.public static final java.lang.String FLASH_VER
FLASH_VER
- "flashVer" : flash version - used as a RTMP server connection parameter.public static final java.lang.String VIDEO_CODECS
VIDEO_CODECS
- "videoCodecs" : video codecs - used as a RTMP server connection parameter.public static final java.lang.String AUDIO_CODECS
AUDIO_CODECS
- "audioCodecs" : audio codecs - used as a RTMP server connection parameter.public static final java.lang.String VIDEO_FUNCTION
VIDEO_FUNCTION
- "videoFunction" : video function - used as a RTMP server connection parameter.public static final java.lang.String CAPABILITIES
CAPABILITIES
- "capabilities" : capabilities - used as a RTMP server connection parameter.public static final java.lang.String METHOD_INVOKER
METHOD_INVOKER
- "methodInvoker" : IMethodInvoker
instance
responsible for method invocations.public static final java.lang.String OBJECT_CREATOR
OBJECT_CREATOR
- "objectCreator" : IObjectCreator
instance
responsible for custom objects creation.public static final java.lang.String LOGGER
LOGGER
- "logger" : ILogger
instance
responsible for logging.public static final java.lang.String PROXY
PROXY
- "proxy" : Proxy
instance to use or null
if proxy is disabled.