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]. ///