UMediaPlaylist::GetRandom

Get a random media source in the play list.

Windows
MacOS
Linux

References

Module

MediaAssets

Header

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

Include

#include "MediaPlaylist.h"

Source

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

Syntax

UMediaSource * GetRandom
(
    int32 & OutIndex
)

Remarks

Get a random media source in the play list.

Returns

The random media source, or nullptr if the list is empty.

Parameters

Parameter

Description

OutIndex

Will contain the index of the returned media source.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss