Navigation
API > API/Runtime > API/Runtime/MediaAssets > API/Runtime/MediaAssets/UMediaPlayer
Description
Get the index of the active format of the specified track type.
| Name | GetTrackFormat |
| 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 GetTrackFormat
(
EMediaPlayerTrack TrackType,
int32 TrackIndex
) const
The index of the selected format.
Parameters
| Name | Remarks |
|---|---|
| TrackType | The type of track. |
| TrackIndex | The index of the track, or INDEX_NONE for the selected one. |
See Also
-
SetTrackFormat