#include <IMediaTracks.h>
|
| virtual bool | GetAudioTrackFormat (int32 TrackIndex, int32 FormatIndex, FMediaAudioTrackFormat &OutFormat) const =0 |
| |
| virtual int32 | GetNumTracks (EMediaTrackType TrackType) const =0 |
| |
| virtual int32 | GetNumTrackFormats (EMediaTrackType TrackType, int32 TrackIndex) const =0 |
| |
| virtual int32 | GetSelectedTrack (EMediaTrackType TrackType) const =0 |
| |
| virtual FText | GetTrackDisplayName (EMediaTrackType TrackType, int32 TrackIndex) const =0 |
| |
| virtual int32 | GetTrackFormat (EMediaTrackType TrackType, int32 TrackIndex) const =0 |
| |
| virtual FString | GetTrackLanguage (EMediaTrackType TrackType, int32 TrackIndex) const =0 |
| |
| virtual FString | GetTrackName (EMediaTrackType TrackType, int32 TrackIndex) const =0 |
| |
| virtual bool | GetVideoTrackFormat (int32 TrackIndex, int32 FormatIndex, FMediaVideoTrackFormat &OutFormat) const =0 |
| |
| virtual bool | SelectTrack (EMediaTrackType TrackType, int32 TrackIndex)=0 |
| |
| virtual bool | SetTrackFormat (EMediaTrackType TrackType, int32 TrackIndex, int32 FormatIndex)=0 |
| |
| virtual bool | SetVideoTrackFrameRate (int32 TrackIndex, int32 FormatIndex, float FrameRate) |
| |
| virtual | ~IMediaTracks () |
| |
Interface for access to a media player's tracks.
- See also
- IMediaCache, IMediaControls, IMediaPlayer, IMediaSamples, IMediaView
◆ ~IMediaTracks()
| virtual IMediaTracks::~IMediaTracks |
( |
| ) |
|
|
inlinevirtual |
◆ GetAudioTrackFormat()
Get details about the specified audio track format.
- Parameters
-
| TrackIndex | The index of the audio track (must be valid). |
| FormatIndex | The index of the track's format (must be valid). |
| OutFormat | Will contain the format details. |
- Returns
- true on success, false otherwise.
- See also
- GetVideoTrackFormat
◆ GetNumTrackFormats()
◆ GetNumTracks()
◆ GetSelectedTrack()
Get the index of the currently selected track of the given type.
- Parameters
-
| TrackType | The type of track to get. |
- Returns
- The index of the selected track, or INDEX_NONE if no track is active.
- See also
- GetNumTracks, SelectTrack
◆ GetTrackDisplayName()
Get the human readable name of the specified track.
- Parameters
-
| TrackType | The type of track. |
| TrackIndex | The index of the track (must be valid). |
- Returns
- Display name.
- See also
- GetTrackLanguage, GetTrackName
◆ GetTrackFormat()
Get the index of the currently selected format of the given track type.
- Parameters
-
| TrackType | The type of track. |
| TrackIndex | The index of the track (must be valid). |
- Returns
- The index of the selected format.
- See also
- GetNumTrackFormats, GetSelectedTrack, SetTrackFormat
◆ GetTrackLanguage()
Get the language tag of the specified track.
- Parameters
-
| TrackType | The type of track. |
| TrackIndex | The index of the track (must be valid). |
- Returns
- Language tag, i.e. "en-US" for English, or "und" for undefined.
- See also
- GetTrackDisplayName, GetTrackName
◆ GetTrackName()
Get the internal name of the specified track.
- Parameters
-
| TrackType | The type of track. |
| TrackIndex | The index of the track (must be valid). |
- Returns
- Track name.
- See also
- GetTrackDisplayName, GetTrackLanguage
◆ GetVideoTrackFormat()
Get details about the specified video track format.
- Parameters
-
| TrackIndex | The index of the video track (must be valid). |
| FormatIndex | The index of the track's format (must be valid). |
| OutFormat | Will contain the format details. |
- Returns
- true on success, false otherwise.
- See also
- GetAudioTrackFormat
◆ SelectTrack()
Select the active track of the given type.
The selected track will use its currently active format. Active formats will be remembered on a per track basis. The first available format is active by default. To switch the track format, use SetTrackFormat instead.
- Parameters
-
| TrackType | The type of track to select. |
| TrackIndex | The index of the track to select, or INDEX_NONE to deselect. |
- Returns
- true if the track was selected, false otherwise.
- See also
- GetNumTracks, GetSelectedTrack, SetTrackFormat
◆ SetTrackFormat()
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.
- Parameters
-
| 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). |
- Returns
- true if the format was selected, false otherwise.
- See also
- GetNumTrackFormats, GetNumTracks, GetTrackFormat, SelectTrack
◆ SetVideoTrackFrameRate()
Set the frame rate of the specified video track.
Note that most players may not support overriding the video frame rate. This feature is often only available on video capture media sources.
- Parameters
-
| TrackIndex | The index of the track (must be valid). |
| FormatIndex | Index of the track format (must be valid). |
| FrameRate | The frame rate to set (must be in range of format's supported frame rates). |
- Returns
- true on success, false otherwise.
- See also
- GetTrackFormat, SetTrackFormat
The documentation for this class was generated from the following file: