-
Notifications
You must be signed in to change notification settings - Fork 1.5k
FAQ
-
How to display a single image
vo->receive(VideoFrame(qt_image));
. Main event loop is required to show the image. So if you want to show when startup, you canQTimer::singleShot(0, [=](){vo->receive(VideoFrame(qt_image));});
-
How to support multiple subtitles
In QML, you can use multiple
Subtitle
objects and correspondingSubtitleItem
, and set propertySubtitle.fuzzyMatch
to false,Subtitle.file
to a subtitle path. C++ app is almost the same, using multipleSubtitleFilter
objects and set properties. Actually each QMLSubtitle
object use an C++VideoFilter
internally. -
How to display the first frame and pause
see #637
m_player->setStartPosition(1);
connect(m_player, SIGNAL(seekFinished(qint64)), this, SLOT(pauseOnSeek())); ... void PlayerWindow::pauseOnSeek() { m_player->pause(true); disconnect(m_player, SIGNAL(seekFinished(qint64)), this, SLOT(pauseOnSeek())); }