UMediaPlayer::SetBlockOnTimeRange

Set the time range on which to block.

Choose your operating system:

Windows

macOS

Linux

References

Module

MediaAssets

Header

/Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h

Include

#include "MediaPlayer.h"

Source

/Engine/Source/Runtime/MediaAssets/Private/Assets/MediaPlayer.cpp

Syntax

void SetBlockOnTimeRange
(
    const TRange< FTimespan > & TimeRange
)

Remarks

Set the time range on which to block.

If set, this player will block in TickInput or TickFetch until the video sample for the specified time are actually available.

Parameters

Parameter

Description

TimeRange

The time range to block on, or empty range to disable.