UMediaPlayer::OpenSourceLatent

Open the specified media source with options using a latent action.

Choose your operating system:

Windows

macOS

Linux

References

Module

MediaAssets

Header

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

Include

#include "MediaPlayer.h"

Source

/Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp

Syntax

void OpenSourceLatent
(
    const UObject * WorldContextObject,
    struct FLatentActionInfo LatentInfo,
    UMediaSource * MediaSource,
    const FMediaPlayerOptions & Options,
    bool & bSuccess
)

Remarks

Open the specified media source with options using a latent action.

A result of true indicates that the player successfully completed all requested operations.

Parameters

Parameter

Description

MediaSource

The media source to open.

Options

The media player options to apply.

bSuccess

All requested operations have completed successfully.

See Also