Navigation
API > API/Runtime > API/Runtime/MediaAssets > API/Runtime/MediaAssets/UMediaPlayer > API/Runtime/MediaAssets/UMediaPlayer/SetPlaybackTimeRange
References
| Module | MediaAssets |
| Header | /Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h |
| Include | #include "MediaPlayer.h" |
| Source | /Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp |
bool SetPlaybackTimeRange
(
const TRange < FTimespan > & InTimeRange
)
Remarks
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. true if successful, false otherwise.
Parameters
| Name | Description |
|---|---|
| InTimeRange | The new playback range to set. |