SDPMediaHelperCreateFrom Method (AAudioEncoderBase, Int32, Int32) |
Attempts to create an SDPMedia object from a AudioEncoderBase interface instance.
Namespace: StreamCoders.SdpAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public static SdpMedia CreateFrom(
AAudioEncoderBase encoder,
int trackId,
int payloadType
)
Public Shared Function CreateFrom (
encoder As AAudioEncoderBase,
trackId As Integer,
payloadType As Integer
) As SdpMedia
public:
static SdpMedia^ CreateFrom(
AAudioEncoderBase^ encoder,
int trackId,
int payloadType
)
static member CreateFrom :
encoder : AAudioEncoderBase *
trackId : int *
payloadType : int -> SdpMedia
Parameters
- encoder
- Type: StreamCoders.EncoderAAudioEncoderBase
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 AACEncoder instances.
See Also