public class MediaStreamTarget extends Object
| Constructor and Description |
|---|
MediaStreamTarget(InetAddress rtpAddr,
int rtpPort,
InetAddress rtcpAddr,
int rtcpPort)
Initializes a new MediaStreamTarget instance with specific
RTP and RTCP InetAddresses and ports.
|
MediaStreamTarget(InetSocketAddress rtpTarget,
InetSocketAddress rtcpTarget)
Initializes a new MediaStreamTarget instance with specific
RTP and RTCP InetSocketAddresses.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addressesAreEqual(InetSocketAddress addr1,
InetSocketAddress addr2)
Determines whether two specific InetSocketAddress instances are
equal.
|
boolean |
equals(Object obj)
Determines whether this MediaStreamTarget is equal to a specific
Object.
|
InetSocketAddress |
getControlAddress()
Returns the InetSocketAddress that this MediaTarget is
pointing to for all media (RTP) traffic.
|
InetSocketAddress |
getDataAddress()
Returns the InetSocketAddress that this MediaTarget is
pointing to for all media (RTP) traffic.
|
int |
hashCode()
Returns a hash code for this MediaStreamTarget instance which is
suitable for use in hash tables.
|
String |
toString()
Returns a human-readable representation of this
MediaStreamTarget instance in the form of a String
value.
|
public MediaStreamTarget(InetSocketAddress rtpTarget, InetSocketAddress rtcpTarget)
rtpTarget - the InetSocketAddress that the new instance is
to indicate as a data/RTP address.rtcpTarget - the InetSocketAddress that the new instance is
to indicate as a control/RTCP address.public MediaStreamTarget(InetAddress rtpAddr, int rtpPort, InetAddress rtcpAddr, int rtcpPort)
rtpAddr - the InetAddress that the new instance is to
indicate as the IP address of a data/RTP addressrtpPort - the port that the new instance is to indicate as the port
of a data/RTP addressrtcpAddr - the InetAddress that the new instance is to
indicate as the IP address of a control/RTCP addressrtcpPort - the port that the new instance is to indicate as the port
of a control/RTCP addresspublic static boolean addressesAreEqual(InetSocketAddress addr1, InetSocketAddress addr2)
addr1 - one of the InetSocketAddress instances to be
comparedaddr2 - the other InetSocketAddress instance to be comparedpublic boolean equals(Object obj)
public InetSocketAddress getDataAddress()
public InetSocketAddress getControlAddress()
public int hashCode()
Copyright © 2022 jitsi.org. All rights reserved.