Navigation
API > API/Runtime > API/Runtime/MediaAssets > API/Runtime/MediaAssets/UMediaPlayer
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool SetPlaybackTimeRange
(
const TRange< FTimespan >& InTimeRange |
Sets a new media playback range. | MediaPlayer.h | |
bool SetPlaybackTimeRange
(
FFloatInterval InTimeRange |
Blueprint accessible version of SetPlaybackTimeRange(). | MediaPlayer.h |
|
SetPlaybackTimeRange(const TRange< FTimespan > &)
Description
Sets a new media playback range. Has an effect only if SupportsPlaybackTimeRange() returns true and the media supports it. A live stream cannot be constrained to a range. The range will be clamped if necessary to be within the media's absolute time range. Changing the time range may trigger an implicit Seek() depending on where the current playback position is located with regard to the new range. Unless prevented by the media a playback range can be cleared by passing an empty range.
| Name | SetPlaybackTimeRange |
| 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 |
bool SetPlaybackTimeRange
(
const TRange < FTimespan > & InTimeRange
)
true if successful, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| InTimeRange | The new playback range to set. |
See Also
-
SupportsPlaybackTimeRange
-
GetPlaybackTimeRange
SetPlaybackTimeRange(FFloatInterval)
Description
Blueprint accessible version of SetPlaybackTimeRange(). The range is set through a blueprint usable float interval which may not have enough precision to represent the range accurately.
| Name | SetPlaybackTimeRange |
| 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")
bool SetPlaybackTimeRange
(
FFloatInterval InTimeRange
)