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 fd519c6..dd0c315 100644
--- a/src/multimedia/base/qmediacontent.cpp
+++ b/src/multimedia/base/qmediacontent.cpp
@@ -206,6 +206,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.
*/