다음을 통해 공유


IAMMediaContent2 interface (qnetwork.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IAMMediaContent2 interface retrieves custom parameters and playlists from ASX files. This interface is not implemented by any default components in DirectShow.

Inheritance

The IAMMediaContent2 interface inherits from the IDispatch interface. IAMMediaContent2 also has these types of members:

Methods

The IAMMediaContent2 interface has these methods.

 
IAMMediaContent2::get_MediaParameter

The get_MediaParameter method retrieves the value of a custom parameter in the ASX file.
IAMMediaContent2::get_MediaParameterName

The get_MediaParameterName method retrieves the name of a custom parameter in an ASX file.
IAMMediaContent2::get_PlaylistCount

The get_PlaylistCount method retrieves the number of entries in an ASX file.

Remarks

To define the interface identifier, include the header file Initguid.h before Qnetwork.h, but after Dshow.h and other header files:

#include <dshow.h>
#include <initguid.h>
#include <qnetwork.h>
Note  Make sure that Initguid.h is included only once in your project. Otherwise, you will receive linker errors for duplicate GUID values.
 

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header qnetwork.h

See also

IDispatch