From a421effd1b8218ed41c6ce7931e0b39e20574a70 Mon Sep 17 00:00:00 2001 From: Phantom Date: Thu, 7 May 2026 20:53:35 +0200 Subject: [PATCH] Add Video playback value --- Source/Engine/Video/VideoPlayer.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Source/Engine/Video/VideoPlayer.h b/Source/Engine/Video/VideoPlayer.h index 4447337ea..ecae37e61 100644 --- a/Source/Engine/Video/VideoPlayer.h +++ b/Source/Engine/Video/VideoPlayer.h @@ -174,6 +174,30 @@ public: return _state; } + /// + /// Gets the value that determines whether the video playback is playing. + /// + API_PROPERTY() FORCE_INLINE bool IsPlaying() const + { + return _state == States::Playing; + } + + /// + /// Gets the value that determines whether the video playback is paused. + /// + API_PROPERTY() FORCE_INLINE bool IsPaused() const + { + return _state == States::Paused; + } + + /// + /// Gets the value that determines whether the video playback is stopped. + /// + API_PROPERTY() FORCE_INLINE bool IsStopped() const + { + return _state == States::Stopped; + } + /// /// Gets the current time of playback. The time is in seconds, in range [0, Duration]. ///