Commit 80901e98 authored by Edward Kigwana's avatar Edward Kigwana Committed by Matthieu Gallien

Migrate from deprecated media content URL API

New interface available starting with QT 5.14.0.

BUG: 416144
Signed-off-by: Edward Kigwana's avatarEdward Kigwana <ekigwana@gmail.com>

(cherry picked from commit 0adb96e0)
parent 2f88f871
......@@ -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