MP4AddRtpSampleData - Man Page

Add media sample data to an RTP packet

Syntax

#include <mp4.h>

bool MP4AddRtpSampleData(
MP4FileHandle hFile,
MP4TrackId hintTrackId,
MP4SampleId sampleId,
u_int32_t dataOffset,
u_int32_t dataLength
);

Arguments

hFile

Specifies the mp4 file to which the operation applies.

hintTrackId

Specifies the hint track to which the operation applies.

sampleId

Specifies the reference media sample id from which the media data should be taken.

dataOffset

Specifies the byte offset in the specified media sample where data should be taken from for the current RTP packet.

dataLength

Specifies the length in bytes of the media data that should be included in the current RTP packet.

Return Values

Upon success, true (1). Upon an error, false (0).

Description

MP4AddRtpSampleData adds a reference in the current pending RTP packet to the media data in the specified media sample of the reference media track. Note this is a reference, not a copy, of the media data.

See Also

MP4(3) MP4AddRtpPacket (3) MP4AddRtpImmediateData (3)

Referenced By

MP4AddRtpPacket(3).

Version 0.9 Cisco Systems Inc. MP4 File Format Library