UMediaPlaylist

Implements a media play list.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MediaAssets

Header

/Engine/Source/Runtime/MediaAssets/Public/MediaPlaylist.h

Include

#include "MediaPlaylist.h"

Syntax

class UMediaPlaylist : public UObject

Remarks

Implements a media play list.

Variables

Name Description

Protected variable

TArray< UMediaS...

 

Items

List of media sources to play.

Functions

Name Description

Public function

bool

 

Add

(
    UMediaSource* MediaSource
)

Add a media source to the play list.

Public function

bool

 

AddFile

(
    const FString& FilePath
)

Add a media file path to the play list.

Public function

bool

 

AddUrl

(
    const FString& Url
)

Add a media URL to the play list.

Public function

UMediaSource...

 

Get

(
    int32 Index
)

Get the media source at the specified index.

Public function

UMediaSource...

 

GetNext

(
    int32& InOutIndex
)

Get the next media source in the play list.

Public function

UMediaSource...

 

GetPrevious

(
    int32& InOutIndex
)

Get the previous media source in the play list.

Public function

UMediaSource...

 

GetRandom

(
    int32& OutIndex
)

Get a random media source in the play list.

Public function

void

 

Insert

(
    UMediaSource* MediaSource,
    int32 Index
)

Insert a media source into the play list at the given position.

Public function

int32

 

Num()

Get the number of media sources in the play list.

Public function

bool

 

Remove

(
    UMediaSource* MediaSource
)

Remove all occurrences of the given media source in the play list.

Public function

bool

 

RemoveAt

(
    int32 Index
)

Remove the media source at the specified position.

Public function

bool

 

Replace

(
    int32 Index,
    UMediaSource* Replacement
)

Replace the media source at the specified position.

Overridden from UObjectBaseUtility

Name Description

Protected function Virtual Const

bool

 

CanBeInCluster()

Called during cluster construction if the object can be added to a cluster

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss