Set the SDP data from a 3GP file.
DWORD mmSetSDPInfo ( MMFILE *pMMFile, BYTE *pBuffer, unsigned bufferSize)
Argument |
Description |
pMMFile |
A pointer to the object that controls the multimedia file. |
pBuffer |
A pointer to the SDP data buffer. |
bufferSize |
SDP data buffer’s size field. |
Return value |
Description |
SUCCESS |
|
MMERR_INVALID_FILE_AND_STREAM |
pMMFile is NULL. |
mmSetSDPInfo stores the SDP data to a 3GP file. The SDP buffer should contain session level SDP parameters followed by media level parameters.
mmSetSDPInfo should be called after the final mmOpenStream.
DWORD ret;
ret = mmGetSDPInfo(&mmFile, pBuffer, pBufferSize);
if( ret != SUCCESS )
{
printf ("\nERROR in mmGetSDPInfo(%d)\n", ret);
return -1;
}