Closed pingxiangren closed 1 year ago
widget_video.pro
is seemed a simple video player what i need , but there is a error like :
Project ERROR: Unknown module(s) in QT: QtAVPlayer
QtAVPlayer
is not Qt 5.14.2 official library , my widget_video.pro
is here:
TEMPLATE = app
TARGET = widget_video
INCLUDEPATH += .
INCLUDEPATH += . ../../src/QtAVPlayer include(../../src/QtAVPlayer/QtAVPlayer.pri)
QT += gui multimedia multimediawidgets QtAVPlayer CONFIG += c++11
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/$$TARGET INSTALLS += target
Hi, thanks for trying this. https://github.com/valbok/QtAVPlayer/commit/259bf266403f7f87ee77422345fa9b5720bcdb68 this is a fix for widget examples
https://github.com/valbok/QtAVPlayer/tree/master/examples/qml_video this is example for using QML
There is a section in README:
https://github.com/valbok/QtAVPlayer#how-to-build
you just need qmake DEFINES+="QT_AVPLAYER_MULTIMEDIA"
Please, feel free to ask any questions
https://github.com/valbok/QtAVPlayer/pull/403 now only qmake
is needed
QtAVPlayer-master\examples\widget_video\widget_video.pro
QtAVPlayer-master\tests\auto\integration\qavplayer\qavplayer.pro
examples
, thank you!