UMediaBundle

A bundle of the Media Asset necessary to play a video & audio

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MediaFrameworkUtilities

Header

/Engine/Plugins/Media/MediaFrameworkUtilities/Source/MediaFrameworkUtilities/Public/MediaBundle.h

Include

#include "MediaBundle.h"

Syntax

UCLASS(BlueprintType, HideCategories=(Object))
class UMediaBundle : public UObject

Remarks

A bundle of the Media Asset necessary to play a video & audio

Variables

Name Description

Public variable UProperty Category, EditAnywhere

bool

 

bLoopMediaSource

Controls MediaPlayer looping option

Public variable UProperty Category, EditAnywhere

bool

 

bReopenSourceOnError

Automatically try to open the MediaSource again if an error is detected

Protected variable UProperty Transient nontransactional

FOpenCVLensDist...

 

CurrentLensParameters

Current values of lens parameters to support undo/redo correctly

Protected variable UProperty instanced

UTextureRenderT...

 

LensDisplacementMap

Destination of lens distortion result

Protected variable UProperty Category, EditAnywhere

FOpenCVLensDist...

 

LensParameters

Lens parameters of the source

Protected variable UProperty instanced

UMaterialInterf...

 

Material

MediaBundle default Material

Public variable UProperty Category, EditAnywhere, AdvancedDisplay noclear

TSubclassOf< AM...

 

MediaBundleActorClass

Class to spawn for that asset.

Protected variable UProperty instanced

UMediaPlayer &#...

 

MediaPlayer

MediaBundle default MediaPlayer

Public variable UProperty Category, EditAnywhere instanced, noclear

UMediaSource &#...

 

MediaSource

MediaBundle internal MediaSource

Protected variable UProperty instanced

UMediaTexture &...

 

MediaTexture

MediaBundle default MediaTexture

Protected variable UProperty Category visibleanywhere

FOpenCVCameraVi...

 

UndistortedCameraViewInfo

CameraView information for the undistorted space

Constructors

Name Description

Public function

UMediaBundle

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

CloseMediaSource()

Close the media source.

Public function

TArray< UPac...

 

CreateInternalsEditor()

Create other assets required for a MediaBundle to work. Used for duplication and factory

Public function UFunction BlueprintCallable, Category

UTextureRend...

 

GetLensDisplacementTexture()

Get the lens displacement Render Target.

Public function UFunction BlueprintCallable, Category

UMaterialInt...

 

GetMaterial()

Get the material interface.

Public function UFunction BlueprintCallable, Category

UMediaPlayer...

 

GetMediaPlayer()

Get the media player.

Public function UFunction BlueprintCallable, Category

UMediaSource...

 

GetMediaSource()

Get the media source.

Public function UFunction BlueprintCallable, Category

UMediaTextur...

 

GetMediaTexture()

Get the media texture.

Public function UFunction BlueprintCallable, Category

FOpenCVCamer...

 

GetUndistortedCameraViewInfo()

Get the undistorted space camera view information.

Public function Const

bool

 

IsPlaying()

The media is playing.

Public function

FOnMediaStat...

 

OnMediaStateChanged()

Media state changed event To use when the you want to be inform if the media is playing or not.

Public function

bool

 

OpenMediaSource()

Play the media source.

Overridden from UObject

Name Description

Public function Virtual

void

 

PostDuplicate

(
    bool bDuplicateForPIE
)

Called after duplication & serialization and before PostLoad.

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

MediaFramework.MediaSourceSelected Triggered when a media source is selected.

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Typedefs

Name

Description

FOnMediaStateChanged

Delegate type for media state changed event