| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #include "AvPlayer/playerdemowindow.h"
- #include "mainwindow.h"
- #include "thememanager.h"
- #include "themesettingswidget.h"
- #include <QApplication>
- int main(int argc, char* argv[])
- {
- // std::freopen(nullptr, "w", stdout);
- setvbuf(stdout, nullptr, _IONBF, 0);
- QApplication a(argc, argv);
- ThemeManager::instance().setThemeMode(ThemeManager::Light);
- /*
- docker run -itd --name zlmediakit --restart=always
- -p 1935:1935 -p 8080:80 -p 8443:443
- -p 8554:554 -p 10000:10000
- -p 10000:10000/udp -p 8000:8000/udp
- -p 9000:9000/udp
- -v /data/zlmediakit/media/bin:/opt/media/bin
- -v /data/zlmediakit/media/conf:/opt/media/conf
- zlmediakit/zlmediakit:master
- */
- // MainWindow w;
- // w.show();
- // ThemeSettingsWidget ThemeSettingsWidget;
- // ThemeSettingsWidget.show();
- PlayerDemoWindow w;
- w.resize(960, 540);
- w.show();
- // 这里填你的流地址
- // w.startPlay("http://vd3.bdstatic.com/mda-jennyc5ci1ugrxzi/mda-jennyc5ci1ugrxzi.mp4");
- w.startPlay("rtmp://127.0.0.1:1936/stream/V1");
- return a.exec();
- }
|