Navigation
API > API/Runtime > API/Runtime/MediaAssets
A media source that selects other media sources based on target platform.
Use this asset to override media sources on a per-platform basis.
| Name | UPlatformMediaSource |
| Type | class |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/PlatformMediaSource.h |
| Include Path | #include "PlatformMediaSource.h" |
Syntax
UCLASS (BlueprintType, MinimalAPI)
class UPlatformMediaSource : public UMediaSource
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMediaSource → UPlatformMediaSource
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| PlatformMediaSources | TMap< FString, TObjectPtr< UMediaSource > > | Media sources per platform. | PlatformMediaSource.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BlindPlatformMediaSources | TMap< FGuid, UMediaSource * > | Blind data encountered at load that could not be mapped to a known platform | PlatformMediaSource.h | |
| MediaSource | TObjectPtr< UMediaSource > | Default media source. | PlatformMediaSource.h |
Functions
Public
Overridden from UMediaSource
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString GetDescriptionString() |
Gets a string that sums up the media source's description for UI purposes | PlatformMediaSource.h | |
virtual void GetDetailsPanelInfoElements
(
TArray< FInfoElement >& OutInfoElements |
Gets a list of text containing the media source's configuration and description for UI purposes | PlatformMediaSource.h | |
| Get the media source's URL string (must be implemented in child classes). | PlatformMediaSource.h | ||
virtual bool Validate() |
Validate the media source settings (must be implemented in child classes). | PlatformMediaSource.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PreSave
(
FObjectPreSaveContext ObjectSaveContext |
PlatformMediaSource.h | ||
virtual void Serialize
(
FArchive& Ar |
PlatformMediaSource.h |
Overridden from IMediaOptions
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FName GetDesiredPlayerName() |
PlatformMediaSource.h | ||
virtual bool GetMediaOption
(
const FName& Key, |
PlatformMediaSource.h | ||
virtual double GetMediaOption
(
const FName& Key, |
PlatformMediaSource.h | ||
virtual int64 GetMediaOption
(
const FName& Key, |
PlatformMediaSource.h | ||
virtual FString GetMediaOption
(
const FName& Key, |
PlatformMediaSource.h | ||
virtual FText GetMediaOption
(
const FName& Key, |
PlatformMediaSource.h | ||
virtual bool HasMediaOption
(
const FName& Key |
PlatformMediaSource.h |