a somewhat working system of video start and end times
This commit is contained in:
parent
76c669c5a5
commit
461d25a73d
4 changed files with 35 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue