Skip to main content

Source Object Model

The source object model differs when used in API requests and responses.

POST API Requests

Use the following source model when issuing the Create a Route and Update a Route API requests. Definition of each source depends on the source protocol.

UDP or RTP Source
NameTypeDescription
namestringName of source for route. (Unique name with length 1-60.)
idstring

Optional when creating source, required when updating. Source ID.

addressstringIP address of route source. (0.0.0.0 for unicast.)
protocolstringSource protocol: udp or rtp
portnumberPort number of route source: 1–65535.
networkInterfacestringOptional. Network interface name. (Empty string if auto.)
retainHeaderBooleanOptional. RTP only. To retain headers for RTP tunneling through SRT.
sourceAddressstringOptional. IGMP v3 source address.
fecstring

Optional. For RTP inputs, PRO-MPEG FEC enable: none or prompeg.

PRO-MPEG FEC is available only on Haivision SRT Gateway.

SRT Source
NameTypeDescription
namestringName of source for route. (Unique name with length 1-60.)
idstring

Optional when creating source, required when updating. Source ID.

addressstring

IP address of route source. (0.0.0.0 for listener.)

If SRT path redundancy is used, this value is not needed. The srtNetworkBondingParams object contains the individual address assignments.

protocolstringSource protocol: srt
portnumber

Port number of route source: 1–65535.

If SRT path redundancy is used, this value is not needed. The srtNetworkBondingParams object contains the individual port assignments.

networkInterfacestring

Optional. Network interface name. (Empty string if auto.)

If SRT path redundancy is used, this value is not needed. The srtNetworkBondingParams object contains the individual network interfaces.

srtPassPhrasestringOptional. SRT passphrase.
srtLatencynumberOptional. SRT latency.
srtModestringOptional. SRT mode: caller, listener, or rendezvous.
srtRcvBufnumberOptional. SRT receive buffer size in bytes.
srtStreamIDstring

Optional. SRT Caller mode only. Stream ID string to identify the listener.

Note

Only available for Haivision SRT Gateway.

useFecBooleanOptional. SRT Caller mode only. If FEC is enabled: true or false
srtFecColsnumberOptional. SRT Caller mode only. If FEC is enabled, number of columns.
srtFecRowsnumberOptional. SRT Caller mode only. If FEC is enabled, number of rows.
srtFecLayoutstringOptional. SRT Caller mode only. If FEC is enabled, FEC layout: saircase or even.
srtFecArqstringOptional. SRT Caller mode only. If FEC is enabled, FEC ARQ: never or onreq.
srtGroupModestring

Optional. SRT path redundancy mode: none, broadcast, backup, or any.

srtNetworkBondingParamsobject listIf srtGroupMode is not set to none, array of SRT network bonding parameters.

SRT Network Bonding Parameters Model

In SRT Listener or Caller mode with srtGroup mode not set to none, use the following SRT Network Bonding Parameters model when issuing the Create a Route and Update a Route API requests for each defined network path.

NameTypeDescription
addressstringIP address of route source.
portnumberPort number of route source: 1–65535.
networkInterfacestringNetwork interface name. (Empty string if auto.)
RTMP Source
NameTypeDescription
namestringName of source for route. (Unique name with length 1-60.)
idstring

Optional when creating source, required when updating. Source ID.

addressstringOptional in publisher mode, required in consumer mode. IP address of route source.
protocolstringSource protocol: rtmp
portnumberPort number of route source: 1–65535.
networkInterfacestringOptional. Network interface name. (Empty string if auto.)
streamNamestringRTMP stream name
rtmpModestringRTMP mode: PUBLISHER or CONSUMER.
RTSP Source
NameTypeDescription
namestringName of source for route. (Unique name with length 1-60.)
idstring

Optional when creating source, required when updating. Source ID.

addressstringIP address of route source.
protocolstringSource protocol: rtsp
portnumberPort number of route source: 1–65535.
networkInterfacestringOptional. Network interface name. (Empty string if auto.)
fecstringOptional. FEC enable: none or vf
usernamestringOptional. RTSP username.
passwordstringOptional. RTSP password.

GET API Responses

The following source model is returned after issuing the Get Device Configuration and Get Route Configuration API commands. Definition of each source depends on the source protocol.

UDP or RTP Source
NameTypeDescription
namestringName of source for route.
idstring

Source ID.

addressstringIP address of route source. (0.0.0.0 for unicast.)
protocolstringSource protocol: udp or rtp
portnumberPort number of route source: 1–65535.
networkInterfacestringNetwork interface name. (Empty string if auto.)
retainHeaderBooleanRTP only. To retain headers for RTP tunneling through SRT.
sourceAddressstringIGMP v3 source address.
fecstring

RTP only. Optional. For RTP inputs, PRO-MPEG FEC enable: none or prompeg.

Note

PRO-MPEG FEC is available only on Haivision SRT Gateway.

statestringSource state: disconnected, connecting, connection established, or connected.
summaryStatusCodestringSource status summary code: warn, error, ok, or unknown.
summaryStatusDetailsstringSource status details.
SRT Source
NameTypeDescription
namestringName of source for route.
idstring

Source ID.

addressstringIP address of route source. (0.0.0.0 for listener.) If path redundancy is used, pipe-delimited string of addresses.
protocolstringSource protocol: srt
portnumber or stringPort number of route source: 1–65535. If path redundancy is used, pipe-delimited string of ports.
networkInterfacestringNetwork interface name. (Empty string if auto.) If path redundancy is used, pipe-delimited string of interface names.
srtPassPhrasestringSRT Passphrase.
srtLatencynumberSRT latency.
srtRcvBufnumberSRT receive buffer size in bytes.
srtStreamIDstring

SRT Caller mode only. Stream ID string to identify the listener.

Note

Only available for Haivision SRT Gateway.

useFecBoolean

SRT Caller mode only. If FEC is enabled: true or false.

srtFecColsnumberSRT Caller mode only. If FEC is enabled, number of columns.
srtFecRowsnumberSRT Caller mode only. If FEC is enabled, number of rows.
srtFecLayoutstringSRT Caller mode only. If FEC is enabled, FEC layout: saircase or even.
srtFecArqstringSRT Caller mode only. If FEC is enabled, FEC ARQ: never or onreq.
modestringSRT mode: caller, listener, or rendezvous.
statestringSource state: disconnected, connecting, connection established, or connected.
summaryStatusCodestringSource status summary code: warn, error, ok, or unknown.
summaryStatusDetailsstringSource status details.
srtGroupModestring

SRT path redundancy mode: none, broadcast, backup, or any.

Note

Backup mode is an experimental feature and will be fully supported in a future version.

srtNetworkBondingParamsobject listIf srtGroupMode is not set to none, array of SRT network bonding parameters.

SRT Network Bonding Parameters Model

In SRT Listener or Caller mode with srtGroup mode not set to none, the following SRT Network Bonding Parameters model is returned as part of the response to a Get Device Configuration or Get Route Configuration API command for each defined network path.

NameTypeDescription
addressstringIP address of route source.
portnumberPort number of route source: 1–65535.
networkInterfacestringNetwork interface name. (Empty string if auto.)
RTMP Source
NameTypeDescription
namestringName of source for route.
idstring

Source ID.

addressstringIP address of route source. (127.0.0.1/live for publisher.)
protocolstringSource protocol: rtmp
portnumberPort number of route source: 1–65535.
networkInterfacestringNetwork interface name. (Empty string if auto.)
streamNamestringRTMP stream name
rtmpModestringRTMP mode: PUBLISHER or CONSUMER.
statestringSource state: disconnected, connecting, connection established, or connected.
summaryStatusCodestringSource status summary code: warn, error, ok, or unknown.
summaryStatusDetailsstringSource status details.
RTSP Source
NameTypeDescription
namestringName of source for route.
idstring

Source ID.

addressstringIP address of route source.
protocolstringSource protocol: rtsp
portnumberPort number of route source: 1–65535.
networkInterfacestringNetwork interface name. (Empty string if auto.)
fecstringFEC enable: none or vf.
usernamestringRTSP username.
passwordstringRTSP password.
statestringSource state: disconnected, connecting, connection established, or connected.
summaryStatusCodestringSource status summary code: warn, error, ok, or unknown.
summaryStatusDetailsstringSource status details.

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.