engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IMediaCache类 参考

Interface for access to a media player's cache. 更多...

#include <IMediaCache.h>

Public 成员函数

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.
 

详细描述

Interface for access to a media player's cache.

参见
IMediaControls, IMediaPlayer, IMediaSamples, IMediaTracks, IMediaView

成员函数说明

◆ GetSampleCount()

virtual int32 IMediaCache::GetSampleCount ( EMediaCacheState  State) const
inlinevirtual

Query the number of samples for the specified caching state.

参数
StateThe 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.

参数
StateThe sample state we're interested in.
OutTimeRangesWill contain the set of matching sample time ranges.
返回
true on success, false if not supported.

该类的文档由以下文件生成: