mmGetSDPInfo

Obtains the SDP data from a 3GP file.  

Prototype

DWORD mmGetSDPInfo ( MMFILE *pMMFile, BYTE *pBuffer, unsigned *pBufferSize)

Argument

Description

pMMFile

A pointer to the object that controls the multimedia file.

pBuffer

A pointer to the SDP data buffer.

pBufferSize

A pointer to the SDP data buffer’s size field.

Return values

Return value

Description

SUCCESS

 

MMERR_INVALID_FILE

pMMFile is NULL.

Details

After calling mmGetSDPInfo  the SDP buffer contains session-level SDP parameters followed by media-level parameters.

mmGetSDPInfo should be called after the final mmOpenStream.

The application allocates memory for the SDP data buffer using the value of the sdpBufferSize field in the FILE_INFO_DESC structure returned from mmGetFileInfo.

Examples

DWORD ret;
ret = mmGetSDPInfo(&mmFile, &mmStream, pBuffer, pBufferSize);
If( ret != SUCCESS )
{
printf ("\nERROR in mmGetSDPInfo(%d)\n", ret);
return -1;
}