UMediaPlayer::GetTrackFormat

Get the index of the active format of the specified track type.

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

int32 GetTrackFormat
(
    EMediaPlayerTrack TrackType,
    int32 TrackIndex
) const

Remarks

Get the index of the active format of the specified track type.

Returns

The index of the selected format.

Parameters

Parameter

Description

TrackType

The type of track.

TrackIndex

The index of the track, or INDEX_NONE for the selected one.

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