-
Notifications
You must be signed in to change notification settings - Fork 83
Description
Hi,
I am trying to integrate this VLCQt QML project but I am not able to recognize the library.
In the main.cpp I get the following warning on the "VlcQmlVideoPlayer::registerPlugin();":
VlcQmlVideoPlayer is deprecated
In the qml:
import VLCQt 1.1 //QML module not found (VLCQt)
Compiler and Qt:
Qt_5_12_2_MSVC2015_64bit
I downloaded VLC-Qt_1.1.0_win64_msvc2015 binaries and copied the content to my src/lib/vlcqt folder.
I also added to my \build-hmi-Desktop_Qt_5_12_2_MSVC2015_64bit-Debug\debug folder to be able to debug.
Please, has anyone managed to integrate the libraries without compiling the sources? I would be very grateful for an answer or a clear example, we have planned a project thinking about this utility and we have been several days without being able to advance, we do not have much experience integrating external libraries.
Thank you very much.
These are my source files:
hmi.pro
LIBS += -lVLCQtCore -lVLCQtQML
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/lib/vlcqt/lib/ -lVLCQtCore -lVLCQtQML
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/lib/vlcqt/lib/ -lVLCQtCored -lVLCQtQML
INCLUDEPATH += $$PWD/lib/vlcqt/include
DEPENDPATH += $$PWD/lib/vlcqt/include
main.cpp
#include <VLCQtCore/Common.h>
#include <VLCQtQml/QmlVideoPlayer.h>
int main(int argc, char *argv[])
{
QQmlDebuggingEnabler enabler;
QGuiApplication app(argc, argv);
VlcCommon::setPluginPath(app.applicationDirPath() + "/plugins");
VlcQmlVideoPlayer::registerPlugin();
return app.exec();
}
widget.qml
import QtQuick 2.0
import VLCQt 1.1 //Creator shows an error here: QML module not found (VLCQt)
Item {
VlcVideoPlayer {
id: vidwidget
anchors.fill: parent
url: "https://movietrailers.apple.com/movies/paramount/the-contractor/the-contractor-trailer-1_h720p.mov"
}
}

