UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MediaPlaylist.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Array.h"
7#include "CoreMinimal.h"
8#include "HAL/Platform.h"
9#include "UObject/Object.h"
11#include "UObject/ObjectPtr.h"
14
15#include "MediaPlaylist.generated.h"
16
17class UMediaSource;
18struct FFrame;
19
23UCLASS(BlueprintType, hidecategories=(Object), MinimalAPI)
26{
28
29public:
30
38 UFUNCTION(BlueprintCallable, Category="Media|MediaPlaylist")
39 MEDIAASSETS_API bool Add(UMediaSource* MediaSource);
40
48 UFUNCTION(BlueprintCallable, Category="Media|MediaPlaylist")
49 MEDIAASSETS_API bool AddFile(const FString& FilePath);
50
58 UFUNCTION(BlueprintCallable, Category="Media|MediaPlaylist")
59 MEDIAASSETS_API bool AddUrl(const FString& Url);
60
68 UFUNCTION(BlueprintCallable, Category="Media|MediaPlaylist")
70
78 UFUNCTION(BlueprintCallable, Category="Media|MediaPlaylist")
80
88 UFUNCTION(BlueprintCallable, Category="Media|MediaPlaylist")
90
98 UFUNCTION(BlueprintCallable, Category="Media|MediaPlaylist")
99 MEDIAASSETS_API UMediaSource* GetRandom(int32& OutIndex);
100
108 UFUNCTION(BlueprintCallable, Category="Media|MediaPlaylist")
109 MEDIAASSETS_API void Insert(UMediaSource* MediaSource, int32 Index);
110
116 UFUNCTION(BlueprintCallable, Category="Media|MediaPlaylist")
118 {
119 return Items.Num();
120 }
121
129 UFUNCTION(BlueprintCallable, Category="Media|MediaPlaylist")
130 MEDIAASSETS_API bool Remove(UMediaSource* MediaSource);
131
139 UFUNCTION(BlueprintCallable, Category="Media|MediaPlaylist")
140 MEDIAASSETS_API bool RemoveAt(int32 Index);
141
150 UFUNCTION(BlueprintCallable, Category="Media|MediaPlaylist")
152
154
156 UPROPERTY(EditAnywhere, Category=Playlist)
158
159 virtual bool CanBeInCluster() const override { return false; }
160};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
@ Num
Definition MetalRHIPrivate.h:234
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Array.h:670
Definition MediaPlaylist.h:26
Definition MediaSource.h:45
Definition Object.h:95
U16 Index
Definition radfft.cpp:71
Definition Stack.h:114
Definition ObjectPtr.h:488