UMediaPlayer::SetTrackFormat

Set the format on the specified track.

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

bool SetTrackFormat
(
    EMediaPlayerTrack TrackType,
    int32 TrackIndex,
    int32 FormatIndex
)

Remarks

Set the format on the specified track.

Selecting the format will not switch to the specified track. To switch tracks, use SelectTrack instead. If the track is already selected, the format change will be applied immediately.

Returns

true if the track was selected, false otherwise.

Parameters

Parameter

Description

TrackType

The type of track to update.

TrackIndex

The index of the track to update.

FormatIndex

The index of the format to select (must be valid).

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