IMediaTracks

Interface for access to a media player's tracks.

Windows
MacOS
Linux

Inheritance Hierarchy

IMediaTracks

FMediaIOCorePlayerBase

References

Module

Media

Header

/Engine/Source/Runtime/Media/Public/IMediaTracks.h

Include

#include "IMediaTracks.h"

Syntax

class IMediaTracks

Remarks

Interface for access to a media player's tracks.

Destructors

Name Description

Public function Virtual

~IMediaTracks()

Virtual destructor.

Functions

Name Description

Public function Const

bool

 

GetAudioTrackFormat

(
    int32 TrackIndex,
    int32 FormatIndex,
    FMediaAudioTrackFormat& OutFormat
)

Get details about the specified audio track format.

Public function Const

int32

 

GetNumTrackFormats

(
    EMediaTrackType TrackType,
    int32 TrackIndex
)

Get the number of formats of the specified track.

Public function Const

int32

 

GetNumTracks

(
    EMediaTrackType TrackType
)

Get the number of media tracks of the given type.

Public function Const

int32

 

GetSelectedTrack

(
    EMediaTrackType TrackType
)

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

Public function Const

FText

 

GetTrackDisplayName

(
    EMediaTrackType TrackType,
    int32 TrackIndex
)

Get the human readable name of the specified track.

Public function Const

int32

 

GetTrackFormat

(
    EMediaTrackType TrackType,
    int32 TrackIndex
)

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

Public function Const

FString

 

GetTrackLanguage

(
    EMediaTrackType TrackType,
    int32 TrackIndex
)

Get the language tag of the specified track.

Public function Const

FString

 

GetTrackName

(
    EMediaTrackType TrackType,
    int32 TrackIndex
)

Get the internal name of the specified track.

Public function Const

bool

 

GetVideoTrackFormat

(
    int32 TrackIndex,
    int32 FormatIndex,
    FMediaVideoTrackFormat& OutFormat
)

Get details about the specified video track format.

Public function

bool

 

SelectTrack

(
    EMediaTrackType TrackType,
    int32 TrackIndex
)

Select the active track of the given type.

Public function

bool

 

SetTrackFormat

(
    EMediaTrackType TrackType,
    int32 TrackIndex,
    int32 FormatIndex
)

Select the active format on the specified track.

Public function Virtual

bool

 

SetVideoTrackFrameRate

(
    int32 TrackIndex,
    int32 FormatIndex,
    float FrameRate
)

Set the frame rate of the specified video track.

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