ITMedia

[This is preliminary documentation and subject to change.]

This component is a representation of a media in an SDP component. It exports methods to get and set media properties

IUnknown Methods Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments the reference count.
Release Decrements the reference count.

IDispatch Methods Description
GetTypeInfoCount Retrieves the number of type information interfaces.
GetTypeInfo Retrieves the type information for an object.
GetIDsOfNames Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs.
Invoke Provides access to properties and methods exposed by an object.

ITMedia Methods Descriptions
get_MediaName Gets the media name (BSTR). Defined media are audio, video, whiteboard, text and data.
put_MediaName Sets the media name (BSTR). Defined media are audio, video, whiteboard, text and data.
get_StartPort Gets the 16-bit port value (USHORT) for the first port.
get_NumPorts Gets the number of ports (USHORT) needed for the session.
get_TransportProtocol Gets the transport protocol (BSTR). This is specified in addition to the media format so that the same standard media format may be carried over different transport protocols even when the network protocol is the same.
put_TransportProtocol Sets the transport protocol (BSTR). This is specified in addition to the media format so that the same standard media format may be carried over different transport protocols even when the network protocol is the same.
get_FormatCodeList Gets the list of media payload format codes.
put_FormatCodeList Sets the list of media payload format codes.
get_MediaTitle Gets the media title (BSTR). This is mainly for user information or display purposes. This has to be an ASCII convertible string if the character set is ASCII. (It can be any BSTR string otherwise.)
put_MediaTitle Sets the media title (BSTR). This is mainly for user information or display purposes. This has to be an ASCII convertible string if the character set is ASCII. (It can be any BSTR string otherwise.)
SetPortInfo Sets the 16-bit port value (USHORT) for the first port and number of ports needed for session.