Merge branch 'AddVideoPlayerStatus' of https://github.com/ThePhantomMask/FlaxEngine into ThePhantomMask-AddVideoPlayerStatus
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user