Unsolved What's the best aproach to play propietary video format on iOS and Android QML app?
-
My app needs to play propietary video format. Now I'm playing decoding the propietary format to a QImage for each frame and using a QQuickPaintedItem derived class to show the video. This class is registered on QML to use it from there.
class VideoPlayer : public QQuickPaintedItem { public: void paint(QPainter *painter) override; private: QImage _frame; } void VideoPlayer::paint(QPainter *painter) { painter->drawImage(0, 0, _frame); }
Is QQuickPaintedItem a slow technique? exist another better aproach?
-
Hi,
What kind of proprietary format is that ?
Can something like ffmpeg read it ? -
No, ffmpeg can't read. It's a propietary format.
-
Depending on how you decode your video, you can consider implementing a QMediaService plugin for QtMultimedia that will provide the QMediaPlayer bits that are needed to render your video.
-
Is more quick than QQuickPaintedItem? Where can found any documentation and sample?
-
@lqsa Documentation and samples for QMediaPlayer? Here: http://doc.qt.io/qt-5/qmediaplayer.html, http://doc.qt.io/qt-5/qtmultimedia-multimediawidgets-player-example.html
-
This post is deleted! -
This post is deleted! -
@jsulm
Sorry, but in these links I can't find any documentation about QMediaService plugin and sample is with QWidgets. -
You can take a look at the QtMultimedia sources.