SDPMediaHelperCreateFrom Method (AVideoEncoderBase, Int32, Int32) |
Attempts to create an SDPMedia object from a VideoEncoderBase interface instance.
Namespace: StreamCoders.SdpAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public static SdpMedia CreateFrom(
AVideoEncoderBase encoder,
int trackId,
int payloadType
)
Public Shared Function CreateFrom (
encoder As AVideoEncoderBase,
trackId As Integer,
payloadType As Integer
) As SdpMedia
public:
static SdpMedia^ CreateFrom(
AVideoEncoderBase^ encoder,
int trackId,
int payloadType
)
static member CreateFrom :
encoder : AVideoEncoderBase *
trackId : int *
payloadType : int -> SdpMedia
Parameters
- encoder
- Type: StreamCoders.EncoderAVideoEncoderBase
Encoder instance. - trackId
- Type: SystemInt32
SDP control track for media description. - payloadType
- Type: SystemInt32
Payload type of media.
Return Value
Type:
SdpMediaReturns SDPMedia object on success, otherwise null.
Remarks
CreateFrom currently supports MPEG-4.2 and MPEG-4.10 (H.264, AVC) encoder instances.
See Also