Unverified Commit 0adb96e0 authored by Edward Kigwana's avatar Edward Kigwana
Browse files

Migrate from deprecated media content URL API

New interface available starting with QT 5.14.0.
Signed-off-by: Edward Kigwana's avatarEdward Kigwana <ekigwana@gmail.com>
parent cc3d5eb7
...@@ -75,7 +75,11 @@ qreal AudioWrapper::volume() const ...@@ -75,7 +75,11 @@ qreal AudioWrapper::volume() const
QUrl AudioWrapper::source() const QUrl AudioWrapper::source() const
{ {
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
return d->mPlayer.media().request().url();
return d->mPlayer.media().canonicalUrl(); return d->mPlayer.media().canonicalUrl();
} }
QMediaPlayer::Error AudioWrapper::error() const QMediaPlayer::Error AudioWrapper::error() const
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment