Answer the question
In order to leave comments, you need to log in
QMediaPlayer how not to play in the background?
I do something like this
rmusiclist = new QMediaPlaylist();
rmusiclist->addMedia(QUrl("qrc:/Music/somemusic.mp3"));
rmusiclist->setPlaybackMode(QMediaPlaylist::Loop);
rmusic = new QMediaPlayer();
rmusic->setPlaylist(rmusiclist);
rmusic->setVolume(80);
rmusic->play();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question