ParticipantHelperCreateParticipantT Method (IPEndPoint, IPEndPoint, 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>(
IPEndPoint localEndpoint,
IPEndPoint remoteEndpoint,
bool createRtcpEndpoint = true
)
where T : INetworkClient
Public Shared Function CreateParticipant(Of T As INetworkClient) (
localEndpoint As IPEndPoint,
remoteEndpoint As IPEndPoint,
Optional createRtcpEndpoint As Boolean = true
) As IRtpParticipant
public:
generic<typename T>
where T : INetworkClient
static IRtpParticipant^ CreateParticipant(
IPEndPoint^ localEndpoint,
IPEndPoint^ remoteEndpoint,
bool createRtcpEndpoint = true
)
static member CreateParticipant :
localEndpoint : IPEndPoint *
remoteEndpoint : IPEndPoint *
?createRtcpEndpoint : bool
(* Defaults:
let _createRtcpEndpoint = defaultArg createRtcpEndpoint true
*)
-> IRtpParticipant when 'T : INetworkClient
Parameters
- localEndpoint
- Type: System.NetIPEndPoint
The local endpoint.
- remoteEndpoint
- Type: System.NetIPEndPoint
The remote endpoint.
- createRtcpEndpoint (Optional)
- Type: SystemBoolean
(optional) the create RTCP endpoint. The port will be localRtpPort + 1;
Type Parameters
- T
-
Generic type parameter.
Return Value
Type:
IRtpParticipant
Returns a valid IRTPParticipant, otherwise null.
See Also