![]() | InDesign SDK 20.5 |
#include <IMediaFormatManager.h>

Public Types | |
| enum | { kDefaultIID = IID_IMEDIAFORMATMANAGER } |
Public Member Functions | |
| virtual ErrorCode | CanAccess (const MediaLocation &loc, const MediaType mediaType)=0 |
| virtual bool16 | CanPlay (const MediaLocation &loc)=0 |
| virtual ErrorCode | GetLastError ()=0 |
| virtual IMediaReadFormat * | FindMediaReadFormat (MediaType mediaType, IPMStream *iPMStream)=0 |
| virtual IMediaReadFormat * | FindMediaReadFormat (ClassID readFormatClassID)=0 |
| virtual IMediaReadFormat * | FindMediaReadFormat (const MediaLocation &loc)=0 |
| virtual IMediaReadFormatInfo * | FindMediaReadFormatInfo (const MediaLocation &loc)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface provides methods for obtaining read-only access to various media file formats.
| pure virtual |
Verifies that a media location can be accessed for a MediaType. This method is especially usefulfor checking whether URLs, though well-formed, can nevertheless be supported.
| loc | a MediaLocation to media content. |
| mediaType | is either enMovie or enSound. |
| pure virtual |
Tests if the media at the specified location can be played. This could be used, for example, to test if a media item can be previewed.
| pure virtual |
Finds an IMediaReadFormat capable of reading media content from a stream.
| mediaType | is either enMovie or enSound. |
| iPMStream | is a stream capable of reading the media content. |
| pure virtual |
Finds the IMediaReadFormat instance for a specified ClassID.
| readFormatClassID | the ID of a boss aggregating the IMediaReadFormat interface. |
| pure virtual |
Finds the IMediaReadFormat instance that can read from a specified MediaLocation.
| loc | a MediaLocation to media content. |
| pure virtual |
Finds the IMediaReadFormatInfo instance that can provide information for a specified MediaLocation.
| loc | a MediaLocation to media content. |
| pure virtual |
Retrieves the error status for the last method called. Calling this method resets the error status to kSuccess; thus, calling this method twice in succession without an intervening call to another method, always returns kSuccess for the second call.