Navigation
API > API/Runtime > API/Runtime/MediaAssets > API/Runtime/MediaAssets/UMediaPlayer
Description
Get the index of the currently selected track of the given type.
| Name | GetSelectedTrack |
| Type | function |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h |
| Include Path | #include "MediaPlayer.h" |
| Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp |
UFUNCTION (BlueprintCallable, Category="Media|MediaPlayer")
int32 GetSelectedTrack
(
EMediaPlayerTrack TrackType
) const
The index of the selected track, or INDEX_NONE if no track is active.
Parameters
| Name | Remarks |
|---|---|
| TrackType | The type of track to get. |
See Also
-
GetTrackFormat
-
SelectTrack