Navigation
API > API/Runtime > API/Runtime/Media > API/Runtime/Media/IMediaTracks
Description
Select the active 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.
| Name | SetTrackFormat |
| Type | function |
| Header File | /Engine/Source/Runtime/Media/Public/IMediaTracks.h |
| Include Path | #include "IMediaTracks.h" |
bool SetTrackFormat
(
EMediaTrackType TrackType,
int32 TrackIndex,
int32 FormatIndex
)
true if the format was selected, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| TrackType | The type of track to update. |
| TrackIndex | The index of the track to update (must be valid). |
| FormatIndex | The index of the format to select (must be valid). |