Add Video playback value

This commit is contained in:
Phantom
2026-05-07 20:53:35 +02:00
parent 9957166723
commit a421effd1b
+24
View File
@@ -174,6 +174,30 @@ public:
return _state;
}
/// <summary>
/// Gets the value that determines whether the video playback is playing.
/// </summary>
API_PROPERTY() FORCE_INLINE bool IsPlaying() const
{
return _state == States::Playing;
}
/// <summary>
/// Gets the value that determines whether the video playback is paused.
/// </summary>
API_PROPERTY() FORCE_INLINE bool IsPaused() const
{
return _state == States::Paused;
}
/// <summary>
/// Gets the value that determines whether the video playback is stopped.
/// </summary>
API_PROPERTY() FORCE_INLINE bool IsStopped() const
{
return _state == States::Stopped;
}
/// <summary>
/// Gets the current time of playback. The time is in seconds, in range [0, Duration].
/// </summary>