Click or drag to resize
AacAccessUnitToolCreateAuRtpFrame Method
Creates an AU RTP frame from AAC ADIF or ADTS audio frames.

Namespace: StreamCoders.Encoder
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public RtpFrame CreateAuRtpFrame(
	MediaBuffer<byte> inputData
)

Parameters

inputData
Type: StreamCodersMediaBufferByte
MediaBuffer containing data and timing information. Note that AacAccessUnitTool.NetworkConfiguration must be filled out.

Return Value

Type: RtpFrame
Returns newly created RTPFrame.
Examples
Example
MediaBuffer<byte> mp = GetNextFrame();
var tempFrame = aacTool.CreateAuRtpFrame(mp);
if (tempFrame != null)
{
retFrames.Add(tempFrame);
detail.RecentPresentationTime = mp.StartTime;
detail.RecentTimestamp = tempFrame.Timestamp;
detail.RecentSequenceNumber = tempFrame.Peek(tempFrame.PacketCount - 1).SequenceNumber;
}
See Also