Navigation
API > API/Runtime > API/Runtime/MediaUtils
References
| Module | MediaUtils |
| Header | /Engine/Source/Runtime/MediaUtils/Public/MediaSampleCache.h |
| Include | #include "MediaSampleCache.h" |
Syntax
class FMediaSampleCache
Remarks
Implements a cache for media samples.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Empty () |
Empty the cache. | |
| TSharedPtr< IMediaAudioSample, ESPMode::ThreadSafe > | GetAudioSample
(
FTimespan Time |
Get the audio sample for the specified play time. | |
| void | GetCachedAudioSampleRanges
(
TRangeSet< FTimespan >& OutTimeRanges |
Get the time ranges of audio samples currently in the cache. | |
| void | GetCachedVideoSampleRanges
(
TRangeSet< FTimespan >& OutTimeRanges |
Get the time ranges of video samples currently in the cache. | |
| void | GetOverlaySamples
(
FTimespan Time, |
Get the text overlay samples for the specified time. | |
| TSharedPtr< IMediaTextureSample, ESPMode::ThreadSafe > | GetVideoSample
(
FTimespan Time, |
Get the video sample for the specified play time. | |
| void | SetCacheWindow
(
FTimespan Ahead, |
Set the time window of samples to cache. | |
| void | Tick the cache. |
Typedefs
| Name | Description |
|---|---|
| TSampleSet | Template for sample cache sets. |