Navigation
API > API/Runtime > API/Runtime/MediaAssets
Implements a media play list.
| Name | UMediaPlaylist |
| Type | class |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaPlaylist.h |
| Include Path | #include "MediaPlaylist.h" |
Syntax
UCLASS (BlueprintType, HideCategories=(Object), MinimalAPI)
class UMediaPlaylist : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMediaPlaylist
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Add
(
UMediaSource* MediaSource |
Add a media source to the play list. | MediaPlaylist.h |
|
| Add a media file path to the play list. | MediaPlaylist.h |
|
|
| Add a media URL to the play list. | MediaPlaylist.h |
|
|
UMediaSource * Get
(
int32 Index |
Get the media source at the specified index. | MediaPlaylist.h |
|
UMediaSource * GetNext
(
int32& InOutIndex |
Get the next media source in the play list. | MediaPlaylist.h |
|
UMediaSource * GetPrevious
(
int32& InOutIndex |
Get the previous media source in the play list. | MediaPlaylist.h |
|
UMediaSource * GetRandom
(
int32& OutIndex |
Get a random media source in the play list. | MediaPlaylist.h |
|
void Insert
(
UMediaSource* MediaSource, |
Insert a media source into the play list at the given position. | MediaPlaylist.h |
|
int32 Num() |
Get the number of media sources in the play list. | MediaPlaylist.h |
|
bool Remove
(
UMediaSource* MediaSource |
Remove all occurrences of the given media source in the play list. | MediaPlaylist.h |
|
bool RemoveAt
(
int32 Index |
Remove the media source at the specified position. | MediaPlaylist.h |
|
bool Replace
(
int32 Index, |
Replace the media source at the specified position. | MediaPlaylist.h |
|
Protected
Overridden from UObjectBaseUtility
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanBeInCluster() |
MediaPlaylist.h |