ParticipantHelperCreateParticipantT Method (IPAddress, Int32, IPAddress, Int32, Boolean) |
Creates an RTPParticipant using generic T where T is INetworkClient. 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)
Syntaxpublic static IRtpParticipant CreateParticipant<T>(
IPAddress localIp,
int localRtpPort,
IPAddress remoteIp,
int remotePort,
bool createRtcpEndpoint = true
)
where T : INetworkClient
Public Shared Function CreateParticipant(Of T As INetworkClient) (
localIp As IPAddress,
localRtpPort As Integer,
remoteIp As IPAddress,
remotePort As Integer,
Optional createRtcpEndpoint As Boolean = true
) As IRtpParticipant
public:
generic<typename T>
where T : INetworkClient
static IRtpParticipant^ CreateParticipant(
IPAddress^ localIp,
int localRtpPort,
IPAddress^ remoteIp,
int remotePort,
bool createRtcpEndpoint = true
)
static member CreateParticipant :
localIp : IPAddress *
localRtpPort : int *
remoteIp : IPAddress *
remotePort : int *
?createRtcpEndpoint : bool
(* Defaults:
let _createRtcpEndpoint = defaultArg createRtcpEndpoint true
*)
-> IRtpParticipant when 'T : INetworkClient
Parameters
- localIp
- Type: System.NetIPAddress
Local IP address to send/receive. Leaving null will keep the socket unbound.
- localRtpPort
- Type: SystemInt32
Local RTP port.
- remoteIp
- Type: System.NetIPAddress
Remote IP address to send to. Leave null to receive from any remote endpoint.
If the participant is to receive from multiple remote endpoints the IPaddress
should be set to IPAddress.Any.
- remotePort
- Type: SystemInt32
Remote port.
- createRtcpEndpoint (Optional)
- Type: SystemBoolean
(optional) the create RTCP endpoint. The port will be localRtpPort + 1;
Type Parameters
- T
-
Generic type parameter that must be derived from INetworkClient.
Return Value
Type:
IRtpParticipant
Returns a valid IRTPParticipant, otherwise null.
See Also