main.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #include "AvPlayer/playerdemowindow.h"
  2. #include "mainwindow.h"
  3. #include "thememanager.h"
  4. #include "themesettingswidget.h"
  5. #include <QApplication>
  6. int main(int argc, char* argv[])
  7. {
  8. // std::freopen(nullptr, "w", stdout);
  9. setvbuf(stdout, nullptr, _IONBF, 0);
  10. QApplication a(argc, argv);
  11. ThemeManager::instance().setThemeMode(ThemeManager::Light);
  12. /*
  13. docker run -itd --name zlmediakit --restart=always
  14. -p 1935:1935 -p 8080:80 -p 8443:443
  15. -p 8554:554 -p 10000:10000
  16. -p 10000:10000/udp -p 8000:8000/udp
  17. -p 9000:9000/udp
  18. -v /data/zlmediakit/media/bin:/opt/media/bin
  19. -v /data/zlmediakit/media/conf:/opt/media/conf
  20. zlmediakit/zlmediakit:master
  21. */
  22. // MainWindow w;
  23. // w.show();
  24. // ThemeSettingsWidget ThemeSettingsWidget;
  25. // ThemeSettingsWidget.show();
  26. PlayerDemoWindow w;
  27. w.resize(960, 540);
  28. w.show();
  29. // 这里填你的流地址
  30. // w.startPlay("http://vd3.bdstatic.com/mda-jennyc5ci1ugrxzi/mda-jennyc5ci1ugrxzi.mp4");
  31. w.startPlay("rtmp://127.0.0.1:1936/stream/V1");
  32. return a.exec();
  33. }