Interface for access to a media player's cache.
更多...
#include <IMediaCache.h>
|
| virtual int32 | GetSampleCount (EMediaCacheState State) const |
| | Query the number of samples for the specified caching state. 更多...
|
| |
| virtual bool | QueryCacheState (EMediaCacheState State, TRangeSet< FTimespan > &OutTimeRanges) const |
| | Query the time ranges of cached media samples for the specified caching state. 更多...
|
| |
|
virtual | ~IMediaCache () |
| | Virtual destructor.
|
| |
◆ GetSampleCount()
| virtual int32 IMediaCache::GetSampleCount |
( |
EMediaCacheState |
State | ) |
const |
|
inlinevirtual |
Query the number of samples for the specified caching state.
- 参数
-
| State | The sample state we're interested in. |
- 返回
- Sample count.
◆ QueryCacheState()
| virtual bool IMediaCache::QueryCacheState |
( |
EMediaCacheState |
State, |
|
|
TRangeSet< FTimespan > & |
OutTimeRanges |
|
) |
| const |
|
inlinevirtual |
Query the time ranges of cached media samples for the specified caching state.
This method can be used to probe a media player's decoder for which samples are scheduled for loading, being loaded, or finished loading. This is generally only supported by those players that expose some kind of internal sample caching or load/decode scheduling mechanism, and most players may simply ignore this call.
- 参数
-
| State | The sample state we're interested in. |
| OutTimeRanges | Will contain the set of matching sample time ranges. |
- 返回
- true on success, false if not supported.
该类的文档由以下文件生成: