<?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: MediaController 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>MediaController</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-types">Public Types</a></li> <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">MediaController Class Reference</h1> <span class="small-subtitle">(Phonon::MediaController)<br/></span> <!-- $$$MediaController-brief --> <p>The MediaController class controls optional features of a media file/device. <a href="#details">More...</a></p> <!-- @@@MediaController --> <pre class="cpp"> <span class="preprocessor">#include <Phonon/MediaController></span></pre><p><b>Inherits: </b><a href="qobject.html">QObject</a>.</p> <p>This class was introduced in Qt 4.4.</p> <ul> <li><a href="phonon-mediacontroller-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-types"></a> <h2>Public Types</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#Feature-enum">Feature</a></b> { Angles, Chapters, Titles }</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#Feature-enum">Features</a></b></td></tr> </table> <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-mediacontroller.html#MediaController">MediaController</a></b> ( MediaObject * <i>parent</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#dtor.MediaController">~MediaController</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#autoplayTitles">autoplayTitles</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#availableAngles">availableAngles</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#availableChapters">availableChapters</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#availableTitles">availableTitles</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#currentAngle">currentAngle</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#currentChapter">currentChapter</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#currentTitle">currentTitle</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Features </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#supportedFeatures">supportedFeatures</a></b> () const</td></tr> </table> <ul> <li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</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-mediacontroller.html#nextTitle">nextTitle</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#previousTitle">previousTitle</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#setAutoplayTitles">setAutoplayTitles</a></b> ( bool <i>enable</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#setCurrentAngle">setCurrentAngle</a></b> ( int <i>angleNumber</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#setCurrentChapter">setCurrentChapter</a></b> ( int <i>chapterNumber</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#setCurrentTitle">setCurrentTitle</a></b> ( int <i>titleNumber</i> )</td></tr> </table> <ul> <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-mediacontroller.html#angleChanged">angleChanged</a></b> ( int <i>angleNumber</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#availableAnglesChanged">availableAnglesChanged</a></b> ( int <i>availableAngles</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#availableChaptersChanged">availableChaptersChanged</a></b> ( int <i>availableChapters</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#availableTitlesChanged">availableTitlesChanged</a></b> ( int <i>availableTitles</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#chapterChanged">chapterChanged</a></b> ( int <i>chapterNumber</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="phonon-mediacontroller.html#titleChanged">titleChanged</a></b> ( int <i>titleNumber</i> )</td></tr> </table> <ul> <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">1 property inherited from <a href="qobject.html#properties">QObject</a></li> <li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li> <li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li> </ul> <a name="details"></a> <!-- $$$MediaController-description --> <div class="descr"> <h2>Detailed Description</h2> <p>The MediaController class controls optional features of a media file/device.</p> <p>Some media sources have content that the <a href="phonon-mediaobject.html">MediaObject</a> does not provide control over, for instance, chapters in a DVD file. The functionality the media controller offers is dependent on the type of media source that is played back. Commonly, the media controller allows you to:</p> <ul> <li>Navigate between <b>chapters</b>.</li> <li>Navigate between <b>titles</b>.</li> <li>Select between <b>angles</b>.</li> </ul> <p>The <a href="phonon-mediacontroller.html#Feature-enum">Feature</a> enum explains these terms in more detail, and their context in playback of CD and DVD.</p> <p>The media controller keeps a <a href="phonon-mediaobject.html">MediaObject</a>, of which <a href="phonon-mediaobject.html#currentSource">media source</a> is played back. You can still call the media object's functions, e.g., <a href="phonon-mediaobject.html#stop">stop()</a>; this is all handled correctly by the media controller. You have the option of letting the media controller play all titles of a source in sequence by setting the <a href="phonon-mediacontroller.html#autoplayTitles">autoplay titles</a> option.</p> <p>To start a playback using a media object, you call <a href="phonon-mediaobject.html#play">play()</a> on the media object. To play a specific title, use <a href="phonon-mediacontroller.html#setCurrentTitle">setCurrentTitle</a>() and then call <a href="phonon-mediaobject.html#play">play()</a>.</p> <p><b>Warning:</b> The Phonon::MediaController class is not yet supported by Qt backends.</p> </div> <p><b>See also </b><a href="phonon-module.html">Phonon Module</a>.</p> <!-- @@@MediaController --> <div class="types"> <h2>Member Type Documentation</h2> <!-- $$$Feature$$$Angles$$$Chapters$$$Titles --> <h3 class="flags"><a name="Feature-enum"></a>enum MediaController::<span class="name">Feature</span><br/>flags MediaController::<span class="name">Features</span></h3> <p>The values of this enum are interpreted differently depending on the type of media source, e.g., DVD or CD. We give examples for these sources.</p> <table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr> <tr><td class="topAlign"><tt>Phonon::MediaController::Angles</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">In the VOB (DVD) format, it is possible to to give several video streams of the same scene, each of which displays the scene from a different angle. The DVD viewer can then change between these angles.</td></tr> <tr><td class="topAlign"><tt>Phonon::MediaController::Chapters</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">In the VOB format, chapters are points in a single video stream that can be played and seeked to separately.</td></tr> <tr><td class="topAlign"><tt>Phonon::MediaController::Titles</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">On a CD, a title is a separate sound track. On DVD, a title is a separate VOB file.</td></tr> </table> <p>The Features type is a typedef for <a href="qflags.html">QFlags</a><Feature>. It stores an OR combination of Feature values.</p> <!-- @@@Feature --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$MediaController[overload1]$$$MediaControllerMediaObject* --> <h3 class="fn"><a name="MediaController"></a>MediaController::<span class="name">MediaController</span> ( <span class="type"><a href="phonon-mediaobject.html">MediaObject</a></span> * <i>parent</i> )</h3> <p>Constructs a new <a href="phonon-mediacontroller.html">MediaController</a> with the media object (<i>parent</i>) to be used by the media controller.</p> <p><b>See also </b><a href="phonon-mediaobject.html">MediaObject</a> and <a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@MediaController --> <!-- $$$~MediaController[overload1]$$$~MediaController --> <h3 class="fn"><a name="dtor.MediaController"></a>MediaController::<span class="name">~MediaController</span> ()</h3> <!-- @@@~MediaController --> <!-- $$$angleChanged[overload1]$$$angleChangedint --> <h3 class="fn"><a name="angleChanged"></a><span class="type">void</span> MediaController::<span class="name">angleChanged</span> ( <span class="type">int</span> <i>angleNumber</i> )<tt> [signal]</tt></h3> <p>This signal is emitted whenever the current angle changes. The new angle number is given by <i>angleNumber</i>.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@angleChanged --> <!-- $$$autoplayTitles[overload1]$$$autoplayTitles --> <h3 class="fn"><a name="autoplayTitles"></a><span class="type">bool</span> MediaController::<span class="name">autoplayTitles</span> () const</h3> <p>Returns true if titles will automatically be played when the media is played; otherwise returns false.</p> <p>The media controller will play the titles of the media source in sequence when the media object's <a href="phonon-mediaobject.html#play">play()</a> function is called. If the autoplay option is disabled, the media object will play the <a href="phonon-mediacontroller.html#currentTitle">MediaController::currentTitle()</a>{current title} and then finish the playback.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#setAutoplayTitles">setAutoplayTitles</a>() and <a href="phonon-mediacontroller.html#currentTitle">currentTitle</a>().</p> <!-- @@@autoplayTitles --> <!-- $$$availableAngles[overload1]$$$availableAngles --> <h3 class="fn"><a name="availableAngles"></a><span class="type">int</span> MediaController::<span class="name">availableAngles</span> () const</h3> <p>Returns the available angles that is available for the current media source.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@availableAngles --> <!-- $$$availableAnglesChanged[overload1]$$$availableAnglesChangedint --> <h3 class="fn"><a name="availableAnglesChanged"></a><span class="type">void</span> MediaController::<span class="name">availableAnglesChanged</span> ( <span class="type">int</span> <i>availableAngles</i> )<tt> [signal]</tt></h3> <p>This signal is emitted whenever the number of available angles changes. The new number of available angles is given by <i>availableAngles</i>.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@availableAnglesChanged --> <!-- $$$availableChapters[overload1]$$$availableChapters --> <h3 class="fn"><a name="availableChapters"></a><span class="type">int</span> MediaController::<span class="name">availableChapters</span> () const</h3> <p>Returns the number of chapters the current media source contains.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@availableChapters --> <!-- $$$availableChaptersChanged[overload1]$$$availableChaptersChangedint --> <h3 class="fn"><a name="availableChaptersChanged"></a><span class="type">void</span> MediaController::<span class="name">availableChaptersChanged</span> ( <span class="type">int</span> <i>availableChapters</i> )<tt> [signal]</tt></h3> <p>This signal is emitted whenever the number of available chapters changes. The new number of available chapters is given by <i>availableChapters</i>.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@availableChaptersChanged --> <!-- $$$availableTitles[overload1]$$$availableTitles --> <h3 class="fn"><a name="availableTitles"></a><span class="type">int</span> MediaController::<span class="name">availableTitles</span> () const</h3> <p>Returns the number of titles that the current media source contains.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@availableTitles --> <!-- $$$availableTitlesChanged[overload1]$$$availableTitlesChangedint --> <h3 class="fn"><a name="availableTitlesChanged"></a><span class="type">void</span> MediaController::<span class="name">availableTitlesChanged</span> ( <span class="type">int</span> <i>availableTitles</i> )<tt> [signal]</tt></h3> <p>This signal is emitted whenever the number of available titles changes. The new number of available titles is given by <i>availableTitles</i>.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@availableTitlesChanged --> <!-- $$$chapterChanged[overload1]$$$chapterChangedint --> <h3 class="fn"><a name="chapterChanged"></a><span class="type">void</span> MediaController::<span class="name">chapterChanged</span> ( <span class="type">int</span> <i>chapterNumber</i> )<tt> [signal]</tt></h3> <p>This signal is emitted whenever the current chapter changes. The new chapter number is given by <i>chapterNumber</i>.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@chapterChanged --> <!-- $$$currentAngle[overload1]$$$currentAngle --> <h3 class="fn"><a name="currentAngle"></a><span class="type">int</span> MediaController::<span class="name">currentAngle</span> () const</h3> <p>Returns the angle that is currently used.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#setCurrentAngle">setCurrentAngle</a>() and <a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@currentAngle --> <!-- $$$currentChapter[overload1]$$$currentChapter --> <h3 class="fn"><a name="currentChapter"></a><span class="type">int</span> MediaController::<span class="name">currentChapter</span> () const</h3> <p>Returns the chapter that is currently being played back.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#setCurrentChapter">setCurrentChapter</a>() and <a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@currentChapter --> <!-- $$$currentTitle[overload1]$$$currentTitle --> <h3 class="fn"><a name="currentTitle"></a><span class="type">int</span> MediaController::<span class="name">currentTitle</span> () const</h3> <p>Returns the title that is currently played back.</p> <p>The current title is 0 (the first) by default.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#setCurrentTitle">setCurrentTitle</a>() and <a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@currentTitle --> <!-- $$$nextTitle[overload1]$$$nextTitle --> <h3 class="fn"><a name="nextTitle"></a><span class="type">void</span> MediaController::<span class="name">nextTitle</span> ()<tt> [slot]</tt></h3> <p>Skips to the next title.</p> <p>If it was playing before the title change it will start playback on the next title if autoplayTitles is enabled.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@nextTitle --> <!-- $$$previousTitle[overload1]$$$previousTitle --> <h3 class="fn"><a name="previousTitle"></a><span class="type">void</span> MediaController::<span class="name">previousTitle</span> ()<tt> [slot]</tt></h3> <p>Skips to the previous title.</p> <p>If it was playing before the title change it will start playback on the previous title if autoplayTitles is enabled.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@previousTitle --> <!-- $$$setAutoplayTitles[overload1]$$$setAutoplayTitlesbool --> <h3 class="fn"><a name="setAutoplayTitles"></a><span class="type">void</span> MediaController::<span class="name">setAutoplayTitles</span> ( <span class="type">bool</span> <i>enable</i> )<tt> [slot]</tt></h3> <p>Sets the titles to play automatically when the media is played if <i>enable</i> is true; otherwise disables this option.</p> <p>The media controller will play the titles of the media source in sequence when the media object's <a href="phonon-mediaobject.html#play">play()</a> function is called. If the autoplay option is disabled, the media object will play the <a href="phonon-mediacontroller.html#currentTitle">MediaController::currentTitle()</a>{current title} and then finish the playback.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#autoplayTitles">autoplayTitles</a>() and <a href="phonon-mediacontroller.html#currentTitle">currentTitle</a>().</p> <!-- @@@setAutoplayTitles --> <!-- $$$setCurrentAngle[overload1]$$$setCurrentAngleint --> <h3 class="fn"><a name="setCurrentAngle"></a><span class="type">void</span> MediaController::<span class="name">setCurrentAngle</span> ( <span class="type">int</span> <i>angleNumber</i> )<tt> [slot]</tt></h3> <p>Sets the current angle to the given <i>angleNumber</i> if the media file or device supports navigation by angle number.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#currentAngle">currentAngle</a>() and <a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@setCurrentAngle --> <!-- $$$setCurrentChapter[overload1]$$$setCurrentChapterint --> <h3 class="fn"><a name="setCurrentChapter"></a><span class="type">void</span> MediaController::<span class="name">setCurrentChapter</span> ( <span class="type">int</span> <i>chapterNumber</i> )<tt> [slot]</tt></h3> <p>Sets the current chapter to the given <i>chapterNumber</i> if the media file or device supports navigation by chapter number.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#currentChapter">currentChapter</a>() and <a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@setCurrentChapter --> <!-- $$$setCurrentTitle[overload1]$$$setCurrentTitleint --> <h3 class="fn"><a name="setCurrentTitle"></a><span class="type">void</span> MediaController::<span class="name">setCurrentTitle</span> ( <span class="type">int</span> <i>titleNumber</i> )<tt> [slot]</tt></h3> <p>Skips to the given title <i>titleNumber</i>.</p> <p>If it was playing before the title change it will start playback on the new title if autoplayTitles is enabled.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#currentTitle">currentTitle</a>() and <a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@setCurrentTitle --> <!-- $$$supportedFeatures[overload1]$$$supportedFeatures --> <h3 class="fn"><a name="supportedFeatures"></a><span class="type"><a href="phonon-mediacontroller.html#Feature-enum">Features</a></span> MediaController::<span class="name">supportedFeatures</span> () const</h3> <!-- @@@supportedFeatures --> <!-- $$$titleChanged[overload1]$$$titleChangedint --> <h3 class="fn"><a name="titleChanged"></a><span class="type">void</span> MediaController::<span class="name">titleChanged</span> ( <span class="type">int</span> <i>titleNumber</i> )<tt> [signal]</tt></h3> <p>This signal is emitted whenever the current title changes. The new title number is given by <i>titleNumber</i>.</p> <p><b>See also </b><a href="phonon-mediacontroller.html#Feature-enum">Feature</a>.</p> <!-- @@@titleChanged --> </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>