mmSetSDPInfo

Set the SDP data from a 3GP file.

Prototype

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 values

Return value

Description

SUCCESS

 

MMERR_INVALID_FILE_AND_STREAM

pMMFile is NULL.

Details

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.

Examples

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