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

Public Types | |
| enum | { kDefaultIID = IID_IMEDIAREADFORMAT } |
Public Member Functions | |
| virtual bool16 | CanAccessMedia ()=0 |
| virtual bool16 | CanRead (const MediaLocation &loc)=0 |
| virtual bool16 | CanRead (IPMStream *iPMStream)=0 |
| virtual ErrorCode | Close ()=0 |
| virtual IPMStream * | CreateContentStreamRead (const MediaLocation &loc)=0 |
| virtual ErrorCode | GetAttributes (IMediaContentData *contentData)=0 |
| virtual ErrorCode | GetLastError ()=0 |
| virtual IPMStream * | GetPosterStream ()=0 |
| virtual bool16 | IsOpen ()=0 |
| virtual ErrorCode | Open (IPMStream *iPMStream)=0 |
| virtual ErrorCode | Open (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 read-only access to media content. This interface must be supported by all media filters.
| pure virtual |
Tests if the media filter is able to access media content. This method allows users to determine if the filter is in a usable state without incurring the cost of a call to Open(). This method is particular useful if the implementation of this interface relies on an external component to access media.
Note: if this method returns kFalse, then calls to all other methods are likely to fail.
| pure virtual |
Tests if the media filter can read and recognize the content at a specified MediaLocation. This method has no pre or post conditions.
| loc | a MediaLocation to read. |
| pure virtual |
Tests if the media filter recognizes the format of a stream-based content. This method has no pre or post conditions.
| iPMStream | an IPMStream to media content. The filter should not assume that the stream is positioned at the first content byte. |
| pure virtual |
Closes this interface to the media content. When this method returns, all streams provided by this interface are no longer valid. Calling this method when this interface is already closed is not considered to be an error.
| pure virtual |
Creates a readable stream to the media content.
| loc | the media location. |
| pure virtual |
Retrieves media content data recognized by the filter. Content data is metadata about the content. The metadata is set by the filter as IMediaContentData attributes.
| contentData | valid pointer to an IMediaContentData instance. |
| 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.
| pure virtual |
Retrieves a stream to a poster image, if available.
| pure virtual |
Tests if this interface is open.
| pure virtual |
Opens this interface for reading a specified stream.
| pure virtual |
Opens this interface for reading a specified URL.
| url | a valid URL string preceded by an http ("http://") or file ("file://") protocol header. |