/usr/share/qt5/doc/qtmultimedia/qmediaplayercontrol.html is in qtmultimedia5-doc-html 5.9.5-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qmediaplayercontrol.cpp -->
<title>QMediaPlayerControl Class | Qt Multimedia 5.9</title>
<link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
<script type="text/javascript">
document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
// loading style sheet breaks anchors that were jumped to before
// so force jumping to anchor again
setTimeout(function() {
var anchor = location.hash;
// need to jump to different anchor first (e.g. none)
location.hash = "#";
setTimeout(function() {
location.hash = anchor;
}, 0);
}, 0);
</script>
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<table><tr>
<td >Qt 5.9</td><td ><a href="qtmultimedia-index.html">Qt Multimedia</a></td><td ><a href="qtmultimedia-modules.html">C++ Classes</a></td><td >QMediaPlayerControl</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.5 Reference Documentation</td>
</tr></table>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#macros">Macros</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QMediaPlayerControl Class</h1>
<!-- $$$QMediaPlayerControl-brief -->
<p>The <a href="qmediaplayercontrol.html">QMediaPlayerControl</a> class provides access to the media playing functionality of a <a href="qmediaservice.html">QMediaService</a>. <a href="#details">More...</a></p>
<!-- @@@QMediaPlayerControl -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QMediaPlayerControl></span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += multimedia</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qmediacontrol.html">QMediaControl</a></td></tr></table></div><ul>
<li><a href="qmediaplayercontrol-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#dtor.QMediaPlayerControl">~QMediaPlayerControl</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QMediaTimeRange </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#availablePlaybackRanges">availablePlaybackRanges</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#bufferStatus">bufferStatus</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual qint64 </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#duration">duration</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#isAudioAvailable">isAudioAvailable</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#isMuted">isMuted</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#isSeekable">isSeekable</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#isVideoAvailable">isVideoAvailable</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QMediaContent </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#media">media</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QMediaPlayer::MediaStatus </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#mediaStatus">mediaStatus</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual const QIODevice *</td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#mediaStream">mediaStream</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#pause">pause</a></b>() = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#play">play</a></b>() = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual qreal </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#playbackRate">playbackRate</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual qint64 </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#position">position</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#setMedia">setMedia</a></b>(const QMediaContent &<i>media</i>, QIODevice *<i>stream</i>) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#setMuted">setMuted</a></b>(bool <i>mute</i>) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#setPlaybackRate">setPlaybackRate</a></b>(qreal <i>rate</i>) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#setPosition">setPosition</a></b>(qint64 <i>position</i>) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#setVolume">setVolume</a></b>(int <i>volume</i>) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QMediaPlayer::State </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#state">state</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#stop">stop</a></b>() = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#volume">volume</a></b>() const = 0</td></tr>
</table></div>
<ul>
<li class="fn">32 public functions inherited from <a href="../qtcore/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#audioAvailableChanged">audioAvailableChanged</a></b>(bool <i>audio</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#availablePlaybackRangesChanged">availablePlaybackRangesChanged</a></b>(const QMediaTimeRange &<i>ranges</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#bufferStatusChanged">bufferStatusChanged</a></b>(int <i>progress</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#durationChanged">durationChanged</a></b>(qint64 <i>duration</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#error">error</a></b>(int <i>error</i>, const QString &<i>errorString</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#mediaChanged">mediaChanged</a></b>(const QMediaContent &<i>content</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#mediaStatusChanged">mediaStatusChanged</a></b>(QMediaPlayer::MediaStatus <i>status</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#mutedChanged">mutedChanged</a></b>(bool <i>mute</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#playbackRateChanged">playbackRateChanged</a></b>(qreal <i>rate</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#positionChanged">positionChanged</a></b>(qint64 <i>position</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#seekableChanged">seekableChanged</a></b>(bool <i>seekable</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#stateChanged">stateChanged</a></b>(QMediaPlayer::State <i>state</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#videoAvailableChanged">videoAvailableChanged</a></b>(bool <i>video</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#volumeChanged">volumeChanged</a></b>(int <i>volume</i>)</td></tr>
</table></div>
<ul>
<li class="fn">2 signals inherited from <a href="../qtcore/qobject.html#signals">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h2 id="protected-functions">Protected Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#QMediaPlayerControl">QMediaPlayerControl</a></b>(QObject *<i>parent</i> = Q_NULLPTR)</td></tr>
</table></div>
<ul>
<li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="macros"></a>
<h2 id="macros">Macros</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmediaplayercontrol.html#QMediaPlayerControl_iid">QMediaPlayerControl_iid</a></b></td></tr>
</table></div>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="../qtcore/qobject.html#properties">QObject</a></li>
<li class="fn">1 public slot inherited from <a href="../qtcore/qobject.html#public-slots">QObject</a></li>
<li class="fn">1 public variable inherited from <a href="../qtcore/qobject.html#public-variables">QObject</a></li>
<li class="fn">10 static public members inherited from <a href="../qtcore/qobject.html#static-public-members">QObject</a></li>
<li class="fn">2 protected variables inherited from <a href="../qtcore/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QMediaPlayerControl-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qmediaplayercontrol.html">QMediaPlayerControl</a> class provides access to the media playing functionality of a <a href="qmediaservice.html">QMediaService</a>.</p>
<p>If a <a href="qmediaservice.html">QMediaService</a> can play media is will implement <a href="qmediaplayercontrol.html">QMediaPlayerControl</a>. This control provides a means to set the <a href="qmediaplayercontrol.html#setMedia">media</a> to play, <a href="qmediaplayercontrol.html#play">start</a>, <a href="qmediaplayercontrol.html#pause">pause</a> and <a href="qmediaplayercontrol.html#stop">stop</a> playback, <a href="qmediaplayercontrol.html#setPosition">seek</a>, and control the <a href="qmediaplayercontrol.html#setVolume">volume</a>. It also provides feedback on the <a href="qmediaplayercontrol.html#duration">duration</a> of the media, the current <a href="qmediaplayercontrol.html#position">position</a>, and <a href="qmediaplayercontrol.html#bufferStatus">buffering</a> progress.</p>
<p>The functionality provided by this control is exposed to application code through the <a href="qmediaplayer.html">QMediaPlayer</a> class.</p>
<p>The interface name of <a href="qmediaplayercontrol.html">QMediaPlayerControl</a> is <code>org.qt-project.qt.mediaplayercontrol/5.0</code> as defined in <a href="qmediaplayercontrol.html#QMediaPlayerControl_iid">QMediaPlayerControl_iid</a>.</p>
</div>
<p><b>See also </b><a href="qmediaservice.html#requestControl-1">QMediaService::requestControl</a>() and <a href="qmediaplayer.html">QMediaPlayer</a>.</p>
<!-- @@@QMediaPlayerControl -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QMediaPlayerControl[overload1]$$$QMediaPlayerControlQObject* -->
<h3 class="fn" id="QMediaPlayerControl"><a name="QMediaPlayerControl"></a><code>[protected] </code>QMediaPlayerControl::<span class="name">QMediaPlayerControl</span>(<span class="type"><a href="../qtcore/qobject.html#QObject">QObject</a></span> *<i>parent</i> = Q_NULLPTR)</h3>
<p>Constructs a new media player control with the given <i>parent</i>.</p>
<!-- @@@QMediaPlayerControl -->
<!-- $$$~QMediaPlayerControl[overload1]$$$~QMediaPlayerControl -->
<h3 class="fn" id="dtor.QMediaPlayerControl"><a name="dtor.QMediaPlayerControl"></a>QMediaPlayerControl::<span class="name">~QMediaPlayerControl</span>()</h3>
<p>Destroys a media player control.</p>
<!-- @@@~QMediaPlayerControl -->
<!-- $$$audioAvailableChanged[overload1]$$$audioAvailableChangedbool -->
<h3 class="fn" id="audioAvailableChanged"><a name="audioAvailableChanged"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">audioAvailableChanged</span>(<span class="type">bool</span> <i>audio</i>)</h3>
<p>Signals that there has been a change in the availability of <i>audio</i> output.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#isAudioAvailable">isAudioAvailable</a>().</p>
<!-- @@@audioAvailableChanged -->
<!-- $$$availablePlaybackRanges[overload1]$$$availablePlaybackRanges -->
<h3 class="fn" id="availablePlaybackRanges"><a name="availablePlaybackRanges"></a><code>[pure virtual] </code><span class="type"><a href="qmediatimerange.html">QMediaTimeRange</a></span> QMediaPlayerControl::<span class="name">availablePlaybackRanges</span>() const</h3>
<p>Returns a range of times in milliseconds that can be played back.</p>
<p>Usually for local files this is a continuous interval equal to [0..<a href="qmediaplayercontrol.html#duration">duration</a>()] or an empty time range if seeking is not supported, but for network sources it refers to the buffered parts of the media.</p>
<!-- @@@availablePlaybackRanges -->
<!-- $$$availablePlaybackRangesChanged[overload1]$$$availablePlaybackRangesChangedconstQMediaTimeRange& -->
<h3 class="fn" id="availablePlaybackRangesChanged"><a name="availablePlaybackRangesChanged"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">availablePlaybackRangesChanged</span>(const <span class="type"><a href="qmediatimerange.html">QMediaTimeRange</a></span> &<i>ranges</i>)</h3>
<p>Signals that the available media playback <i>ranges</i> have changed.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#availablePlaybackRanges">QMediaPlayerControl::availablePlaybackRanges</a>().</p>
<!-- @@@availablePlaybackRangesChanged -->
<!-- $$$bufferStatus[overload1]$$$bufferStatus -->
<h3 class="fn" id="bufferStatus"><a name="bufferStatus"></a><code>[pure virtual] </code><span class="type">int</span> QMediaPlayerControl::<span class="name">bufferStatus</span>() const</h3>
<p>Returns the buffering progress of the current media. Progress is measured in the percentage of the buffer filled.</p>
<!-- @@@bufferStatus -->
<!-- $$$bufferStatusChanged[overload1]$$$bufferStatusChangedint -->
<h3 class="fn" id="bufferStatusChanged"><a name="bufferStatusChanged"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">bufferStatusChanged</span>(<span class="type">int</span> <i>progress</i>)</h3>
<p>Signals that buffering <i>progress</i> has changed.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#bufferStatus">bufferStatus</a>().</p>
<!-- @@@bufferStatusChanged -->
<!-- $$$duration[overload1]$$$duration -->
<h3 class="fn" id="duration"><a name="duration"></a><code>[pure virtual] </code><span class="type"><a href="../qtcore/qtglobal.html#qint64-typedef">qint64</a></span> QMediaPlayerControl::<span class="name">duration</span>() const</h3>
<p>Returns the duration of the current media in milliseconds.</p>
<!-- @@@duration -->
<!-- $$$durationChanged[overload1]$$$durationChangedqint64 -->
<h3 class="fn" id="durationChanged"><a name="durationChanged"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">durationChanged</span>(<span class="type"><a href="../qtcore/qtglobal.html#qint64-typedef">qint64</a></span> <i>duration</i>)</h3>
<p>Signals that the <i>duration</i> of the current media has changed.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#duration">duration</a>().</p>
<!-- @@@durationChanged -->
<!-- $$$error[overload1]$$$errorintconstQString& -->
<h3 class="fn" id="error"><a name="error"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">error</span>(<span class="type">int</span> <i>error</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>errorString</i>)</h3>
<p>Signals that an <i>error</i> has occurred. The <i>errorString</i> provides a more detailed explanation.</p>
<!-- @@@error -->
<!-- $$$isAudioAvailable[overload1]$$$isAudioAvailable -->
<h3 class="fn" id="isAudioAvailable"><a name="isAudioAvailable"></a><code>[pure virtual] </code><span class="type">bool</span> QMediaPlayerControl::<span class="name">isAudioAvailable</span>() const</h3>
<p>Identifies if there is audio output available for the current media.</p>
<p>Returns true if audio output is available and false otherwise.</p>
<!-- @@@isAudioAvailable -->
<!-- $$$isMuted[overload1]$$$isMuted -->
<h3 class="fn" id="isMuted"><a name="isMuted"></a><code>[pure virtual] </code><span class="type">bool</span> QMediaPlayerControl::<span class="name">isMuted</span>() const</h3>
<p>Returns the mute state of a player control.</p>
<!-- @@@isMuted -->
<!-- $$$isSeekable[overload1]$$$isSeekable -->
<h3 class="fn" id="isSeekable"><a name="isSeekable"></a><code>[pure virtual] </code><span class="type">bool</span> QMediaPlayerControl::<span class="name">isSeekable</span>() const</h3>
<p>Identifies if the current media is seekable.</p>
<p>Returns true if it possible to seek within the current media, and false otherwise.</p>
<!-- @@@isSeekable -->
<!-- $$$isVideoAvailable[overload1]$$$isVideoAvailable -->
<h3 class="fn" id="isVideoAvailable"><a name="isVideoAvailable"></a><code>[pure virtual] </code><span class="type">bool</span> QMediaPlayerControl::<span class="name">isVideoAvailable</span>() const</h3>
<p>Identifies if there is video output available for the current media.</p>
<p>Returns true if video output is available and false otherwise.</p>
<!-- @@@isVideoAvailable -->
<!-- $$$media[overload1]$$$media -->
<h3 class="fn" id="media"><a name="media"></a><code>[pure virtual] </code><span class="type"><a href="qmediacontent.html">QMediaContent</a></span> QMediaPlayerControl::<span class="name">media</span>() const</h3>
<p>Returns the current media source.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#setMedia">setMedia</a>().</p>
<!-- @@@media -->
<!-- $$$mediaChanged[overload1]$$$mediaChangedconstQMediaContent& -->
<h3 class="fn" id="mediaChanged"><a name="mediaChanged"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">mediaChanged</span>(const <span class="type"><a href="qmediacontent.html">QMediaContent</a></span> &<i>content</i>)</h3>
<p>Signals that the current media <i>content</i> has changed.</p>
<!-- @@@mediaChanged -->
<!-- $$$mediaStatus[overload1]$$$mediaStatus -->
<h3 class="fn" id="mediaStatus"><a name="mediaStatus"></a><code>[pure virtual] </code><span class="type"><a href="qmediaplayer.html#MediaStatus-enum">QMediaPlayer::MediaStatus</a></span> QMediaPlayerControl::<span class="name">mediaStatus</span>() const</h3>
<p>Returns the status of the current media.</p>
<!-- @@@mediaStatus -->
<!-- $$$mediaStatusChanged[overload1]$$$mediaStatusChangedQMediaPlayer::MediaStatus -->
<h3 class="fn" id="mediaStatusChanged"><a name="mediaStatusChanged"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">mediaStatusChanged</span>(<span class="type"><a href="qmediaplayer.html#MediaStatus-enum">QMediaPlayer::MediaStatus</a></span> <i>status</i>)</h3>
<p>Signals that the <i>status</i> of the current media has changed.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#mediaStatus">mediaStatus</a>().</p>
<!-- @@@mediaStatusChanged -->
<!-- $$$mediaStream[overload1]$$$mediaStream -->
<h3 class="fn" id="mediaStream"><a name="mediaStream"></a><code>[pure virtual] </code>const <span class="type"><a href="../qtcore/qiodevice.html">QIODevice</a></span> *QMediaPlayerControl::<span class="name">mediaStream</span>() const</h3>
<p>Returns the current media stream. This is only a valid if a stream was passed to <a href="qmediaplayercontrol.html#setMedia">setMedia</a>().</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#setMedia">setMedia</a>().</p>
<!-- @@@mediaStream -->
<!-- $$$mutedChanged[overload1]$$$mutedChangedbool -->
<h3 class="fn" id="mutedChanged"><a name="mutedChanged"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">mutedChanged</span>(<span class="type">bool</span> <i>mute</i>)</h3>
<p>Signals a change in the <i>mute</i> status of a player control.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#isMuted">isMuted</a>().</p>
<!-- @@@mutedChanged -->
<!-- $$$pause[overload1]$$$pause -->
<h3 class="fn" id="pause"><a name="pause"></a><code>[pure virtual] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">pause</span>()</h3>
<p>Pauses playback of the current media.</p>
<p>If sucessful the player control will immediately enter the <a href="qmediaplayer.html#State-enum">paused</a> state.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#state">state</a>(), <a href="qmediaplayercontrol.html#play">play</a>(), and <a href="qmediaplayercontrol.html#stop">stop</a>().</p>
<!-- @@@pause -->
<!-- $$$play[overload1]$$$play -->
<h3 class="fn" id="play"><a name="play"></a><code>[pure virtual] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">play</span>()</h3>
<p>Starts playback of the current media.</p>
<p>If successful the player control will immediately enter the <a href="qmediaplayer.html#State-enum">playing</a> state.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#state">state</a>().</p>
<!-- @@@play -->
<!-- $$$playbackRate[overload1]$$$playbackRate -->
<h3 class="fn" id="playbackRate"><a name="playbackRate"></a><code>[pure virtual] </code><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QMediaPlayerControl::<span class="name">playbackRate</span>() const</h3>
<p>Returns the rate of playback.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#setPlaybackRate">setPlaybackRate</a>().</p>
<!-- @@@playbackRate -->
<!-- $$$playbackRateChanged[overload1]$$$playbackRateChangedqreal -->
<h3 class="fn" id="playbackRateChanged"><a name="playbackRateChanged"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">playbackRateChanged</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>rate</i>)</h3>
<p>Signal emitted when playback rate changes to <i>rate</i>.</p>
<!-- @@@playbackRateChanged -->
<!-- $$$position[overload1]$$$position -->
<h3 class="fn" id="position"><a name="position"></a><code>[pure virtual] </code><span class="type"><a href="../qtcore/qtglobal.html#qint64-typedef">qint64</a></span> QMediaPlayerControl::<span class="name">position</span>() const</h3>
<p>Returns the current playback position in milliseconds.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#setPosition">setPosition</a>().</p>
<!-- @@@position -->
<!-- $$$positionChanged[overload1]$$$positionChangedqint64 -->
<h3 class="fn" id="positionChanged"><a name="positionChanged"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">positionChanged</span>(<span class="type"><a href="../qtcore/qtglobal.html#qint64-typedef">qint64</a></span> <i>position</i>)</h3>
<p>Signals the playback <i>position</i> has changed.</p>
<p>This is only emitted in when there has been a discontinous change in the playback postion, such as a seek or the position being reset.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#position">position</a>().</p>
<!-- @@@positionChanged -->
<!-- $$$seekableChanged[overload1]$$$seekableChangedbool -->
<h3 class="fn" id="seekableChanged"><a name="seekableChanged"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">seekableChanged</span>(<span class="type">bool</span> <i>seekable</i>)</h3>
<p>Signals that the <i>seekable</i> state of a player control has changed.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#isSeekable">isSeekable</a>().</p>
<!-- @@@seekableChanged -->
<!-- $$$setMedia[overload1]$$$setMediaconstQMediaContent&QIODevice* -->
<h3 class="fn" id="setMedia"><a name="setMedia"></a><code>[pure virtual] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">setMedia</span>(const <span class="type"><a href="qmediacontent.html">QMediaContent</a></span> &<i>media</i>, <span class="type"><a href="../qtcore/qiodevice.html">QIODevice</a></span> *<i>stream</i>)</h3>
<p>Sets the current <i>media</i> source. If a <i>stream</i> is supplied; data will be read from that instead of attempting to resolve the media source. The media source may still be used to supply media information such as mime type.</p>
<p>Setting the media to a null <a href="qmediacontent.html">QMediaContent</a> will cause the control to discard all information relating to the current media source and to cease all I/O operations related to that media.</p>
<p>Qt resource files are never passed as is. If the service supports <a href="qmediaserviceproviderhint.html#Feature-enum">QMediaServiceProviderHint::StreamPlayback</a>, a <i>stream</i> is supplied, pointing to an opened <a href="../qtcore/qfile.html">QFile</a>. Otherwise, the resource is copied into a temporary file and <i>media</i> contains the url to that file.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#media">media</a>().</p>
<!-- @@@setMedia -->
<!-- $$$setMuted[overload1]$$$setMutedbool -->
<h3 class="fn" id="setMuted"><a name="setMuted"></a><code>[pure virtual] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">setMuted</span>(<span class="type">bool</span> <i>mute</i>)</h3>
<p>Sets the <i>mute</i> state of a player control.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#isMuted">isMuted</a>().</p>
<!-- @@@setMuted -->
<!-- $$$setPlaybackRate[overload1]$$$setPlaybackRateqreal -->
<h3 class="fn" id="setPlaybackRate"><a name="setPlaybackRate"></a><code>[pure virtual] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">setPlaybackRate</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>rate</i>)</h3>
<p>Sets the <i>rate</i> of playback.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#playbackRate">playbackRate</a>().</p>
<!-- @@@setPlaybackRate -->
<!-- $$$setPosition[overload1]$$$setPositionqint64 -->
<h3 class="fn" id="setPosition"><a name="setPosition"></a><code>[pure virtual] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">setPosition</span>(<span class="type"><a href="../qtcore/qtglobal.html#qint64-typedef">qint64</a></span> <i>position</i>)</h3>
<p>Sets the playback <i>position</i> of the current media. This will initiate a seek and it may take some time for playback to reach the position set.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#position">position</a>().</p>
<!-- @@@setPosition -->
<!-- $$$setVolume[overload1]$$$setVolumeint -->
<h3 class="fn" id="setVolume"><a name="setVolume"></a><code>[pure virtual] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">setVolume</span>(<span class="type">int</span> <i>volume</i>)</h3>
<p>Sets the audio <i>volume</i> of a player control.</p>
<p>The volume is scaled linearly, ranging from <code>0</code> (silence) to <code>100</code> (full volume).</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#volume">volume</a>().</p>
<!-- @@@setVolume -->
<!-- $$$state[overload1]$$$state -->
<h3 class="fn" id="state"><a name="state"></a><code>[pure virtual] </code><span class="type"><a href="qmediaplayer.html#State-enum">QMediaPlayer::State</a></span> QMediaPlayerControl::<span class="name">state</span>() const</h3>
<p>Returns the state of a player control.</p>
<!-- @@@state -->
<!-- $$$stateChanged[overload1]$$$stateChangedQMediaPlayer::State -->
<h3 class="fn" id="stateChanged"><a name="stateChanged"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">stateChanged</span>(<span class="type"><a href="qmediaplayer.html#State-enum">QMediaPlayer::State</a></span> <i>state</i>)</h3>
<p>Signals that the <i>state</i> of a player control has changed.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#state">state</a>().</p>
<!-- @@@stateChanged -->
<!-- $$$stop[overload1]$$$stop -->
<h3 class="fn" id="stop"><a name="stop"></a><code>[pure virtual] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">stop</span>()</h3>
<p>Stops playback of the current media.</p>
<p>If successful the player control will immediately enter the <a href="qmediaplayer.html#State-enum">stopped</a> state.</p>
<!-- @@@stop -->
<!-- $$$videoAvailableChanged[overload1]$$$videoAvailableChangedbool -->
<h3 class="fn" id="videoAvailableChanged"><a name="videoAvailableChanged"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">videoAvailableChanged</span>(<span class="type">bool</span> <i>video</i>)</h3>
<p>Signals that there has been a change in the availability of <i>video</i> output.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#isVideoAvailable">isVideoAvailable</a>().</p>
<!-- @@@videoAvailableChanged -->
<!-- $$$volume[overload1]$$$volume -->
<h3 class="fn" id="volume"><a name="volume"></a><code>[pure virtual] </code><span class="type">int</span> QMediaPlayerControl::<span class="name">volume</span>() const</h3>
<p>Returns the audio volume of a player control.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#setVolume">setVolume</a>().</p>
<!-- @@@volume -->
<!-- $$$volumeChanged[overload1]$$$volumeChangedint -->
<h3 class="fn" id="volumeChanged"><a name="volumeChanged"></a><code>[signal] </code><span class="type">void</span> QMediaPlayerControl::<span class="name">volumeChanged</span>(<span class="type">int</span> <i>volume</i>)</h3>
<p>Signals the audio <i>volume</i> of a player control has changed.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#volume">volume</a>().</p>
<!-- @@@volumeChanged -->
</div>
<div class="macros">
<h2>Macro Documentation</h2>
<!-- $$$QMediaPlayerControl_iid[overload1]$$$QMediaPlayerControl_iid -->
<h3 class="fn" id="QMediaPlayerControl_iid"><a name="QMediaPlayerControl_iid"></a><span class="name">QMediaPlayerControl_iid</span></h3>
<p><code>org.qt-project.qt.mediaplayercontrol/5.0</code></p>
<p>Defines the interface name of the <a href="qmediaplayercontrol.html">QMediaPlayerControl</a> class.</p>
<!-- @@@QMediaPlayerControl_iid -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2017 The Qt Company Ltd.
Documentation contributions included herein are the copyrights of
their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|