IRTPSPHFilter::OverridePayloadType

[This is preliminary documentation and subject to change.]

Set a new RTP payload type for the PT field in the RTP packet header. This overrides the default (static or dynamic) payload type determined by the handler. Can be used for such cases as setting negotiated dynamic payload types, setting a payload type for a generic handler, or overriding static defined payload types for specialized data. To be used at initialization time only.

HRESULT OverridePayloadType(
  BYTE bPayloadType
);
 

Parameters

bPayloadType
[in] The payload type identifier which will be used in the RTP header.

Return Values

E_INVALIDARG
The bPayloadType value is invalid or out of range.
NOERROR
The bPayloadType value will be used as the RTP payload type.