Navigation
API > API/Runtime > API/Runtime/MediaAssets > API/Runtime/MediaAssets/UMediaPlayer > API/Runtime/MediaAssets/UMediaPlayer/GetPlaybackTimeRange
References
| Module | MediaAssets |
| Header | /Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h |
| Include | #include "MediaPlayer.h" |
| Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp |
TRange < FTimespan > GetPlaybackTimeRange
(
EMediaTimeRangeType InRangeToGet
)
Remarks
Returns the current playback range of the media. If playing back a range is not supported, the range returned will be equal to [ 0, GetDuration() ). The media may have an implicit default range provided by the container format or other means without having called SetPlaybackTimeRange(). The media may have internal time values not starting at 0, which are conveyed by the range. Since the range may be only a portion of the media, the duration of the returned range may be less than the media overall duration returned by GetDuration(). For live video streams the range may change dynamically as new content becomes available and old content falls off the timeline. The playback range as queried for.
Parameters
| Name | Description |
|---|---|
| InRangeToGet | The type of range to get. Absolute returns the media's smallest and largest timeline values. Unless continuously changing in a Live stream this is usually the same as [ 0, GetDuration() ]. The base time does not have to be zero though. Current returns the currently set range, which is a subset of the absolute range. |