IMediaLocator interface

[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.]

Note

[Deprecated. This API may be removed from future releases of Windows.]

 

The IMediaLocator interface provides methods for validating file names in DirectShow Editing Services (DES). Use this interface to ensure that a given file name and path correspond to an existing file. This interface also provides a way to search for the file at other locations, and to display an Open dialog box so that the user can locate the file.

The media locator implements this interface. The timeline and the render engine also support file name validation through the following methods:

Typically, a DES application will call these methods rather than directly create an instance of the media locator. For more information, see Using the Media Locator.

Members

The IMediaLocator interface inherits from the IUnknown interface. IMediaLocator also has these types of members:

Methods

The IMediaLocator interface has these methods.

Method Description
AddFoundLocation Adds a directory to the directory cache.
FindMediaFile Searches for a file and, if successful, retrieves the path to the file.

 

Remarks

Note

The header file Qedit.h is not compatible with Direct3D headers later than version 7.

 

Note

To obtain Qedit.h, download the Microsoft Windows SDK Update for Windows Vista and .NET Framework 3.0. Qedit.h is not available in the Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 Service Pack 1.

 

Requirements

Requirement Value
Header
Qedit.h
Library
Strmiids.lib