Navigation
API > API/Runtime > API/Runtime/MediaUtils > API/Runtime/MediaUtils/FMediaPlayerFacade
Description
Gets the duration of a specific track, if available. Availability depends on the media format and player implementation. If unset only the overall media duration can be used.
| Name | GetTrackDuration |
| Type | function |
| Header File | /Engine/Source/Runtime/MediaUtils/Public/MediaPlayerFacade.h |
| Include Path | #include "MediaPlayerFacade.h" |
| Source | /Engine/Source/Runtime/MediaUtils/Private/MediaPlayerFacade.cpp |
TOptional < FTimespan > GetTrackDuration
(
EMediaTrackType TrackType,
int32 TrackIndex
) const
An optional time span representing the duration.