Interface for access to a media player's tracks. 更多...
#include <IMediaTracks.h>
Public 成员函数 | |
| virtual bool | GetAudioTrackFormat (int32 TrackIndex, int32 FormatIndex, FMediaAudioTrackFormat &OutFormat) const =0 |
| Get details about the specified audio track format. 更多... | |
| virtual int32 | GetNumTrackFormats (EMediaTrackType TrackType, int32 TrackIndex) const =0 |
| Get the number of formats of the specified track. 更多... | |
| virtual int32 | GetNumTracks (EMediaTrackType TrackType) const =0 |
| Get the number of media tracks of the given type. 更多... | |
| virtual int32 | GetSelectedTrack (EMediaTrackType TrackType) const =0 |
| Get the index of the currently selected track of the given type. 更多... | |
| virtual FText | GetTrackDisplayName (EMediaTrackType TrackType, int32 TrackIndex) const =0 |
| Get the human readable name of the specified track. 更多... | |
| virtual int32 | GetTrackFormat (EMediaTrackType TrackType, int32 TrackIndex) const =0 |
| Get the index of the currently selected format of the given track type. 更多... | |
| virtual FString | GetTrackLanguage (EMediaTrackType TrackType, int32 TrackIndex) const =0 |
| Get the language tag of the specified track. 更多... | |
| virtual FString | GetTrackName (EMediaTrackType TrackType, int32 TrackIndex) const =0 |
| Get the internal name of the specified track. 更多... | |
| virtual bool | GetVideoTrackFormat (int32 TrackIndex, int32 FormatIndex, FMediaVideoTrackFormat &OutFormat) const =0 |
| Get details about the specified video track format. 更多... | |
| virtual bool | SelectTrack (EMediaTrackType TrackType, int32 TrackIndex)=0 |
| Select the active track of the given type. 更多... | |
| virtual bool | SetTrackFormat (EMediaTrackType TrackType, int32 TrackIndex, int32 FormatIndex)=0 |
| Select the active format on the specified track. 更多... | |
| virtual bool | SetVideoTrackFrameRate (int32 TrackIndex, int32 FormatIndex, float FrameRate) |
| Set the frame rate of the specified video track. 更多... | |
| virtual | ~IMediaTracks () |
| Virtual destructor. | |
Interface for access to a media player's tracks.
|
pure virtual |
Get details about the specified audio track format.
| 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. |
|
pure virtual |
Get the number of formats of the specified track.
| TrackType | The type of track. |
| TrackIndex | The index of the track (must be valid). |
|
pure virtual |
Get the number of media tracks of the given type.
| TrackType | The type of media tracks. |
|
pure virtual |
Get the index of the currently selected track of the given type.
| TrackType | The type of track to get. |
|
pure virtual |
Get the human readable name of the specified track.
| TrackType | The type of track. |
| TrackIndex | The index of the track (must be valid). |
|
pure virtual |
Get the index of the currently selected format of the given track type.
| TrackType | The type of track. |
| TrackIndex | The index of the track (must be valid). |
|
pure virtual |
Get the language tag of the specified track.
| TrackType | The type of track. |
| TrackIndex | The index of the track (must be valid). |
|
pure virtual |
Get the internal name of the specified track.
| TrackType | The type of track. |
| TrackIndex | The index of the track (must be valid). |
|
pure virtual |
Get details about the specified video track format.
| 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. |
|
pure virtual |
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.
| TrackType | The type of track to select. |
| TrackIndex | The index of the track to select, or INDEX_NONE to deselect. |
|
pure virtual |
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.
| 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). |
|
inlinevirtual |
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.
| 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). |