summaryrefslogtreecommitdiffstats
path: root/src/multimedia/base/qmediacontent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/multimedia/base/qmediacontent.cpp')
-rw-r--r--src/multimedia/base/qmediacontent.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/multimedia/base/qmediacontent.cpp b/src/multimedia/base/qmediacontent.cpp
index 6f158d2..b6bf56b 100644
--- a/src/multimedia/base/qmediacontent.cpp
+++ b/src/multimedia/base/qmediacontent.cpp
@@ -207,6 +207,15 @@ QUrl QMediaContent::canonicalUrl() const
}
/*!
+ Returns a QNetworkRequest that represents that canonical resource for this media content.
+*/
+
+QNetworkRequest QMediaContent::canonicalRequest() const
+{
+ return canonicalResource().request();
+}
+
+/*!
Returns a QMediaResource that represents that canonical resource for this media content.
*/