integration_example.cpp 734 B

12345678910111213141516171819202122232425262728293031
  1. #include <QApplication>
  2. #include <QDebug>
  3. #include <QFileDialog>
  4. #include <QHBoxLayout>
  5. #include <QLabel>
  6. #include <QMainWindow>
  7. #include <QMessageBox>
  8. #include <QPushButton>
  9. #include <QSlider>
  10. #include <QTimer>
  11. #include <QVBoxLayout>
  12. #include "code/base/logger.h"
  13. #include "code/player/SimplePlayerWindow.h"
  14. int main(int argc, char* argv[])
  15. {
  16. av::Logger::initialize("test_log.txt", av::LogLevel::DEBUG, false, true);
  17. QApplication app(argc, argv);
  18. // 创建并显示播放器窗口
  19. SimplePlayerWindow window;
  20. window.show();
  21. qDebug() << "AV Player Integration Example Started";
  22. qDebug() << "This example demonstrates how to integrate the new player core with Qt UI";
  23. return app.exec();
  24. }