unreal.FileMediaSource

class unreal.FileMediaSource(outer=None, name='None')

Bases: unreal.BaseMediaSource

File Media Source

C++ Source:

  • Module: MediaAssets

  • File: FileMediaSource.h

Editor Properties: (see get_editor_property/set_editor_property)

  • file_path (str): [Read-Write] File Path: The path to the media file to be played. see: SetFilePath

  • platform_player_names (Map(str, Name)): [Read-Write] Platform Player Names: Override native media player plug-ins per platform (Empty = find one automatically).

  • precache_file (bool): [Read-Write] Precache File: Load entire media file into memory and play from there (if possible).

property file_path

[Read-Write] File Path: The path to the media file to be played. see: SetFilePath

Type

(str)

property precache_file

[Read-Write] Precache File: Load entire media file into memory and play from there (if possible).

Type

(bool)

set_file_path(path) None

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

Automatically converts full paths to media sources that reside in the Engine’s or project’s /Content/Movies directory into relative paths. see: FilePath, GetFilePath

Parameters

path (str) – The path to set.