public class RtpStreamServiceSettings
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
RtpStreamServiceSettings() |
RtpStreamServiceSettings(RtpStreamServiceSettings other) |
RtpStreamServiceSettings(java.lang.String ipAddress,
java.lang.String udpPort,
java.lang.String multicastAddress,
int voxTimeout,
int eventsPayloadType,
int namedEventPayloadType,
int toneEventPayloadType,
RtpType rtpType)
Defines a RTP stream service with the specified IP address and UDP port.
|
Modifier and Type | Method and Description |
---|---|
int |
getEventsPayloadType() |
java.lang.String |
getIpAddress() |
java.lang.String |
getMulticastAddress() |
int |
getNamedEventPayloadType() |
java.util.List |
getPortList(java.lang.String portRegex)
Helper which converts a valid regular expression to a list of UDP port numbers
which match the regular expression.
|
int |
getRtpType() |
int |
getToneEventPayloadType() |
java.lang.String |
getUdpPort() |
int |
getVoxTimeout() |
void |
setEventsPayloadType(int eventsPayloadType) |
void |
setIpAddress(java.lang.String ipAddress) |
void |
setMulticastAddress(java.lang.String multicastAddress) |
void |
setNamedEventPayloadType(int namedEventPayloadType) |
void |
setRtpType(int rtpTypeId) |
void |
setToneEventPayloadType(int toneEventPayloadType) |
void |
setUdpPort(java.lang.String udpPort) |
void |
setVoxTimeout(int voxTimeout) |
java.lang.String |
toString() |
public RtpStreamServiceSettings(java.lang.String ipAddress, java.lang.String udpPort, java.lang.String multicastAddress, int voxTimeout, int eventsPayloadType, int namedEventPayloadType, int toneEventPayloadType, RtpType rtpType)
ipAddress
- The IP address to use when providing the service. Must be one of of the
IP addresses assigned to the system.udpPort
- Valid UDP port(s) to use when providing the service.
The value must be a valid regular expression that matches one or more valid
UDP port numbers (1024, 65535]. For example, "7000" matches UDP port number 7000,
while "7[0-2]00" matches port range [7000, 7200].multicastAddress
- The IP address of the multicast group to listen to. Must be a multicast IP address
or null
for unicast RTP stream services. If set, then @udpPort is the
multicast port to use while @ipAddress is the IP address of the network interface
that will be used to receive multicast packets.voxTimeout
- The time, in seconds, that the system will keep recording after it has detected
that there is no longer RTP packets on the stream being recorded. The system will
end recording after this time.eventsPayloadType
- RTP payload type that identifies RTP packets that carry more than one RFC 2833
events. Set to -1 if RTP packets carry single telephony or tone events.namedEventPayloadType
- RTP payload type that identifies RTP packets that carry a single RFC 2833
named event. Set to -1 if RTP packets carry multiple named events.toneEventPayloadType
- RTP payload type that identifies RTP packets that carry a single RFC 2833
tone event. Set to -1 if RTP packets carry multiple tone events.rtpType
- The RTP extension type, if present in the RTP packets.public RtpStreamServiceSettings(RtpStreamServiceSettings other)
public RtpStreamServiceSettings()
public java.lang.String getIpAddress()
public void setIpAddress(java.lang.String ipAddress)
public java.lang.String getUdpPort()
public void setUdpPort(java.lang.String udpPort)
public java.lang.String getMulticastAddress()
public void setMulticastAddress(java.lang.String multicastAddress)
public int getVoxTimeout()
public void setVoxTimeout(int voxTimeout)
public int getEventsPayloadType()
public void setEventsPayloadType(int eventsPayloadType)
public int getNamedEventPayloadType()
public void setNamedEventPayloadType(int namedEventPayloadType)
public int getToneEventPayloadType()
public void setToneEventPayloadType(int toneEventPayloadType)
public int getRtpType()
public void setRtpType(int rtpTypeId)
public java.util.List getPortList(java.lang.String portRegex)
portRegex
- A valid regular expression that matches one or more valid UDP port numbers (0, 65535].
For example, "7000" matches UDP port number 7000, while "7[0-2]00" matches port range
[7000, 7200].Integer
s that represent the UDP port numbers which match the
regular expression.public java.lang.String toString()
toString
in class java.lang.Object
Copyright ©, 2005-2019 Prolancer Pty Ltd, Sydney Australia.