Navigation
API > API/Runtime > API/Runtime/MediaAssets
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMediaSource
- UPlatformMediaSource
References
| Module | MediaAssets |
| Header | /Engine/Source/Runtime/MediaAssets/Public/PlatformMediaSource.h |
| Include | #include "PlatformMediaSource.h" |
Syntax
class UPlatformMediaSource : public UMediaSource
Remarks
A media source that selects other media sources based on target platform.
Use this asset to override media sources on a per-platform basis.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TMap< FString, TObjectPtr< UMediaSource > > | PlatformMediaSources | Media sources per platform. |
Overridden from UMediaSource
| Type | Name | Description | |
|---|---|---|---|
| FString | GetUrl () |
Get the media source's URL string (must be implemented in child classes). | |
| bool | Validate () |
Validate the media source settings (must be implemented in child classes). |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Handles reading, writing, and reference collecting using FArchive. |
Overridden from IMediaOptions
| Type | Name | Description | |
|---|---|---|---|
| FName | Get the name of the desired native player. | ||
| bool | GetMediaOption
(
const FName& Key, |
Get a Boolean media option. | |
| double | GetMediaOption
(
const FName& Key, |
Get a double precision floating point media option. | |
| int64 | GetMediaOption
(
const FName& Key, |
Get a signed integer media option. | |
| FString | GetMediaOption
(
const FName& Key, |
Get a string media option. | |
| FText | GetMediaOption
(
const FName& Key, |
Get a localized text media option. | |
| bool | HasMediaOption
(
const FName& Key |
Check whether the specified option is set. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGSvoid | PreSave
(
const ITargetPlatform* TargetPlatform |
Use version that takes FObjectPreSaveContext instead. | |
| void | PreSave
(
FObjectPreSaveContext ObjectSaveContext |
Use version that takes FObjectPreSaveContext instead. |