A complete example is required !
pingxiangren opened this issue · 5 comments
pingxiangren commented
- I tried to open the example in that path:
QtAVPlayer-master\examples\widget_video\widget_video.pro
- but it did not add QtAVPlayer to the project, so I tried to compile the project in another path:
QtAVPlayer-master\tests\auto\integration\qavplayer\qavplayer.pro
- I changed the ffmpeg lib path and INCLUDEPATH of the project so the compilation was successful, but it did not seem to have a ui interface.
- Can you teach me how to play a video using QtAVPlayer? If possible, please directly add a simple video player that can be directly compiled and opened into the
examples
, thank you!
pingxiangren commented
- the
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
- The
QtAVPlayer
is not Qt 5.14.2 official library , mywidget_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
pingxiangren commented
valbok commented
Hi, thanks for trying this. 259bf26 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"
valbok commented
Please, feel free to ask any questions