Navigation
Unreal Engine C++ API Reference > Runtime > MediaAssets
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMediaPlaylist
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
Type | Name | Description | |
---|---|---|---|
![]() |
TArray< TObjectPtr< UMediaSource > > | Items | List of media sources to play. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
bool | Add
(
UMediaSource* MediaSource |
Add a media source to the play list. |
![]() |
bool | Add a media file path to the play list. | |
![]() |
bool | Add a media URL to the play list. | |
![]() |
UMediaSource * | Get
(
int32 Index |
Get the media source at the specified index. |
![]() |
UMediaSource * | GetNext
(
int32& InOutIndex |
Get the next media source in the play list. |
![]() |
UMediaSource * | GetPrevious
(
int32& InOutIndex |
Get the previous media source in the play list. |
![]() |
UMediaSource * | GetRandom
(
int32& OutIndex |
Get a random media source in the play list. |
![]() |
void | Insert
(
UMediaSource* MediaSource, |
Insert a media source into the play list at the given position. |
![]() |
int32 | Num () |
Get the number of media sources in the play list. |
![]() |
bool | Remove
(
UMediaSource* MediaSource |
Remove all occurrences of the given media source in the play list. |
![]() |
bool | RemoveAt
(
int32 Index |
Remove the media source at the specified position. |
![]() |
bool | Replace
(
int32 Index, |
Replace the media source at the specified position. |
Overridden from UObjectBaseUtility
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | Called during cluster construction if the object can be added to a cluster |