Navigation
API > API/Runtime > API/Runtime/MediaUtils
Interface for media sample sources.
This interface declares the read side of media sample queues.
| Name | TMediaSampleSource |
| Type | class |
| Header File | /Engine/Source/Runtime/MediaUtils/Public/MediaSampleSource.h |
| Include Path | #include "MediaSampleSource.h" |
Syntax
template<typename SampleType>
class TMediaSampleSource
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TMediaSampleSource() |
Virtual destructor. | MediaSampleSource.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Dequeue
(
TSharedPtr< SampleType, ESPMode::ThreadSafe >& OutSample |
Remove and return the next sample in the queue. | MediaSampleSource.h | |
void GetSampleTimes
(
TArray< TRange< FMediaTimeStamp > >& OutSampleTimeRanges |
Returns the sample start and end times of all samples currently in the queue. | MediaSampleSource.h | |
bool Peek
(
TSharedPtr< SampleType, ESPMode::ThreadSafe >& OutSample |
Peek at the next sample in the queue without removing it. | MediaSampleSource.h | |
bool Pop () |
Remove the next sample from the queue. | MediaSampleSource.h |