Navigation
API > API/Runtime > API/Runtime/MediaUtils
Collection of media sample sinks.
| Name | TMediaSampleSinks |
| Type | class |
| Header File | /Engine/Source/Runtime/MediaUtils/Public/MediaSampleSinks.h |
| Include Path | #include "MediaSampleSinks.h" |
Syntax
template<typename SampleType, typename SinkType>
class TMediaSampleSinks
Derived Classes
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
const TSharedRef< SinkType, ESPMode::ThreadSafe >& SampleSink, |
Add the given media sample sink to the collection. | MediaSampleSinks.h | |
void Cleanup() |
Remove any invalid sinks | MediaSampleSinks.h | |
bool Enqueue
(
const TSharedRef< SampleType, ESPMode::ThreadSafe >& Sample |
Enqueue the given media samples to the registered sinks. | MediaSampleSinks.h | |
void Flush
(
UMediaPlayer* MediaPlayer |
Flush all registered sinks. | MediaSampleSinks.h | |
bool IsEmpty() |
Check if any sinks are inserted | MediaSampleSinks.h | |
int32 Num () |
Get the number of sinks in this collection. | MediaSampleSinks.h | |
void ReceiveEvent
(
EMediaSampleSinkEvent Event, |
Receive event and broadcast to sinks | MediaSampleSinks.h | |
void Remove
(
const TSharedRef< SinkType, ESPMode::ThreadSafe >& SampleSink, |
Remove the given media sample sink from the collection. | MediaSampleSinks.h |