#include "mainwindow.h"#include <QtMultimedia>#include <QtMultimedia/QMediaPlaylist>#include <QtMultimedia/QMediaPlayer>MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent){}void MainWindow::init() { QMediaPlayer *player = new QMediaPlayer(this, QMediaPlayer::Flag::StreamPlayback); QMediaPlaylist *playlist = new QMediaPlaylist(player); QMediaContent content(QUrl("http://localhost:8000/stream")); player->setVolume(100); playlist->addMedia(content); playlist->setCurrentIndex(1); player->play();}MainWindow::~MainWindow(){}