Navigation
API > API/Runtime > API/Runtime/MediaAssets > API/Runtime/MediaAssets/UMediaPlayer
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TRange< FTimespan > GetPlaybackTimeRange
(
EMediaTimeRangeType InRangeToGet |
Returns the current playback range of the media. | MediaPlayer.h | |
FFloatInterval GetPlaybackTimeRange
(
EMediaTimeRangeBPType InRangeToGet |
Blueprint accessible version of GetPlaybackTimeRange. | MediaPlayer.h |
|
GetPlaybackTimeRange(EMediaTimeRangeType)
Description
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.
| Name | GetPlaybackTimeRange |
| Type | function |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h |
| Include Path | #include "MediaPlayer.h" |
| Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp |
TRange < FTimespan > GetPlaybackTimeRange
(
EMediaTimeRangeType InRangeToGet
)
The playback range as queried for.
Parameters
| Name | Remarks |
|---|---|
| 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. |
See Also
-
SupportsPlaybackTimeRange
-
SetPlaybackTimeRange
GetPlaybackTimeRange(EMediaTimeRangeBPType)
Description
Blueprint accessible version of GetPlaybackTimeRange. This returns the range truncated into a blueprint usable float interval and should not be used for live streams as 32 bit floats can not store wallclock times with enough precision.
| Name | GetPlaybackTimeRange |
| Type | function |
| Header File | /Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h |
| Include Path | #include "MediaPlayer.h" |
| Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp |
UFUNCTION (BlueprintCallable, Category="Media|MediaPlayer")
FFloatInterval GetPlaybackTimeRange
(
EMediaTimeRangeBPType InRangeToGet
)