| 123456789101112131415161718192021222324252627282930 |
- #include <QApplication>
- #include <QDebug>
- #include "AVPlayer/avplayerwidget.h"
- #include "AVPlayer/vframe.h"
- #include "widgets/recorderwidget.h"
- int main(int argc, char *argv[])
- {
- QApplication app(argc, argv);
- qRegisterMetaType<QSharedPointer<VideoFrame>>("QSharedPointer<VideoFrame>");
- try {
- qDebug() << "Creating RecorderWidget...";
- RecorderWidget testRecorder;
-
- qDebug() << "Showing RecorderWidget...";
- testRecorder.show();
- AVPlayerWidget avPlayerWidget;
- avPlayerWidget.show();
- qDebug() << "RecorderWidget created and shown successfully!";
-
- return app.exec();
- } catch (const std::exception& e) {
- qCritical() << "Exception caught:" << e.what();
- return -1;
- } catch (...) {
- qCritical() << "Unknown exception caught";
- return -1;
- }
- }
|