summaryrefslogtreecommitdiffstats
path: root/src/multimedia/controls
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-01-12 09:37:27 +0100
committerLars Knoll <lars.knoll@qt.io>2021-01-22 07:02:21 +0000
commitbf1eb37ac8e569ab929c0c2ab8655f07594ef4e9 (patch)
treea1d47d5790dabbefbcbf3d2d0ba3a08bd844e559 /src/multimedia/controls
parent778886e93e7525ad3b485c15a1a2cc84ca80b016 (diff)
Get rid of the QMediaServiceFeaturesInterface
Replace it by one virtual method in the media player control. Change-Id: I18778d2f56b9af8a16418c30c75c973e54b6add8 Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/multimedia/controls')
-rw-r--r--src/multimedia/controls/qmediaplayercontrol.cpp6
-rw-r--r--src/multimedia/controls/qmediaplayercontrol.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/multimedia/controls/qmediaplayercontrol.cpp b/src/multimedia/controls/qmediaplayercontrol.cpp
index a41e67ec5..237bf64e1 100644
--- a/src/multimedia/controls/qmediaplayercontrol.cpp
+++ b/src/multimedia/controls/qmediaplayercontrol.cpp
@@ -318,10 +318,12 @@ QMediaPlayerControl::QMediaPlayerControl(QObject *parent)
information relating to the current media source and to cease all I/O operations related
to that media.
- Qt resource files are never passed as is. If the service supports
- QMediaServiceFeaturesInterface::StreamPlayback, a \a stream is supplied, pointing to an opened
+ Qt resource files are never passed as is. If the control supports
+ stream playback, a \a stream is supplied, pointing to an opened
QFile. Otherwise, the resource is copied into a temporary file and \a media contains the
url to that file.
+
+ \sa streamPlaybackSupported()
*/
/*!
diff --git a/src/multimedia/controls/qmediaplayercontrol.h b/src/multimedia/controls/qmediaplayercontrol.h
index 8c4005dc1..f796ec300 100644
--- a/src/multimedia/controls/qmediaplayercontrol.h
+++ b/src/multimedia/controls/qmediaplayercontrol.h
@@ -94,6 +94,8 @@ public:
virtual void setCustomAudioRole(const QString &/*role*/) {}
virtual QStringList supportedCustomAudioRoles() const { return {}; }
+ virtual bool streamPlaybackSupported() const { return false; }
+
Q_SIGNALS:
void audioRoleChanged(QAudio::Role role);
void customAudioRoleChanged(const QString &role);