![]() |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
![](../local/c4a58614-3378-47f5-8838-f840cf3e770c.gif)
This is an abstract class that assists source filters with the implementation of IMediaPositionmethods.
Derive from this class and set the duration and default stop positions.
This class supports IMediaPosition, and calls the pure virtual member functions CSourcePosition::ChangeStart, CSourcePosition::ChangeStop, and CSourcePosition::ChangeRatewhen CSourcePosition::put_CurrentPosition, CSourcePosition::put_StopTime, or CSourcePosition::put_Rateis called, to allow a source filter to handle these commands and start sending new data.
Override the CSourcePosition::ChangeStart, CSourcePosition::ChangeStop, and CSourcePosition::ChangeRatemember functions to do something when the properties change.
Protected Data Members
Member | Description |
---|---|
m_Duration |
Duration of the stream. |
m_pLock |
Pointer to a CCritSecobject for locking. |
m_Rate |
Sample rate. |
m_Start |
Start time. |
m_Stop |
Stop time. |
Member Functions
Member function | Description |
---|---|
Constructs a CSourcePositionobject. |
Overrideable Member
Functions
Member function | Description |
---|---|
Override this pure virtual to handle notification that the rate property has changed. |
|
Override this pure virtual to handle notification that the start position property has changed. |
|
Override this pure virtual to handle notification that the stop position property has changed. |
Implemented IMediaPosition
Methods
Method | Description |
---|---|
Not currently implemented. |
|
Retrieves the total duration of the media. |
|
Not currently implemented. |
|
Retrieves the playback rate, relative to normal playback of the media. |
|
Retrieves the position within the media at which playback should stop. |
|
Sets the position within the media at which playback should start. |
|
Not currently implemented. |
|
Sets the playback rate, relative to normal playback of the media. |
|
Sets the position within the media at which playback should stop. |
Requirements
Windows Embedded CE | Windows CE 2.12 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
Note | Microsoft DirectShow applications and DirectShow filters have
different include file and Library requirements
For more information, see Setting Up the Build Environment |