valbok / QtAVPlayer

Free and open-source Qt Media Player library based on FFmpeg, for Linux, Windows, macOS, iOS and Android.
MIT License
298 stars 60 forks source link

A complete example is required ! #401

Closed pingxiangren closed 1 year ago

pingxiangren commented 1 year ago
pingxiangren commented 1 year ago

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 1 year ago

Q1111

valbok commented 1 year ago

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"

valbok commented 1 year ago

Please, feel free to ask any questions

valbok commented 1 year ago

https://github.com/valbok/QtAVPlayer/pull/403 now only qmake is needed