QMediaPlayer::setMedia -> QMediaPlayer::setSource

References:
- https://doc.qt.io/qt-5/qmediaplayer.html#setMedia
- https://doc-snapshots.qt.io/qt6-dev/qmediaplayer.html#setSource
This commit is contained in:
zneix 2021-07-31 12:27:27 +02:00
parent 4ba4a2f33c
commit 4958a13240
No known key found for this signature in database
GPG key ID: 911916E0523B22F6
2 changed files with 2 additions and 2 deletions

View file

@ -112,7 +112,7 @@ void NotificationController::playSound()
if (currentPlayerUrl != highlightSoundUrl) if (currentPlayerUrl != highlightSoundUrl)
{ {
player->setMedia(highlightSoundUrl); player->setSource(highlightSoundUrl);
currentPlayerUrl = highlightSoundUrl; currentPlayerUrl = highlightSoundUrl;
} }

View file

@ -469,7 +469,7 @@ void SharedMessageBuilder::triggerHighlights()
// update the media player url if necessary // update the media player url if necessary
if (currentPlayerUrl != this->highlightSoundUrl_) if (currentPlayerUrl != this->highlightSoundUrl_)
{ {
player->setMedia(this->highlightSoundUrl_); player->setSource(this->highlightSoundUrl_);
currentPlayerUrl = this->highlightSoundUrl_; currentPlayerUrl = this->highlightSoundUrl_;
} }