Skip to content
WangBin edited this page Jun 20, 2016 · 8 revisions
  • 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 can QTimer::singleShot(0, [=](){vo->receive(VideoFrame(qt_image));});

  • How to support multiple subtitles

    In QML, you can use multiple Subtitle objects and corresponding SubtitleItem, and set property Subtitle.fuzzyMatch to false, Subtitle.file to a subtitle path. C++ app is almost the same, using multiple SubtitleFilter objects and set properties. Actually each QML Subtitle object use an C++ VideoFilter internally.

Clone this wiki locally