TMediaSampleSinks

Collection of media sample sinks.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

TMediaSampleSinks

FMediaAudioSampleSinks

References

Module

MediaUtils

Header

/Engine/Source/Runtime/MediaUtils/Public/MediaSampleSinks.h

Include

#include "MediaSampleSinks.h"

Syntax

template<typename SampleType, typename SinkType>
class TMediaSampleSinks

Remarks

Collection of media sample sinks.

Variables

Name Description

Protected variable

TArray< TWeakPt...

 

Sinks

The collection of registered sinks.

Functions

Name Description

Public function

void

 

Add

(
    const TSharedRef< SinkType, ESPMode...
)

Add the given media sample sink to the collection.

Public function

void

 

Cleanup()

Remove any invalid sinks

Public function

bool

 

Enqueue

(
    const TSharedRef< SampleType, ESPMo...,
    int32 MaxDepth
)

Enqueue the given media samples to the registered sinks.

Public function

void

 

Flush()

Flush all registered sinks.

Public function Const

int32

 

Num()

Get the number of sinks in this collection.

Public function

void

 

Remove

(
    const TSharedRef< SinkType, ESPMode...
)

Remove the given media sample sink from the collection.