Commit 0adb96e0 authored by Edward Kigwana's avatar Edward Kigwana

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
QUrl AudioWrapper::source() const
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
return d->mPlayer.media().request().url();
#else
return d->mPlayer.media().canonicalUrl();
#endif
}
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