FMediaPlayerFacade::GetSelectedTrack

Get the index of the currently selected track of the given type.

Choose your operating system:

Windows

macOS

Linux

References

Module

MediaUtils

Header

/Engine/Source/Runtime/MediaUtils/Public/MediaPlayerFacade.h

Include

#include "MediaPlayerFacade.h"

Source

/Engine/Source/Runtime/MediaUtils/Private/MediaPlayerFacade.cpp

Syntax

int32 GetSelectedTrack
(
    EMediaTrackType TrackType
) const

Remarks

Get the index of the currently selected track of the given type.

Returns

The index of the selected track, or INDEX_NONE if no track is active.

Parameters

Parameter

Description

TrackType

The type of track to get.

See Also