Doc: Fixed random QDoc warnings
- Fixed \snippet paths
- Minor language edits
- Removed unnecessary multiple page commands in a single comment
block. For example, \fn and \qmlsignal in a single comment block
is not allowed. Such instances must be documented in separate
comment blocks.
Change-Id: I65f4518499e2600c4e1807356d4116c575e48c19
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
(cherry picked from commit 51334d2995)
This commit is contained in:
committed by
The Qt Project
parent
c6b54f3521
commit
8e6ffcc6af
@@ -72,7 +72,7 @@ the following items:
|
|||||||
Each scene in the flickable list is implemented in its own QML file - for
|
Each scene in the flickable list is implemented in its own QML file - for
|
||||||
example the video-basic scene (which just displays a static \l{VideoOutput}
|
example the video-basic scene (which just displays a static \l{VideoOutput}
|
||||||
in the center of the screen) is implemented in the
|
in the center of the screen) is implemented in the
|
||||||
\l{multimedia/ideo/qmlvideo/qml/qmlvideo/VideoBasic.qml}{VideoBasic.qml} file. As you
|
\l{multimedia/video/qmlvideo/qml/qmlvideo/VideoBasic.qml}{VideoBasic.qml} file. As you
|
||||||
can see from the code, this makes use of a type of inheritance: a
|
can see from the code, this makes use of a type of inheritance: a
|
||||||
\l{multimedia/video/qmlvideo/qml/qmlvideo/VideoBasic.qml}{VideoBasic} item ...
|
\l{multimedia/video/qmlvideo/qml/qmlvideo/VideoBasic.qml}{VideoBasic} item ...
|
||||||
|
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ bool QDeclarativeAudioSample::isPreloaded() const
|
|||||||
/*!
|
/*!
|
||||||
\qmlproperty bool QtAudioEngine1::AudioSample::loaded
|
\qmlproperty bool QtAudioEngine1::AudioSample::loaded
|
||||||
|
|
||||||
This property holds indicates whether this sample has been loaded into memory or not.
|
This property indicates whether this sample has been loaded into memory or not.
|
||||||
*/
|
*/
|
||||||
bool QDeclarativeAudioSample::isLoaded() const
|
bool QDeclarativeAudioSample::isLoaded() const
|
||||||
{
|
{
|
||||||
@@ -236,16 +236,6 @@ QSoundBuffer* QDeclarativeAudioSample::soundBuffer() const
|
|||||||
return m_soundBuffer;
|
return m_soundBuffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
|
||||||
\omit
|
|
||||||
Note: This QML property is documented twice.
|
|
||||||
\qmlproperty bool QtAudioEngine1::AudioSample::loaded
|
|
||||||
|
|
||||||
This property holds the load status of the audio sample.
|
|
||||||
\endomit
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\qmlsignal QtAudioEngine1::AudioSample::onLoadedChanged()
|
\qmlsignal QtAudioEngine1::AudioSample::onLoadedChanged()
|
||||||
|
|
||||||
|
|||||||
@@ -630,21 +630,18 @@ void QDeclarativeCamera::setDigitalZoom(qreal value)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn void QDeclarativeCamera::opticalZoomChanged(qreal zoom)
|
|
||||||
\qmlsignal Camera::opticalZoomChanged(zoom)
|
\qmlsignal Camera::opticalZoomChanged(zoom)
|
||||||
|
|
||||||
The optical zoom setting has changed to \a zoom.
|
The optical zoom setting has changed to \a zoom.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn void QDeclarativeCamera::digitalZoomChanged(qreal zoom)
|
|
||||||
\qmlsignal Camera::digitalZoomChanged(zoom)
|
\qmlsignal Camera::digitalZoomChanged(zoom)
|
||||||
|
|
||||||
The digital zoom setting has changed to \a zoom.
|
The digital zoom setting has changed to \a zoom.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn void QDeclarativeCamera::maximumOpticalZoomChanged(qreal zoom)
|
|
||||||
\qmlsignal Camera::maximumOpticalZoomChanged(zoom)
|
\qmlsignal Camera::maximumOpticalZoomChanged(zoom)
|
||||||
|
|
||||||
The maximum optical zoom setting has changed to \a zoom. This
|
The maximum optical zoom setting has changed to \a zoom. This
|
||||||
@@ -653,7 +650,6 @@ void QDeclarativeCamera::setDigitalZoom(qreal value)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn void QDeclarativeCamera::maximumDigitalZoomChanged(qreal zoom)
|
|
||||||
\qmlsignal Camera::maximumDigitalZoomChanged(zoom)
|
\qmlsignal Camera::maximumDigitalZoomChanged(zoom)
|
||||||
|
|
||||||
The maximum digital zoom setting has changed to \a zoom. This
|
The maximum digital zoom setting has changed to \a zoom. This
|
||||||
|
|||||||
@@ -80,15 +80,15 @@ QT_BEGIN_NAMESPACE
|
|||||||
|
|
||||||
For example, to select automatic shutter speed selection:
|
For example, to select automatic shutter speed selection:
|
||||||
|
|
||||||
\qml
|
\code
|
||||||
camera.exposure.setAutoShutterSpeed()
|
camera.exposure.setAutoShutterSpeed()
|
||||||
\endqml
|
\endcode
|
||||||
|
|
||||||
Or for a specific shutter speed:
|
Or for a specific shutter speed:
|
||||||
|
|
||||||
\qml
|
\code
|
||||||
camera.exposure.manualShutterSpeed = 0.01 // 10ms
|
camera.exposure.manualShutterSpeed = 0.01 // 10ms
|
||||||
\endqml
|
\endcode
|
||||||
|
|
||||||
You can only choose one or the other mode.
|
You can only choose one or the other mode.
|
||||||
*/
|
*/
|
||||||
@@ -331,7 +331,6 @@ void QDeclarativeCameraExposure::setAutoIsoSensitivity()
|
|||||||
*/
|
*/
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty enumeration QtMultimedia5::CameraExposure::exposureMode
|
\qmlproperty enumeration QtMultimedia5::CameraExposure::exposureMode
|
||||||
\property QDeclarativeCameraExposure::exposureMode
|
|
||||||
|
|
||||||
This property holds the camera exposure mode.
|
This property holds the camera exposure mode.
|
||||||
|
|
||||||
@@ -402,7 +401,6 @@ void QDeclarativeCameraExposure::setSpotMeteringPoint(const QPointF &point)
|
|||||||
*/
|
*/
|
||||||
/*!
|
/*!
|
||||||
\qmlproperty enumeration QtMultimedia5::CameraExposure::meteringMode
|
\qmlproperty enumeration QtMultimedia5::CameraExposure::meteringMode
|
||||||
\property QDeclarativeCameraExposure::meteringMode
|
|
||||||
|
|
||||||
This property holds the camera metering mode (how exposure is balanced).
|
This property holds the camera metering mode (how exposure is balanced).
|
||||||
|
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ public:
|
|||||||
supported format that is as close as possible to the format with
|
supported format that is as close as possible to the format with
|
||||||
nearestFormat(). For instance:
|
nearestFormat(). For instance:
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/audio.cpp Setting audio format
|
\snippet multimedia-snippets/audio.cpp Setting audio format
|
||||||
|
|
||||||
The static
|
The static
|
||||||
functions defaultInputDevice(), defaultOutputDevice(), and
|
functions defaultInputDevice(), defaultOutputDevice(), and
|
||||||
@@ -149,7 +149,7 @@ public:
|
|||||||
|
|
||||||
For instance:
|
For instance:
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/audio.cpp Dumping audio formats
|
\snippet multimedia-snippets/audio.cpp Dumping audio formats
|
||||||
|
|
||||||
In this code sample, we loop through all devices that are able to output
|
In this code sample, we loop through all devices that are able to output
|
||||||
sound, i.e., play an audio stream in a supported format. For each device we
|
sound, i.e., play an audio stream in a supported format. For each device we
|
||||||
|
|||||||
@@ -76,9 +76,9 @@ QT_BEGIN_NAMESPACE
|
|||||||
with a QIODevice opened for writing. For instance, to record to a
|
with a QIODevice opened for writing. For instance, to record to a
|
||||||
file, you can:
|
file, you can:
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/audio.cpp Audio input class members
|
\snippet multimedia-snippets/audio.cpp Audio input class members
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/audio.cpp Audio input setup
|
\snippet multimedia-snippets/audio.cpp Audio input setup
|
||||||
|
|
||||||
This will start recording if the format specified is supported by
|
This will start recording if the format specified is supported by
|
||||||
the input device (you can check this with
|
the input device (you can check this with
|
||||||
@@ -86,7 +86,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
snags, use the error() function to check what went wrong. We stop
|
snags, use the error() function to check what went wrong. We stop
|
||||||
recording in the \c stopRecording() slot.
|
recording in the \c stopRecording() slot.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/audio.cpp Audio input stop recording
|
\snippet multimedia-snippets/audio.cpp Audio input stop recording
|
||||||
|
|
||||||
At any point in time, QAudioInput will be in one of four states:
|
At any point in time, QAudioInput will be in one of four states:
|
||||||
active, suspended, stopped, or idle. These states are specified by
|
active, suspended, stopped, or idle. These states are specified by
|
||||||
@@ -108,7 +108,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
an error is encountered. Connect to the stateChanged() signal to
|
an error is encountered. Connect to the stateChanged() signal to
|
||||||
handle the error:
|
handle the error:
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/audio.cpp Audio input state changed
|
\snippet multimedia-snippets/audio.cpp Audio input state changed
|
||||||
|
|
||||||
\sa QAudioOutput, QAudioDeviceInfo
|
\sa QAudioOutput, QAudioDeviceInfo
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -72,9 +72,9 @@ QT_BEGIN_NAMESPACE
|
|||||||
needs from the io device. So playing back an audio file is as
|
needs from the io device. So playing back an audio file is as
|
||||||
simple as:
|
simple as:
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/audio.cpp Audio output class members
|
\snippet multimedia-snippets/audio.cpp Audio output class members
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/audio.cpp Audio output setup
|
\snippet multimedia-snippets/audio.cpp Audio output setup
|
||||||
|
|
||||||
The file will start playing assuming that the audio system and
|
The file will start playing assuming that the audio system and
|
||||||
output device support it. If you run out of luck, check what's
|
output device support it. If you run out of luck, check what's
|
||||||
@@ -82,7 +82,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
|
|
||||||
After the file has finished playing, we need to stop the device:
|
After the file has finished playing, we need to stop the device:
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/audio.cpp Audio output state changed
|
\snippet multimedia-snippets/audio.cpp Audio output state changed
|
||||||
|
|
||||||
At any given time, the QAudioOutput will be in one of four states:
|
At any given time, the QAudioOutput will be in one of four states:
|
||||||
active, suspended, stopped, or idle. These states are described
|
active, suspended, stopped, or idle. These states are described
|
||||||
@@ -110,7 +110,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
You can check for errors by connecting to the stateChanged()
|
You can check for errors by connecting to the stateChanged()
|
||||||
signal:
|
signal:
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/audio.cpp Audio output state changed
|
\snippet multimedia-snippets/audio.cpp Audio output state changed
|
||||||
|
|
||||||
\sa QAudioInput, QAudioDeviceInfo
|
\sa QAudioInput, QAudioDeviceInfo
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
/*!
|
/*!
|
||||||
\class QSound
|
\class QSound
|
||||||
\brief The QSound class provides a method to play .wav sound files.
|
\brief The QSound class provides a method to play .wav sound files.
|
||||||
|
\inmodule QtMultimedia
|
||||||
\ingroup multimedia
|
\ingroup multimedia
|
||||||
\ingroup multimedia_audio
|
\ingroup multimedia_audio
|
||||||
|
|
||||||
@@ -55,12 +55,12 @@
|
|||||||
applications: asynchronously playing a sound file. This is most
|
applications: asynchronously playing a sound file. This is most
|
||||||
easily accomplished using the static play() function:
|
easily accomplished using the static play() function:
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/qsound.cpp 0
|
\snippet multimedia-snippets/qsound.cpp 0
|
||||||
|
|
||||||
Alternatively, create a QSound object from the sound file first
|
Alternatively, create a QSound object from the sound file first
|
||||||
and then call the play() slot:
|
and then call the play() slot:
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/qsound.cpp 1
|
\snippet multimedia-snippets/qsound.cpp 1
|
||||||
|
|
||||||
Once created a QSound object can be queried for its fileName() and
|
Once created a QSound object can be queried for its fileName() and
|
||||||
total number of loops() (i.e. the number of times the sound will
|
total number of loops() (i.e. the number of times the sound will
|
||||||
|
|||||||
@@ -67,13 +67,13 @@ QT_BEGIN_NAMESPACE
|
|||||||
This example shows how a looping, somewhat quiet sound effect
|
This example shows how a looping, somewhat quiet sound effect
|
||||||
can be played:
|
can be played:
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/qsound.cpp 2
|
\snippet multimedia-snippets/qsound.cpp 2
|
||||||
|
|
||||||
Typically the sound effect should be reused, which allows all the
|
Typically the sound effect should be reused, which allows all the
|
||||||
parsing and preparation to be done ahead of time, and only triggered
|
parsing and preparation to be done ahead of time, and only triggered
|
||||||
when necessary. This assists with lower latency audio playback.
|
when necessary. This assists with lower latency audio playback.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/qsound.cpp 3
|
\snippet multimedia-snippets/qsound.cpp 3
|
||||||
|
|
||||||
Since QSoundEffect requires slightly more resources to achieve lower
|
Since QSoundEffect requires slightly more resources to achieve lower
|
||||||
latency playback, the platform may limit the number of simultaneously playing
|
latency playback, the platform may limit the number of simultaneously playing
|
||||||
@@ -107,7 +107,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
|
|
||||||
The following example plays a WAV file on mouse click.
|
The following example plays a WAV file on mouse click.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/soundeffect.qml complete snippet
|
\snippet multimedia-snippets/soundeffect.qml complete snippet
|
||||||
|
|
||||||
Since SoundEffect requires slightly more resources to achieve lower
|
Since SoundEffect requires slightly more resources to achieve lower
|
||||||
latency playback, the platform may limit the number of simultaneously playing
|
latency playback, the platform may limit the number of simultaneously playing
|
||||||
@@ -340,7 +340,7 @@ bool QSoundEffect::isLoaded() const
|
|||||||
|
|
||||||
This is the default method for SoundEffect.
|
This is the default method for SoundEffect.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/soundeffect.qml play sound on click
|
\snippet multimedia-snippets/soundeffect.qml play sound on click
|
||||||
*/
|
*/
|
||||||
/*!
|
/*!
|
||||||
\fn QSoundEffect::play()
|
\fn QSoundEffect::play()
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
|
|
||||||
See the \l{Camera Overview}{camera overview} for more information.
|
See the \l{Camera Overview}{camera overview} for more information.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/media.cpp Request control
|
\snippet multimedia-snippets/media.cpp Request control
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ public:
|
|||||||
rectangles around areas of the camera frame that are in focus, or changing the
|
rectangles around areas of the camera frame that are in focus, or changing the
|
||||||
color of a zone as it comes into focus.
|
color of a zone as it comes into focus.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/camera.cpp Camera focus zones
|
\snippet multimedia-snippets/camera.cpp Camera focus zones
|
||||||
|
|
||||||
\sa QCameraFocus
|
\sa QCameraFocus
|
||||||
*/
|
*/
|
||||||
@@ -291,7 +291,7 @@ void QCameraFocusZone::setStatus(QCameraFocusZone::FocusZoneStatus status)
|
|||||||
interesting area of the viewfinder for the hardware to attempt
|
interesting area of the viewfinder for the hardware to attempt
|
||||||
to focus on.
|
to focus on.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/camera.cpp Camera custom zoom
|
\snippet multimedia-snippets/camera.cpp Camera custom zoom
|
||||||
|
|
||||||
Zooming can be accomplished in a number of ways - usually the more
|
Zooming can be accomplished in a number of ways - usually the more
|
||||||
expensive but higher quality approach is an optical zoom, which allows
|
expensive but higher quality approach is an optical zoom, which allows
|
||||||
@@ -303,7 +303,7 @@ void QCameraFocusZone::setStatus(QCameraFocusZone::FocusZoneStatus status)
|
|||||||
checked. The \l zoomTo() method allows changing both optical and
|
checked. The \l zoomTo() method allows changing both optical and
|
||||||
digital zoom at once.
|
digital zoom at once.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/camera.cpp Camera combined zoom
|
\snippet multimedia-snippets/camera.cpp Camera combined zoom
|
||||||
|
|
||||||
\section2 Some notes on autofocus
|
\section2 Some notes on autofocus
|
||||||
Some hardware supports a movable focus lens assembly, and typically
|
Some hardware supports a movable focus lens assembly, and typically
|
||||||
@@ -319,7 +319,7 @@ void QCameraFocusZone::setStatus(QCameraFocusZone::FocusZoneStatus status)
|
|||||||
are in focus or are being used for autofocusing via the \l focusZones()
|
are in focus or are being used for autofocusing via the \l focusZones()
|
||||||
property:
|
property:
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/camera.cpp Camera focus zones
|
\snippet multimedia-snippets/camera.cpp Camera focus zones
|
||||||
|
|
||||||
\sa QCameraFocusZone
|
\sa QCameraFocusZone
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -69,9 +69,9 @@ QT_BEGIN_NAMESPACE
|
|||||||
It's not intended to be used alone but for accessing the media
|
It's not intended to be used alone but for accessing the media
|
||||||
recording functions of other media objects, like QCamera.
|
recording functions of other media objects, like QCamera.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/camera.cpp Camera
|
\snippet multimedia-snippets/camera.cpp Camera
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/camera.cpp Camera keys
|
\snippet multimedia-snippets/camera.cpp Camera keys
|
||||||
|
|
||||||
\sa QCamera
|
\sa QCamera
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -87,11 +87,11 @@ QT_BEGIN_NAMESPACE
|
|||||||
For example, you can set the white balance (or color temperature) used
|
For example, you can set the white balance (or color temperature) used
|
||||||
for processing images:
|
for processing images:
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/camera.cpp Camera image whitebalance
|
\snippet multimedia-snippets/camera.cpp Camera image whitebalance
|
||||||
|
|
||||||
Or adjust the amount of denoising performed:
|
Or adjust the amount of denoising performed:
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/camera.cpp Camera image denoising
|
\snippet multimedia-snippets/camera.cpp Camera image denoising
|
||||||
|
|
||||||
In some cases changing these settings may result in a longer delay
|
In some cases changing these settings may result in a longer delay
|
||||||
before an image is ready.
|
before an image is ready.
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
QAbstractVideoSurface may be set as the video render target of a
|
QAbstractVideoSurface may be set as the video render target of a
|
||||||
QMediaService.
|
QMediaService.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/video.cpp Video renderer control
|
\snippet multimedia-snippets/video.cpp Video renderer control
|
||||||
|
|
||||||
QVideoRendererControl is one of a number of possible video output controls.
|
QVideoRendererControl is one of a number of possible video output controls.
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
should be rendered to, and the aspectRatioMode() property indicates how the
|
should be rendered to, and the aspectRatioMode() property indicates how the
|
||||||
video should be scaled to fit the displayRect().
|
video should be scaled to fit the displayRect().
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/video.cpp Video window control
|
\snippet multimedia-snippets/video.cpp Video window control
|
||||||
|
|
||||||
QVideoWindowControl is one of a number of possible video output controls.
|
QVideoWindowControl is one of a number of possible video output controls.
|
||||||
|
|
||||||
|
|||||||
@@ -104,13 +104,16 @@ In QML, you can use \l Camera and \l VideoOutput together to show a
|
|||||||
simple viewfinder:
|
simple viewfinder:
|
||||||
|
|
||||||
\qml
|
\qml
|
||||||
|
import QtQuick 2.0
|
||||||
|
import QtMultimedia 5.0
|
||||||
|
|
||||||
|
VideoOutput {
|
||||||
|
source: camera
|
||||||
|
|
||||||
Camera {
|
Camera {
|
||||||
id: camera
|
id: camera
|
||||||
// You can adjust various settings in here
|
// You can adjust various settings in here
|
||||||
}
|
}
|
||||||
|
|
||||||
VideoOutput {
|
|
||||||
source: camera
|
|
||||||
}
|
}
|
||||||
\endqml
|
\endqml
|
||||||
|
|
||||||
|
|||||||
@@ -176,14 +176,14 @@ change when porting code.
|
|||||||
|
|
||||||
\section2 QML Types
|
\section2 QML Types
|
||||||
The following types are accessed by using:
|
The following types are accessed by using:
|
||||||
\qml
|
\code
|
||||||
import QtMultimedia 5.0
|
import QtMultimedia 5.0
|
||||||
\endqml
|
\endcode
|
||||||
\annotatedlist multimedia_qml
|
\annotatedlist multimedia_qml
|
||||||
The following types are accessed by using \l {Positional Audio} {QtAudioEngine}:
|
The following types are accessed by using \l {Positional Audio} {QtAudioEngine}:
|
||||||
\qml
|
\code
|
||||||
import QtAudioEngine 1.0
|
import QtAudioEngine 1.0
|
||||||
\endqml
|
\endcode
|
||||||
\annotatedlist multimedia_audioengine
|
\annotatedlist multimedia_audioengine
|
||||||
|
|
||||||
\section2 Multimedia Classes
|
\section2 Multimedia Classes
|
||||||
|
|||||||
@@ -72,12 +72,12 @@ QT_BEGIN_NAMESPACE
|
|||||||
main or canonical URL with additional information attached. When provided
|
main or canonical URL with additional information attached. When provided
|
||||||
with a QMediaContent playback may be able to commence.
|
with a QMediaContent playback may be able to commence.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/media.cpp Player
|
\snippet multimedia-snippets/media.cpp Player
|
||||||
|
|
||||||
QVideoWidget can be used with QMediaPlayer for video rendering and QMediaPlaylist
|
QVideoWidget can be used with QMediaPlayer for video rendering and QMediaPlaylist
|
||||||
for accessing playlist functionality.
|
for accessing playlist functionality.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/media.cpp Movie playlist
|
\snippet multimedia-snippets/media.cpp Movie playlist
|
||||||
|
|
||||||
Since QMediaPlayer is a QMediaObject, you can use several of the QMediaObject
|
Since QMediaPlayer is a QMediaObject, you can use several of the QMediaObject
|
||||||
functions for things like:
|
functions for things like:
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ namespace
|
|||||||
QMediaPlaylist allows to access the service intrinsic playlist functionality
|
QMediaPlaylist allows to access the service intrinsic playlist functionality
|
||||||
if available, otherwise it provides the the local memory playlist implementation.
|
if available, otherwise it provides the the local memory playlist implementation.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/media.cpp Movie playlist
|
\snippet multimedia-snippets/media.cpp Movie playlist
|
||||||
|
|
||||||
Depending on playlist source implementation, most of the playlist mutating
|
Depending on playlist source implementation, most of the playlist mutating
|
||||||
operations can be asynchronous.
|
operations can be asynchronous.
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
\ingroup multimedia
|
\ingroup multimedia
|
||||||
\ingroup multimedia_control
|
\ingroup multimedia_control
|
||||||
\ingroup multimedia_core
|
\ingroup multimedia_core
|
||||||
|
\inmodule QtMultimedia
|
||||||
|
|
||||||
Media services provide implementations of the functionality promised
|
Media services provide implementations of the functionality promised
|
||||||
by media objects, and allow multiple providers to implement a QMediaObject.
|
by media objects, and allow multiple providers to implement a QMediaObject.
|
||||||
|
|||||||
@@ -640,7 +640,7 @@ QMediaServiceProvider *QMediaServiceProvider::defaultServiceProvider()
|
|||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class QMediaServiceProviderPlugin
|
\class QMediaServiceProviderPlugin
|
||||||
|
\inmodule QtMultimedia
|
||||||
\brief The QMediaServiceProviderPlugin class interface provides an interface for QMediaService
|
\brief The QMediaServiceProviderPlugin class interface provides an interface for QMediaService
|
||||||
plug-ins.
|
plug-ins.
|
||||||
|
|
||||||
@@ -667,6 +667,7 @@ QMediaServiceProvider *QMediaServiceProvider::defaultServiceProvider()
|
|||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class QMediaServiceSupportedFormatsInterface
|
\class QMediaServiceSupportedFormatsInterface
|
||||||
|
\inmodule QtMultimedia
|
||||||
\brief The QMediaServiceSupportedFormatsInterface class interface
|
\brief The QMediaServiceSupportedFormatsInterface class interface
|
||||||
identifies if a media service plug-in supports a media format.
|
identifies if a media service plug-in supports a media format.
|
||||||
|
|
||||||
@@ -694,6 +695,7 @@ QMediaServiceProvider *QMediaServiceProvider::defaultServiceProvider()
|
|||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class QMediaServiceSupportedDevicesInterface
|
\class QMediaServiceSupportedDevicesInterface
|
||||||
|
\inmodule QtMultimedia
|
||||||
\brief The QMediaServiceSupportedDevicesInterface class interface
|
\brief The QMediaServiceSupportedDevicesInterface class interface
|
||||||
identifies the devices supported by a media service plug-in.
|
identifies the devices supported by a media service plug-in.
|
||||||
|
|
||||||
@@ -720,6 +722,7 @@ QMediaServiceProvider *QMediaServiceProvider::defaultServiceProvider()
|
|||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class QMediaServiceFeaturesInterface
|
\class QMediaServiceFeaturesInterface
|
||||||
|
\inmodule QtMultimedia
|
||||||
\brief The QMediaServiceFeaturesInterface class interface identifies
|
\brief The QMediaServiceFeaturesInterface class interface identifies
|
||||||
features supported by a media service plug-in.
|
features supported by a media service plug-in.
|
||||||
|
|
||||||
|
|||||||
@@ -313,6 +313,7 @@ void QMediaTimeRangePrivate::removeInterval(const QMediaTimeInterval &interval)
|
|||||||
\brief The QMediaTimeRange class represents a set of zero or more disjoint
|
\brief The QMediaTimeRange class represents a set of zero or more disjoint
|
||||||
time intervals.
|
time intervals.
|
||||||
\ingroup multimedia
|
\ingroup multimedia
|
||||||
|
\inmodule QtMultimedia
|
||||||
|
|
||||||
\reentrant
|
\reentrant
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
\inmodule QtMultimediaWidgets
|
\inmodule QtMultimediaWidgets
|
||||||
\ingroup camera
|
\ingroup camera
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/camera.cpp Camera
|
\snippet multimedia-snippets/camera.cpp Camera
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ void QGraphicsVideoItemPrivate::_q_serviceDestroyed()
|
|||||||
is attached to a media object by passing a pointer to the QMediaObject
|
is attached to a media object by passing a pointer to the QMediaObject
|
||||||
to the setMediaObject() function.
|
to the setMediaObject() function.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/video.cpp Video graphics item
|
\snippet multimedia-snippets/video.cpp Video graphics item
|
||||||
|
|
||||||
\b {Note}: Only a single display output can be attached to a media
|
\b {Note}: Only a single display output can be attached to a media
|
||||||
object at one time.
|
object at one time.
|
||||||
|
|||||||
@@ -591,7 +591,7 @@ void QVideoWidgetPrivate::_q_dimensionsChanged()
|
|||||||
to media object by passing a pointer to the QMediaObject in its
|
to media object by passing a pointer to the QMediaObject in its
|
||||||
constructor, and detached by destroying the QVideoWidget.
|
constructor, and detached by destroying the QVideoWidget.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/video.cpp Video widget
|
\snippet multimedia-snippets/video.cpp Video widget
|
||||||
|
|
||||||
\b {Note}: Only a single display output can be attached to a media
|
\b {Note}: Only a single display output can be attached to a media
|
||||||
object at one time.
|
object at one time.
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
video widget implemented by the control's media service. This widget is
|
video widget implemented by the control's media service. This widget is
|
||||||
owned by the media service and so care should be taken not to delete it.
|
owned by the media service and so care should be taken not to delete it.
|
||||||
|
|
||||||
\snippet doc/src/snippets/multimedia-snippets/video.cpp Video widget control
|
\snippet multimedia-snippets/video.cpp Video widget control
|
||||||
|
|
||||||
QVideoWidgetControl is one of number of possible video output controls.
|
QVideoWidgetControl is one of number of possible video output controls.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user