Navigation
Unreal Engine C++ API Reference > Runtime > MediaAssets
Inheritance Hierarchy
- UObject
- UMediaPlaylist
References
Module | MediaAssets |
Header | /Engine/Source/Runtime/MediaAssets/Public/MediaPlaylist.h |
Include | #include "MediaPlaylist.h" |
Syntax
UCLASS (BlueprintType, HideCategories=(Object), MinimalAPI)
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. | |
![]() ![]() ![]() |
bool | ||
![]() ![]() ![]() |
UMediaSource * | Get the media source at the specified index. | |
![]() ![]() ![]() |
UMediaSource * | Get the next media source in the play list. | |
![]() ![]() ![]() |
UMediaSource * | GetPrevious
(
int32& InOutIndex |
Get the previous media source in the play list. |
![]() ![]() ![]() |
UMediaSource * | 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 | Remove the media source at the specified position. | |
![]() ![]() ![]() |
bool | Replace
(
int32 Index, |
Replace the media source at the specified position. |