a somewhat working system of video start and end times

This commit is contained in:
Chris Cochrun 2024-04-07 21:34:31 -05:00
parent 76c669c5a5
commit 461d25a73d
4 changed files with 35 additions and 2 deletions

View file

@ -531,8 +531,9 @@ void MpvObject::stepForward()
void MpvObject::seek(double pos)
{
// qDebug() << "seek" << pos;
qDebug() << "seek" << pos << m_duration;
pos = qMax(0.0, qMin(pos, m_duration));
qDebug() << "seek" << pos;
command(QVariantList() << "seek" << pos << "absolute");
}