简体   繁体   中英

How video is played in the QML?

I am new to qml. I would like to know how the video is played in the qml. How the video is handled in the back-end(The classes and modules responsible for video playback). How can i add a custom player to play back video in QML? Is there any documents on this? Is there any tutorial for writing the qt-plugin for video playback.

I don't know where to start looking? Please Help. Thanks in advance.

It seems that you are a newcomer to the topic, so I will start with the basics.

The responsible part of the Qt architecture is QtMultimedia for this. That is the module I would start taking a look at. This essential modul is responsible for the audio and video bits in Qt. It deals with the boiler plate as well as the convenient higher-level interface like QML.

It really depends on what video playback you would like to write. You can find the existing backends in here .

As for writing a new backend and/or plugin, this post gives some insight how this has been achieved for one. The official documentation about is also a recommended material for reading.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM