ParticipantHelperCreateUdpParticipant Method (String, Int32, String, Int32, Boolean) |
Creates an RTPParticipant using UdpNetworkClient. Rtcp ports default to RtpPort + 1. RTP ports
should be even numbered.
Namespace: StreamCoders.RtpAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public static IRtpParticipant CreateUdpParticipant(
string localIp,
int localRtpPort,
string remoteIp,
int remotePort,
bool createRtcpEndpoint = true
)
Public Shared Function CreateUdpParticipant (
localIp As String,
localRtpPort As Integer,
remoteIp As String,
remotePort As Integer,
Optional createRtcpEndpoint As Boolean = true
) As IRtpParticipant
public:
static IRtpParticipant^ CreateUdpParticipant(
String^ localIp,
int localRtpPort,
String^ remoteIp,
int remotePort,
bool createRtcpEndpoint = true
)
static member CreateUdpParticipant :
localIp : string *
localRtpPort : int *
remoteIp : string *
remotePort : int *
?createRtcpEndpoint : bool
(* Defaults:
let _createRtcpEndpoint = defaultArg createRtcpEndpoint true
*)
-> IRtpParticipant
Parameters
- localIp
- Type: SystemString
Local IP address to send/receive. Leaving null will keep the socket unbound.
- localRtpPort
- Type: SystemInt32
Local RTP port.
- remoteIp
- Type: SystemString
Remote IP address to send to. Leave null to receive from any remote endpoint.
- remotePort
- Type: SystemInt32
Remote port.
- createRtcpEndpoint (Optional)
- Type: SystemBoolean
(optional) the create RTCP endpoint. The port will be localRtpPort + 1;
Return Value
Type:
IRtpParticipant
Returns a valid IRTPParticipant, otherwise null.
See Also