![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MediaSampleSinks.h>
Public Member Functions | |
| void | Add (const TSharedRef< SinkType, ESPMode::ThreadSafe > &SampleSink, UMediaPlayer *Player=nullptr) |
| bool | Enqueue (const TSharedRef< SampleType, ESPMode::ThreadSafe > &Sample) |
| void | Flush (UMediaPlayer *MediaPlayer) |
| int32 | Num () const |
| bool | IsEmpty () const |
| void | Remove (const TSharedRef< SinkType, ESPMode::ThreadSafe > &SampleSink, UMediaPlayer *Player=nullptr) |
| void | Cleanup () |
| void | ReceiveEvent (EMediaSampleSinkEvent Event, const FMediaSampleSinkEventData &Data) |
Protected Attributes | |
| TArray< TWeakPtr< SinkType, ESPMode::ThreadSafe > > | Sinks |
Collection of media sample sinks.
| SampleType | The type of media samples that the sinks process. |
|
inline |
|
inline |
Remove any invalid sinks
|
inline |
Enqueue the given media samples to the registered sinks.
This method will also remove expired sinks that haven't been removed yet.
| Sample | The media sample to enqueue. |
| MaxQueueDepth | The maximum depth of the sink queues before overflow. |
|
inline |
Flush all registered sinks.
This method will also remove expired sinks that haven't been removed yet.
|
inline |
Check if any sinks are inserted
|
inline |
|
inline |
Receive event and broadcast to sinks
|
inline |
|
protected |
The collection of registered sinks.