AacAccessUnitToolCreateAuRtpFrame Method |
Creates an AU RTP frame from AAC ADIF or ADTS audio frames.
Namespace: StreamCoders.EncoderAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public RtpFrame CreateAuRtpFrame(
MediaBuffer<byte> inputData
)
Public Function CreateAuRtpFrame (
inputData As MediaBuffer(Of Byte)
) As RtpFrame
public:
RtpFrame^ CreateAuRtpFrame(
MediaBuffer<unsigned char>^ inputData
)
member CreateAuRtpFrame :
inputData : MediaBuffer<byte> -> RtpFrame
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 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