/usr/share/qt5/doc/qtmultimedia/qmediaplayercontrol.html is in qtmultimedia5-doc-html 5.2.1-0ubuntu5.
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 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qmediaplayercontrol.cpp -->
<title>QMediaPlayerControl Class | QtMultimedia 5.2</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li>Qt 5.2</li>
<li><a href="qtmultimedia-index.html">Qt Multimedia</a></li>
<li><a href="qtmultimedia-module.html">C++ Classes</a></li>
<li>QMediaPlayerControl</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<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>
<h1 class="title">QMediaPlayerControl Class</h1>
<!-- $$$QMediaPlayerControl-brief -->
<p>The QMediaPlayerControl class provides access to the media playing functionality of a <a href="qmediaservice.html">QMediaService</a>. <a href="#details">More...</a></p>
<!-- @@@QMediaPlayerControl -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include <QMediaPlayerControl></span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> <tt>QT += multimedia</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qmediacontrol.html">QMediaControl</a>.</td></tr></table><ul>
<li><a href="qmediaplayercontrol-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<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>
<a name="signals"></a>
<h2>Signals</h2>
<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>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<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> = 0)</td></tr>
</table>
<a name="macros"></a>
<h2>Macros</h2>
<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>
<a name="details"></a>
<!-- $$$QMediaPlayerControl-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QMediaPlayerControl 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 QMediaPlayerControl. 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 QMediaPlayerControl is <tt>org.qt-project.qt.mediaplayercontrol/5.0</tt> as defined in <a href="qmediaplayercontrol.html#QMediaPlayerControl_iid">QMediaPlayerControl_iid</a>.</p>
</div>
<p><b>See also </b><a href="qmediaservice.html#requestControl">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"><a name="QMediaPlayerControl"></a>QMediaPlayerControl::<span class="name">QMediaPlayerControl</span>(<span class="type">QObject</span> *<i> parent</i> = 0)<tt> [protected]</tt></h3>
<p>Constructs a new media player control with the given <i>parent</i>.</p>
<!-- @@@QMediaPlayerControl -->
<!-- $$$~QMediaPlayerControl[overload1]$$$~QMediaPlayerControl -->
<h3 class="fn"><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"><a name="audioAvailableChanged"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">audioAvailableChanged</span>(<span class="type">bool</span><i> audio</i>)<tt> [signal]</tt></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"><a name="availablePlaybackRanges"></a><span class="type"><a href="qmediatimerange.html">QMediaTimeRange</a></span> QMediaPlayerControl::<span class="name">availablePlaybackRanges</span>() const<tt> [pure virtual]</tt></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"><a name="availablePlaybackRangesChanged"></a><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>)<tt> [signal]</tt></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"><a name="bufferStatus"></a><span class="type">int</span> QMediaPlayerControl::<span class="name">bufferStatus</span>() const<tt> [pure virtual]</tt></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"><a name="bufferStatusChanged"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">bufferStatusChanged</span>(<span class="type">int</span><i> progress</i>)<tt> [signal]</tt></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"><a name="duration"></a><span class="type">qint64</span> QMediaPlayerControl::<span class="name">duration</span>() const<tt> [pure virtual]</tt></h3>
<p>Returns the duration of the current media in milliseconds.</p>
<!-- @@@duration -->
<!-- $$$durationChanged[overload1]$$$durationChangedqint64 -->
<h3 class="fn"><a name="durationChanged"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">durationChanged</span>(<span class="type">qint64</span><i> duration</i>)<tt> [signal]</tt></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"><a name="error"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">error</span>(<span class="type">int</span><i> error</i>, const <span class="type">QString</span> &<i> errorString</i>)<tt> [signal]</tt></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"><a name="isAudioAvailable"></a><span class="type">bool</span> QMediaPlayerControl::<span class="name">isAudioAvailable</span>() const<tt> [pure virtual]</tt></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"><a name="isMuted"></a><span class="type">bool</span> QMediaPlayerControl::<span class="name">isMuted</span>() const<tt> [pure virtual]</tt></h3>
<p>Returns the mute state of a player control.</p>
<!-- @@@isMuted -->
<!-- $$$isSeekable[overload1]$$$isSeekable -->
<h3 class="fn"><a name="isSeekable"></a><span class="type">bool</span> QMediaPlayerControl::<span class="name">isSeekable</span>() const<tt> [pure virtual]</tt></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"><a name="isVideoAvailable"></a><span class="type">bool</span> QMediaPlayerControl::<span class="name">isVideoAvailable</span>() const<tt> [pure virtual]</tt></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"><a name="media"></a><span class="type"><a href="qmediacontent.html">QMediaContent</a></span> QMediaPlayerControl::<span class="name">media</span>() const<tt> [pure virtual]</tt></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"><a name="mediaChanged"></a><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>)<tt> [signal]</tt></h3>
<p>Signals that the current media <i>content</i> has changed.</p>
<!-- @@@mediaChanged -->
<!-- $$$mediaStatus[overload1]$$$mediaStatus -->
<h3 class="fn"><a name="mediaStatus"></a><span class="type"><a href="qmediaplayer.html#MediaStatus-enum">QMediaPlayer::MediaStatus</a></span> QMediaPlayerControl::<span class="name">mediaStatus</span>() const<tt> [pure virtual]</tt></h3>
<p>Returns the status of the current media.</p>
<!-- @@@mediaStatus -->
<!-- $$$mediaStatusChanged[overload1]$$$mediaStatusChangedQMediaPlayer::MediaStatus -->
<h3 class="fn"><a name="mediaStatusChanged"></a><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>)<tt> [signal]</tt></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"><a name="mediaStream"></a>const <span class="type">QIODevice</span> * QMediaPlayerControl::<span class="name">mediaStream</span>() const<tt> [pure virtual]</tt></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"><a name="mutedChanged"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">mutedChanged</span>(<span class="type">bool</span><i> mute</i>)<tt> [signal]</tt></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"><a name="pause"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">pause</span>()<tt> [pure virtual]</tt></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"><a name="play"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">play</span>()<tt> [pure virtual]</tt></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"><a name="playbackRate"></a><span class="type">qreal</span> QMediaPlayerControl::<span class="name">playbackRate</span>() const<tt> [pure virtual]</tt></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"><a name="playbackRateChanged"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">playbackRateChanged</span>(<span class="type">qreal</span><i> rate</i>)<tt> [signal]</tt></h3>
<p>Signal emitted when playback rate changes to <i>rate</i>.</p>
<!-- @@@playbackRateChanged -->
<!-- $$$position[overload1]$$$position -->
<h3 class="fn"><a name="position"></a><span class="type">qint64</span> QMediaPlayerControl::<span class="name">position</span>() const<tt> [pure virtual]</tt></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"><a name="positionChanged"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">positionChanged</span>(<span class="type">qint64</span><i> position</i>)<tt> [signal]</tt></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"><a name="seekableChanged"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">seekableChanged</span>(<span class="type">bool</span><i> seekable</i>)<tt> [signal]</tt></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"><a name="setMedia"></a><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">QIODevice</span> *<i> stream</i>)<tt> [pure virtual]</tt></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><b>See also </b><a href="qmediaplayercontrol.html#media">media</a>().</p>
<!-- @@@setMedia -->
<!-- $$$setMuted[overload1]$$$setMutedbool -->
<h3 class="fn"><a name="setMuted"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">setMuted</span>(<span class="type">bool</span><i> mute</i>)<tt> [pure virtual]</tt></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"><a name="setPlaybackRate"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">setPlaybackRate</span>(<span class="type">qreal</span><i> rate</i>)<tt> [pure virtual]</tt></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"><a name="setPosition"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">setPosition</span>(<span class="type">qint64</span><i> position</i>)<tt> [pure virtual]</tt></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"><a name="setVolume"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">setVolume</span>(<span class="type">int</span><i> volume</i>)<tt> [pure virtual]</tt></h3>
<p>Sets the audio <i>volume</i> of a player control.</p>
<p><b>See also </b><a href="qmediaplayercontrol.html#volume">volume</a>().</p>
<!-- @@@setVolume -->
<!-- $$$state[overload1]$$$state -->
<h3 class="fn"><a name="state"></a><span class="type"><a href="qmediaplayer.html#State-enum">QMediaPlayer::State</a></span> QMediaPlayerControl::<span class="name">state</span>() const<tt> [pure virtual]</tt></h3>
<p>Returns the state of a player control.</p>
<!-- @@@state -->
<!-- $$$stateChanged[overload1]$$$stateChangedQMediaPlayer::State -->
<h3 class="fn"><a name="stateChanged"></a><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>)<tt> [signal]</tt></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"><a name="stop"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">stop</span>()<tt> [pure virtual]</tt></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"><a name="videoAvailableChanged"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">videoAvailableChanged</span>(<span class="type">bool</span><i> video</i>)<tt> [signal]</tt></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"><a name="volume"></a><span class="type">int</span> QMediaPlayerControl::<span class="name">volume</span>() const<tt> [pure virtual]</tt></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"><a name="volumeChanged"></a><span class="type">void</span> QMediaPlayerControl::<span class="name">volumeChanged</span>(<span class="type">int</span><i> volume</i>)<tt> [signal]</tt></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"><a name="QMediaPlayerControl_iid"></a><span class="name">QMediaPlayerControl_iid</span></h3>
<p><tt>org.qt-project.qt.mediaplayercontrol/5.0</tt></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> 2013 Digia Plc and/or its
subsidiaries. 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> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|