This file is indexed.

/usr/share/qt5/doc/qtmultimedia/qtmultimedia-multimediawidgets-player-example.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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- player.qdoc -->
  <title>Media Player Example | 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="multimedia-examples.html">Qt Multimedia Examples</a></td><td >Media Player Example</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="#running-the-example">Running the Example</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Media Player Example</h1>
<span class="subtitle"></span>
<!-- $$$multimediawidgets/player-description -->
<div class="descr"> <a name="details"></a>
<p class="centerAlign"><img src="images/mediaplayerex.jpg" alt="" /></p><p><i>Media Player</i> demonstrates a simple multimedia player that can play audio and or video files using various codecs.</p>
<a name="running-the-example"></a>
<h2 id="running-the-example">Running the Example</h2>
<p>To run the example from Qt Creator, open the <b>Welcome</b> mode and select the example from <b>Examples</b>. For more information, visit Building and Running an Example.</p>
<p>The example uses a <a href="qmediaplayer.html">QMediaPlayer</a> object passed into a <a href="qvideowidget.html">QVideoWidget</a> to control the video output. To give the application playlist capability we also use a QPlayList object.</p>
<p>To activate the various functions such as play and stop on the dialog, the button clicked events emit the play() and stop() signals, which are connected to the play() and stop() slots of <a href="qmediaplayer.html">QMediaPlayer</a>.</p>
<pre class="cpp">

  connect(controls<span class="operator">,</span> SIGNAL(play())<span class="operator">,</span> player<span class="operator">,</span> SLOT(play()));
  connect(controls<span class="operator">,</span> SIGNAL(pause())<span class="operator">,</span> player<span class="operator">,</span> SLOT(pause()));
  connect(controls<span class="operator">,</span> SIGNAL(stop())<span class="operator">,</span> player<span class="operator">,</span> SLOT(stop()));

</pre>
<p>We can get the volume (and set our user interface representation)</p>
<pre class="cpp">

  controls<span class="operator">-</span><span class="operator">&gt;</span>setVolume(player<span class="operator">-</span><span class="operator">&gt;</span>volume());

</pre>
<p>and we can make widget 'volume' changes change the volume</p>
<pre class="cpp">

  connect(controls<span class="operator">,</span> SIGNAL(changeVolume(<span class="type">int</span>))<span class="operator">,</span> player<span class="operator">,</span> SLOT(setVolume(<span class="type">int</span>)));

</pre>
<p>The example also allows us to change various video properties by means of the <a href="qvideowidget.html">QVideoWidget</a> object. We can go to Full Screen mode with a single button click, and back again. Or if we press the &quot;Color Options&quot; dialog button we can have access to more subtle influences. The dialog has a set of sliders so that we can change the brightness, contrast, hue and saturation of the video being watched. The connect() statements are in pairs so that changes to either the user interface widget (the relevant slider) or the <a href="qvideowidget.html">QVideoWidget</a> object will update the other object.</p>
<pre class="cpp">

  connect(brightnessSlider<span class="operator">,</span> SIGNAL(sliderMoved(<span class="type">int</span>))<span class="operator">,</span> videoWidget<span class="operator">,</span>
      SLOT(setBrightness(<span class="type">int</span>)));
  connect(videoWidget<span class="operator">,</span> SIGNAL(brightnessChanged(<span class="type">int</span>))<span class="operator">,</span>
      brightnessSlider<span class="operator">,</span> SLOT(setValue(<span class="type">int</span>)));

  connect(contrastSlider<span class="operator">,</span> SIGNAL(sliderMoved(<span class="type">int</span>))<span class="operator">,</span> videoWidget<span class="operator">,</span>
      SLOT(setContrast(<span class="type">int</span>)));
  connect(videoWidget<span class="operator">,</span> SIGNAL(contrastChanged(<span class="type">int</span>))<span class="operator">,</span> contrastSlider<span class="operator">,</span>
      SLOT(setValue(<span class="type">int</span>)));

  connect(hueSlider<span class="operator">,</span> SIGNAL(sliderMoved(<span class="type">int</span>))<span class="operator">,</span> videoWidget<span class="operator">,</span>
      SLOT(setHue(<span class="type">int</span>)));
  connect(videoWidget<span class="operator">,</span> SIGNAL(hueChanged(<span class="type">int</span>))<span class="operator">,</span> hueSlider<span class="operator">,</span>
      SLOT(setValue(<span class="type">int</span>)));

  connect(saturationSlider<span class="operator">,</span> SIGNAL(sliderMoved(<span class="type">int</span>))<span class="operator">,</span> videoWidget<span class="operator">,</span>
      SLOT(setSaturation(<span class="type">int</span>)));
  connect(videoWidget<span class="operator">,</span> SIGNAL(saturationChanged(<span class="type">int</span>))<span class="operator">,</span>
      saturationSlider<span class="operator">,</span> SLOT(setValue(<span class="type">int</span>)));

</pre>
<p>Files:</p>
<ul>
<li><a href="qtmultimedia-multimediawidgets-player-histogramwidget-cpp.html">multimediawidgets/player/histogramwidget.cpp</a></li>
<li><a href="qtmultimedia-multimediawidgets-player-histogramwidget-h.html">multimediawidgets/player/histogramwidget.h</a></li>
<li><a href="qtmultimedia-multimediawidgets-player-player-cpp.html">multimediawidgets/player/player.cpp</a></li>
<li><a href="qtmultimedia-multimediawidgets-player-player-h.html">multimediawidgets/player/player.h</a></li>
<li><a href="qtmultimedia-multimediawidgets-player-playercontrols-cpp.html">multimediawidgets/player/playercontrols.cpp</a></li>
<li><a href="qtmultimedia-multimediawidgets-player-playercontrols-h.html">multimediawidgets/player/playercontrols.h</a></li>
<li><a href="qtmultimedia-multimediawidgets-player-playlistmodel-cpp.html">multimediawidgets/player/playlistmodel.cpp</a></li>
<li><a href="qtmultimedia-multimediawidgets-player-playlistmodel-h.html">multimediawidgets/player/playlistmodel.h</a></li>
<li><a href="qtmultimedia-multimediawidgets-player-videowidget-cpp.html">multimediawidgets/player/videowidget.cpp</a></li>
<li><a href="qtmultimedia-multimediawidgets-player-videowidget-h.html">multimediawidgets/player/videowidget.h</a></li>
<li><a href="qtmultimedia-multimediawidgets-player-main-cpp.html">multimediawidgets/player/main.cpp</a></li>
<li><a href="qtmultimedia-multimediawidgets-player-player-pro.html">multimediawidgets/player/player.pro</a></li>
</ul>
</div>
<!-- @@@multimediawidgets/player -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</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>