<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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" /> <!-- phonon-api.qdoc --> <title>Qt 4.8: VideoPlayer Class Reference</title> <link rel="stylesheet" type="text/css" href="style/style.css" /> <script src="scripts/jquery.js" type="text/javascript"></script> <script src="scripts/functions.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="style/superfish.css" /> <link rel="stylesheet" type="text/css" href="style/narrow.css" /> <!--[if IE]> <meta name="MSSmartTagsPreventParsing" content="true"> <meta http-equiv="imagetoolbar" content="no"> <![endif]--> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie6.css"> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie7.css"> <![endif]--> <!--[if IE 8]> <link rel="stylesheet" type="text/css" href="style/style_ie8.css"> <![endif]--> <script src="scripts/superfish.js" type="text/javascript"></script> <script src="scripts/narrow.js" type="text/javascript"></script> </head> <body class="" onload="CheckEmptyAndLoadList();"> <div class="header" id="qtdocheader"> <div class="content"> <div id="nav-logo"> <a href="index.html">Home</a></div> <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a> <div id="narrowsearch"></div> <div id="nav-topright"> <ul> <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li> <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li> <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/"> DOC</a></li> <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li> </ul> </div> <div id="shortCut"> <ul> <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li> <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS </a></li> </ul> </div> <ul class="sf-menu" id="narrowmenu"> <li><a href="#">API Lookup</a> <ul> <li><a href="classes.html">Class index</a></li> <li><a href="functions.html">Function index</a></li> <li><a href="modules.html">Modules</a></li> <li><a href="namespaces.html">Namespaces</a></li> <li><a href="qtglobal.html">Global Declarations</a></li> <li><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </li> <li><a href="#">Qt Topics</a> <ul> <li><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li><a href="qtquick.html">Device UIs & Qt Quick</a></li> <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li><a href="supported-platforms.html">Supported Platforms</a></li> <li><a href="technology-apis.html">Qt and Key Technologies</a></li> <li><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </li> <li><a href="#">Examples</a> <ul> <li><a href="all-examples.html">Examples</a></li> <li><a href="tutorials.html">Tutorials</a></li> <li><a href="demos.html">Demos</a></li> <li><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </li> </ul> </div> </div> <div class="wrapper"> <div class="hd"> <span></span> </div> <div class="bd group"> <div class="sidebar"> <div class="searchlabel"> Search index:</div> <div class="search" id="sidebarsearch"> <form id="qtdocsearch" action="" onsubmit="return false;"> <fieldset> <input type="text" name="searchstring" id="pageType" value="" /> <div id="resultdialog"> <a href="#" id="resultclose">Close</a> <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span> results:</p> <ul id="resultlist" class="all"> </ul> </div> </fieldset> </form> </div> <div class="box first bottombar" id="lookup"> <h2 title="API Lookup"><span></span> API Lookup</h2> <div id="list001" class="list"> <ul id="ul001" > <li class="defaultLink"><a href="classes.html">Class index</a></li> <li class="defaultLink"><a href="functions.html">Function index</a></li> <li class="defaultLink"><a href="modules.html">Modules</a></li> <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li> <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li> <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </div> </div> <div class="box bottombar" id="topics"> <h2 title="Qt Topics"><span></span> Qt Topics</h2> <div id="list002" class="list"> <ul id="ul002" > <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li class="defaultLink"><a href="qtquick.html">Device UIs & Qt Quick</a></li> <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li> <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </div> </div> <div class="box" id="examples"> <h2 title="Examples"><span></span> Examples</h2> <div id="list003" class="list"> <ul id="ul003"> <li class="defaultLink"><a href="all-examples.html">Examples</a></li> <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li> <li class="defaultLink"><a href="demos.html">Demos</a></li> <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </div> </div> </div> <div class="wrap"> <div class="toolbar"> <div class="breadcrumb toolblock"> <ul> <li class="first"><a href="index.html">Home</a></li> <!-- Breadcrumbs go here --> <li><a href="modules.html">Modules</a></li> <li><a href="phonon.html">Phonon</a></li> <li>VideoPlayer</li> </ul> </div> <div class="toolbuttons toolblock"> <ul> <li id="smallA" class="t_button">A</li> <li id="medA" class="t_button active">A</li> <li id="bigA" class="t_button">A</li> <li id="print" class="t_button"><a href="javascript:this.print();"> <span>Print</span></a></li> </ul> </div> </div> <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="#public-slots">Public Slots</a></li> <li class="level1"><a href="#signals">Signals</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <h1 class="title">VideoPlayer Class Reference</h1> <span class="small-subtitle">(Phonon::VideoPlayer)<br/></span> <!-- $$$VideoPlayer-brief --> <p>The VideoPlayer widget is used to perform playback of video. <a href="#details">More...</a></p> <!-- @@@VideoPlayer --> <pre class="cpp"> <span class="preprocessor">#include <Phonon/VideoPlayer></span></pre><p><b>Inherits: </b><a href="qwidget.html">QWidget</a>.</p> <p>This class was introduced in Qt 4.4.</p> <ul> <li><a href="phonon-videoplayer-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="phonon-videoplayer.html#VideoPlayer">VideoPlayer</a></b> ( Phonon::Category <i>category</i>, QWidget * <i>parent</i> = 0 )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#VideoPlayer-2">VideoPlayer</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#dtor.VideoPlayer">~VideoPlayer</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> AudioOutput * </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#audioOutput">audioOutput</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> qint64 </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#currentTime">currentTime</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#isPaused">isPaused</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#isPlaying">isPlaying</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> MediaObject * </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#mediaObject">mediaObject</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> qint64 </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#totalTime">totalTime</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> VideoWidget * </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#videoWidgetx">videoWidget</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> float </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#volume">volume</a></b> () const</td></tr> </table> <ul> <li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li> <li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li> <li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li> </ul> <a name="public-slots"></a> <h2>Public Slots</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#load">load</a></b> ( const Phonon::MediaSource & <i>source</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#pause">pause</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#play">play</a></b> ( const Phonon::MediaSource & <i>source</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#play-2">play</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#seek">seek</a></b> ( qint64 <i>ms</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#setVolume">setVolume</a></b> ( float <i>volume</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-videoplayer.html#stop">stop</a></b> ()</td></tr> </table> <ul> <li class="fn">19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li> <li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li> </ul> <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="phonon-videoplayer.html#finished">finished</a></b> ()</td></tr> </table> <ul> <li class="fn">1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li> <li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li> </ul> <h3>Additional Inherited Members</h3> <ul> <li class="fn">58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li> <li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li> <li class="fn">4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li> <li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li> <li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li> <li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li> <li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li> <li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li> </ul> <a name="details"></a> <!-- $$$VideoPlayer-description --> <div class="descr"> <h2>Detailed Description</h2> <p>The VideoPlayer widget is used to perform playback of video.</p> <p>With VideoPlayer you can get results quickly and easily. You can do the standard playback tasks like <a href="phonon-videoplayer.html#play">play</a>(), <a href="phonon-videoplayer.html#pause">pause</a>(), and <a href="phonon-videoplayer.html#stop">stop</a>(), but also set a playback volume and seek - if the media and backend supports seeking.</p> <p>VideoPlayer is provided for convenience and removes the need to create a media graph with a <a href="phonon-mediaobject.html">MediaObject</a>, <a href="phonon-audiooutput.html">AudioOutput</a>, and <a href="phonon-videowidget.html">VideoWidget</a>. If you need functionality not supported by the player, you can build this <a href="phonon-overview.html#building-graphs">graph</a> yourself.</p> <p>Keep in mind that when the VideoPlayer instance is deleted the playback will stop.</p> <p>Note also that most of the functions in this class are asynchronous. For instance, a media source may not play immediately after you call the <a href="phonon-videoplayer.html#play">play</a>() function.</p> <p>A play and forget code example:</p> <pre class="cpp"> VideoPlayer <span class="operator">*</span>player <span class="operator">=</span> <span class="keyword">new</span> <a href="phonon-videoplayer.html#VideoPlayer">VideoPlayer</a>(Phonon<span class="operator">::</span>VideoCategory<span class="operator">,</span> parentWidget); <a href="qobject.html#connect">connect</a>(player<span class="operator">,</span> SIGNAL(finished())<span class="operator">,</span> player<span class="operator">,</span> SLOT(deleteLater())); player<span class="operator">-</span><span class="operator">></span><a href="phonon-videoplayer.html#play">play</a>(url);</pre> </div> <p><b>See also </b><a href="phonon-module.html">Phonon Module</a> and <a href="phonon-mediaobject.html">MediaObject</a>.</p> <!-- @@@VideoPlayer --> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$VideoPlayer[overload1]$$$VideoPlayerPhonon::CategoryQWidget* --> <h3 class="fn"><a name="VideoPlayer"></a>VideoPlayer::<span class="name">VideoPlayer</span> ( <span class="type"><a href="phonon.html#Category-enum">Phonon::Category</a></span> <i>category</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3> <p>Constructs a new <a href="phonon-videoplayer.html">VideoPlayer</a> instance with the specified <i>parent</i>.</p> <p><i>category</i> is the category used for the audio output device.</p> <!-- @@@VideoPlayer --> <!-- $$$VideoPlayer$$$VideoPlayerQWidget* --> <h3 class="fn"><a name="VideoPlayer-2"></a>VideoPlayer::<span class="name">VideoPlayer</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3> <p>Constructs a new video widget with a <i>parent</i> using <a href="phonon.html#Category-enum">Phonon::VideoCategory</a> as its category.</p> <p><i>parent</i> The <a href="qobject.html">QObject</a> parent.</p> <!-- @@@VideoPlayer --> <!-- $$$~VideoPlayer[overload1]$$$~VideoPlayer --> <h3 class="fn"><a name="dtor.VideoPlayer"></a>VideoPlayer::<span class="name">~VideoPlayer</span> ()</h3> <p>On destruction the playback is stopped, also the audio output is removed so that the desktop mixer will not show the application anymore. If you need a persistent audio output don't use <a href="phonon-videoplayer.html">VideoPlayer</a> but <a href="phonon-mediaobject.html">MediaObject</a>, VideoPath and VideoOutput.</p> <!-- @@@~VideoPlayer --> <!-- $$$audioOutput[overload1]$$$audioOutput --> <h3 class="fn"><a name="audioOutput"></a><span class="type"><a href="phonon-audiooutput.html">AudioOutput</a></span> * VideoPlayer::<span class="name">audioOutput</span> () const</h3> <p>Returns the audio output object being used by the player.</p> <!-- @@@audioOutput --> <!-- $$$currentTime[overload1]$$$currentTime --> <h3 class="fn"><a name="currentTime"></a><span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> VideoPlayer::<span class="name">currentTime</span> () const</h3> <p>Get the current time (in milliseconds) of the file currently being played.</p> <!-- @@@currentTime --> <!-- $$$finished[overload1]$$$finished --> <h3 class="fn"><a name="finished"></a><span class="type">void</span> VideoPlayer::<span class="name">finished</span> ()<tt> [signal]</tt></h3> <p>This signal is emitted when the playback finished.</p> <!-- @@@finished --> <!-- $$$isPaused[overload1]$$$isPaused --> <h3 class="fn"><a name="isPaused"></a><span class="type">bool</span> VideoPlayer::<span class="name">isPaused</span> () const</h3> <p>Returns true if it is currently paused; otherwise returns false if it is currently playing or stopped.</p> <!-- @@@isPaused --> <!-- $$$isPlaying[overload1]$$$isPlaying --> <h3 class="fn"><a name="isPlaying"></a><span class="type">bool</span> VideoPlayer::<span class="name">isPlaying</span> () const</h3> <p>Returns true if it is currently playing; otherwise returns false if it is currently stopped or paused</p> <!-- @@@isPlaying --> <!-- $$$load[overload1]$$$loadconstPhonon::MediaSource& --> <h3 class="fn"><a name="load"></a><span class="type">void</span> VideoPlayer::<span class="name">load</span> ( const <span class="type"><a href="phonon-mediasource.html">Phonon::MediaSource</a></span> & <i>source</i> )<tt> [slot]</tt></h3> <p>Starts pre-loading the media data from the specified <i>source</i> and filling audio buffers in the backend.</p> <p>When there's already a media playing (or paused) it will be stopped (the finished signal will not be emitted).</p> <p><b>See also </b><a href="phonon-mediaobject.html#setCurrentSource">MediaObject::setCurrentSource</a>().</p> <!-- @@@load --> <!-- $$$mediaObject[overload1]$$$mediaObject --> <h3 class="fn"><a name="mediaObject"></a><span class="type"><a href="phonon-mediaobject.html">MediaObject</a></span> * VideoPlayer::<span class="name">mediaObject</span> () const</h3> <p>Returns the media object being used by the player.</p> <p>The media object can be accessed directly instead of using the <a href="phonon-videoplayer.html">VideoPlayer</a>s convenience functions, e.g., <a href="phonon-videoplayer.html#play">play</a>() and <a href="phonon-videoplayer.html#stop">stop</a>(). It is also possible to give the object to other Phonon widgets, e.g., a <a href="phonon-seekslider.html">SeekSlider</a> or a <a href="phonon-volumeslider.html">VolumeSlider</a>.</p> <p><b>See also </b><a href="phonon-seekslider.html">Phonon::SeekSlider</a> and <a href="phonon-mediaobject.html">Phonon::MediaObject</a>.</p> <!-- @@@mediaObject --> <!-- $$$pause[overload1]$$$pause --> <h3 class="fn"><a name="pause"></a><span class="type">void</span> VideoPlayer::<span class="name">pause</span> ()<tt> [slot]</tt></h3> <p>Pauses the playback.</p> <p><b>See also </b><a href="phonon-mediaobject.html#pause">MediaObject::pause</a>().</p> <!-- @@@pause --> <!-- $$$play[overload1]$$$playconstPhonon::MediaSource& --> <h3 class="fn"><a name="play"></a><span class="type">void</span> VideoPlayer::<span class="name">play</span> ( const <span class="type"><a href="phonon-mediasource.html">Phonon::MediaSource</a></span> & <i>source</i> )<tt> [slot]</tt></h3> <p>Plays the media from the given <i>source</i>. Starts playback as fast as possible. This can take a considerable time depending on the URL and the backend.</p> <p>If you need low latency between calling play() and the sound actually starting to play on your output device you need to use <a href="phonon-mediaobject.html">MediaObject</a> and be able to set the URL before calling play(). Note that</p> <pre class="cpp"> audioPlayer<span class="operator">-</span><span class="operator">></span><a href="phonon-videoplayer.html#load">load</a>(url); audioPlayer<span class="operator">-</span><span class="operator">></span>play();</pre> <p>doesn't make a difference: the application should be idle between the load and play calls so that the backend can start preloading the media and fill audio buffers.</p> <!-- @@@play --> <!-- $$$play$$$play --> <h3 class="fn"><a name="play-2"></a><span class="type">void</span> VideoPlayer::<span class="name">play</span> ()<tt> [slot]</tt></h3> <p>Continues playback of paused media. Restarts playback of a stopped (or newly loaded) media.</p> <p><b>See also </b><a href="phonon-mediaobject.html#play">MediaObject::play</a>() and <a href="phonon-videoplayer.html#play">play</a>().</p> <!-- @@@play --> <!-- $$$seek[overload1]$$$seekqint64 --> <h3 class="fn"><a name="seek"></a><span class="type">void</span> VideoPlayer::<span class="name">seek</span> ( <span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> <i>ms</i> )<tt> [slot]</tt></h3> <p>Seeks to the requested time. Note that the backend is free to ignore the seek request if the media source isn't seekable; you can check this by asking the media object of the <a href="phonon-videoplayer.html">VideoPlayer</a>.</p> <pre class="cpp"> player<span class="operator">-</span><span class="operator">></span>mediaObject()<span class="operator">-</span><span class="operator">></span>isSeekable();</pre> <p>The <i>ms</i> parameter is the time in milliseconds from the start of the media.</p> <p>The call is asynchronous, so <a href="phonon-videoplayer.html#currentTime">currentTime</a>() can still be the old value right after this method was called. If all you need is a slider that shows the current position and allows the user to seek, use the class <a href="phonon-seekslider.html">SeekSlider</a>.</p> <p><b>See also </b><a href="phonon-mediaobject.html#seek">MediaObject::seek</a>(), <a href="phonon-mediaobject.html#isSeekable">MediaObject::isSeekable</a>(), and <a href="phonon-videoplayer.html#mediaObject">mediaObject</a>().</p> <!-- @@@seek --> <!-- $$$setVolume[overload1]$$$setVolumefloat --> <h3 class="fn"><a name="setVolume"></a><span class="type">void</span> VideoPlayer::<span class="name">setVolume</span> ( <span class="type">float</span> <i>volume</i> )<tt> [slot]</tt></h3> <p>Sets the <i>volume</i> of the output as voltage factor.</p> <p>1.0 means 100%, 0.5 means 50% voltage/25% power, 0.0 means 0%</p> <p><b>See also </b><a href="phonon-videoplayer.html#volume">volume</a>().</p> <!-- @@@setVolume --> <!-- $$$stop[overload1]$$$stop --> <h3 class="fn"><a name="stop"></a><span class="type">void</span> VideoPlayer::<span class="name">stop</span> ()<tt> [slot]</tt></h3> <p>Stops the playback.</p> <p><b>See also </b><a href="phonon-mediaobject.html#stop">MediaObject::stop</a>().</p> <!-- @@@stop --> <!-- $$$totalTime[overload1]$$$totalTime --> <h3 class="fn"><a name="totalTime"></a><span class="type"><a href="qtglobal.html#qint64-typedef">qint64</a></span> VideoPlayer::<span class="name">totalTime</span> () const</h3> <p>Get the total time (in milliseconds) of the file currently being played.</p> <!-- @@@totalTime --> <!-- $$$videoWidget[overload1]$$$videoWidget --> <h3 class="fn"><a name="videoWidgetx"></a><span class="type"><a href="phonon-videowidget.html">VideoWidget</a></span> * VideoPlayer::<span class="name">videoWidget</span> () const</h3> <p>Returns the video widget being used by the player.</p> <!-- @@@videoWidget --> <!-- $$$volume[overload1]$$$volume --> <h3 class="fn"><a name="volume"></a><span class="type">float</span> VideoPlayer::<span class="name">volume</span> () const</h3> <p>This is the current volume of the output as voltage factor.</p> <p>1.0 means 100%, 0.5 means 50% voltage/25% power, 0.0 means 0%</p> <p><b>See also </b><a href="phonon-videoplayer.html#setVolume">setVolume</a>().</p> <!-- @@@volume --> </div> </div> </div> </div> <div class="ft"> <span></span> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.</p> <br /> <p> 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.</p> <p> Documentation sources may be obtained from <a href="http://www.qt-project.org"> www.qt-project.org</a>.</p> <br /> <p> 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. <a title="Privacy Policy" href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p> </div> <script src="scripts/functions.js" type="text/javascript"></script> </body> </html>