Commit b537a045 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Expose the length of the video in frames through the renderer

parent e6184c29
......@@ -65,6 +65,14 @@ public:
virtual qint64 getCurrentFrame() const = 0;
virtual float getFps() const = 0;
/**
* \brief Return the length is frames
* \warning The returned value may not be accurate
*/
qint64 getLength() const
{
return getLengthMs() / 1000 * getFps();
}
bool isPaused() const
{
return m_paused;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment