UFileMediaSource

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MediaAssets

Header

/Engine/Source/Runtime/MediaAssets/Public/FileMediaSource.h

Include

#include "FileMediaSource.h"

Syntax

class UFileMediaSource : public UBaseMediaSource

Variables

Name Description

Public variable

FString

 

FilePath

The path to the media file to be played.

Public variable

bool

 

PrecacheFile

Load entire media file into memory and play from there (if possible).

Functions

Name Description

Public function Const

const FStrin...

 

GetFilePath()

Get the path to the media file to be played.

Public function Const

FString

 

GetFullPath()

Get the full path to the file.

Public function

void

 

SetFilePath

(
    const FString& Path
)

Set the path to the media file that this source represents.

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

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

Overridden from IMediaOptions

Name Description

Public function Virtual Const

bool

 

GetMediaOption

(
    const FName& Key,
    bool DefaultValue
)

Get a Boolean media option.

Public function Virtual Const

bool

 

HasMediaOption

(
    const FName& Key
)

Check whether the specified option is set.

Constants

Name

Description

PrecacheFileOption

Name of the PrecacheFile media option.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback