engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IMediaTracks类 参考abstract

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.

参见
IMediaCache, IMediaControls, IMediaPlayer, IMediaSamples, IMediaView

成员函数说明

◆ GetAudioTrackFormat()

virtual bool IMediaTracks::GetAudioTrackFormat ( int32  TrackIndex,
int32  FormatIndex,
FMediaAudioTrackFormat &  OutFormat 
) const
pure virtual

Get details about the specified audio track format.

参数
TrackIndexThe index of the audio track (must be valid).
FormatIndexThe index of the track's format (must be valid).
OutFormatWill contain the format details.
返回
true on success, false otherwise.
参见
GetVideoTrackFormat

◆ GetNumTrackFormats()

virtual int32 IMediaTracks::GetNumTrackFormats ( EMediaTrackType  TrackType,
int32  TrackIndex 
) const
pure virtual

Get the number of formats of the specified track.

参数
TrackTypeThe type of track.
TrackIndexThe index of the track (must be valid).
返回
Number of formats.
参见
GetNumTracks, GetTrackFormatType, GetTrackDisplayName

◆ GetNumTracks()

virtual int32 IMediaTracks::GetNumTracks ( EMediaTrackType  TrackType) const
pure virtual

Get the number of media tracks of the given type.

参数
TrackTypeThe type of media tracks.
返回
Number of tracks.
参见
GetNumTrackFormats, GetSelectedTrack, SelectTrack

◆ GetSelectedTrack()

virtual int32 IMediaTracks::GetSelectedTrack ( EMediaTrackType  TrackType) const
pure virtual

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

参数
TrackTypeThe type of track to get.
返回
The index of the selected track, or INDEX_NONE if no track is active.
参见
GetNumTracks, SelectTrack

◆ GetTrackDisplayName()

virtual FText IMediaTracks::GetTrackDisplayName ( EMediaTrackType  TrackType,
int32  TrackIndex 
) const
pure virtual

Get the human readable name of the specified track.

参数
TrackTypeThe type of track.
TrackIndexThe index of the track (must be valid).
返回
Display name.
参见
GetTrackLanguage, GetTrackName

◆ GetTrackFormat()

virtual int32 IMediaTracks::GetTrackFormat ( EMediaTrackType  TrackType,
int32  TrackIndex 
) const
pure virtual

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

参数
TrackTypeThe type of track.
TrackIndexThe index of the track (must be valid).
返回
The index of the selected format.
参见
GetNumTrackFormats, GetSelectedTrack, SetTrackFormat

◆ GetTrackLanguage()

virtual FString IMediaTracks::GetTrackLanguage ( EMediaTrackType  TrackType,
int32  TrackIndex 
) const
pure virtual

Get the language tag of the specified track.

参数
TrackTypeThe type of track.
TrackIndexThe index of the track (must be valid).
返回
Language tag, i.e. "en-US" for English, or "und" for undefined.
参见
GetTrackDisplayName, GetTrackName

◆ GetTrackName()

virtual FString IMediaTracks::GetTrackName ( EMediaTrackType  TrackType,
int32  TrackIndex 
) const
pure virtual

Get the internal name of the specified track.

参数
TrackTypeThe type of track.
TrackIndexThe index of the track (must be valid).
返回
Track name.
参见
GetTrackDisplayName, GetTrackLanguage

◆ GetVideoTrackFormat()

virtual bool IMediaTracks::GetVideoTrackFormat ( int32  TrackIndex,
int32  FormatIndex,
FMediaVideoTrackFormat &  OutFormat 
) const
pure virtual

Get details about the specified video track format.

参数
TrackIndexThe index of the video track (must be valid).
FormatIndexThe index of the track's format (must be valid).
OutFormatWill contain the format details.
返回
true on success, false otherwise.
参见
GetAudioTrackFormat

◆ SelectTrack()

virtual bool IMediaTracks::SelectTrack ( EMediaTrackType  TrackType,
int32  TrackIndex 
)
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.

参数
TrackTypeThe type of track to select.
TrackIndexThe index of the track to select, or INDEX_NONE to deselect.
返回
true if the track was selected, false otherwise.
参见
GetNumTracks, GetSelectedTrack, SetTrackFormat

◆ SetTrackFormat()

virtual bool IMediaTracks::SetTrackFormat ( EMediaTrackType  TrackType,
int32  TrackIndex,
int32  FormatIndex 
)
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.

参数
TrackTypeThe type of track to update.
TrackIndexThe index of the track to update (must be valid).
FormatIndexThe index of the format to select (must be valid).
返回
true if the format was selected, false otherwise.
参见
GetNumTrackFormats, GetNumTracks, GetTrackFormat, SelectTrack

◆ SetVideoTrackFrameRate()

virtual bool IMediaTracks::SetVideoTrackFrameRate ( int32  TrackIndex,
int32  FormatIndex,
float  FrameRate 
)
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.

参数
TrackIndexThe index of the track (must be valid).
FormatIndexIndex of the track format (must be valid).
FrameRateThe frame rate to set (must be in range of format's supported frame rates).
返回
true on success, false otherwise.
参见
GetTrackFormat, SetTrackFormat

该类的文档由以下文件生成: