UPlatformMediaSource

A media source that selects other media sources based on target platform.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

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

Name Description

Public variable

TMap< FString, ...

 

PlatformMediaSources

Media sources per platform.

Overridden from UMediaSource

Name Description

Public function Virtual Const

FString

 

GetUrl()

Get the media source's URL string (must be implemented in child classes).

Public function Virtual Const

bool

 

Validate()

Validate the media source settings (must be implemented in child classes).

Overridden from UObject

Name Description

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.

Overridden from IMediaOptions

Name Description

Public function Virtual Const

FName

 

GetDesiredPlayerName()

Get the name of the desired native player.

Public function Virtual Const

bool

 

GetMediaOption

(
    const FName& Key,
    bool DefaultValue
)

Get a Boolean media option.

Public function Virtual Const

double

 

GetMediaOption

(
    const FName& Key,
    double DefaultValue
)

Get a double precision floating point media option.

Public function Virtual Const

int64

 

GetMediaOption

(
    const FName& Key,
    int64 DefaultValue
)

Get a signed integer media option.

Public function Virtual Const

FString

 

GetMediaOption

(
    const FName& Key,
    const FString& DefaultValue
)

Get a string media option.

Public function Virtual Const

FText

 

GetMediaOption

(
    const FName& Key,
    const FText& DefaultValue
)

Get a localized text media option.

Public function Virtual Const

bool

 

HasMediaOption

(
    const FName& Key
)

Check whether the specified option is set.

Deprecated Functions

Name Description

Public function Virtual

void

 

PreSave

(
    const ITargetPlatform* TargetP...
)

Use version that takes FObjectPreSaveContext instead.

Public function Virtual

void

 

PreSave

(
    FObjectPreSaveContext ObjectSaveCon...
)

Use version that takes FObjectPreSaveContext instead.