\snippet ../../demos/player/player.cpp 2
-
+\omit
\section2 Radio
QRadioTunerControl is a pure virtual base class that will be the basis for
implemented the developer will be able to quickly produce an application
that supports the typical uses of an FM radio including tuning, volume,
start, stop and various other controls.
-
-\section1 Extending the API for Symbian and Maemo
-
-
-For the developer who wishes to extend the functionality of the Multimedia
-classes there are several classes of particular importance. The default
-classes are QMediaService, QMediaServiceProvider and QMediaControl.
-
-Basically, the idea is that to use the Multimedia API you would use these
-three classes or classes derived from them as follows
-
- \list
- \o \l QMediaServiceProvider is used by the top level client class to request a service. The top level class knowing what kind of service it needs.
-
- \o \l QMediaService provides a service and when asked by the top level object, say a component, will return a QMediaControl object.
-
- \o \l QMediaControl allows the control of the service using a known interface.
- \endlist
-
-Consider a developer creating, for example, a media player class called MyPlayer.
-It may have special requirements beyond ordinary media players and so may
-need a custom service and a custom control. We can subclass \l QMediaServiceProvider
-to create our MyServiceProvider class. Also we will create a
-MyMediaService, and the MyMediaControl to manipulate the media service.
-
-The MyPlayer object calls MyServiceProvider::requestService() to get an
-instance of MyMediaService. Then the MyPlayer object calls this service
-object it has just received and calling \l {QMediaService::requestControl()}{requestControl()}
-it will receive the control object derived from QMediaControl. Now we have
-all the parts necessary for our media application. We have the service
-provider, the service it provides and the control used to manipulate the
-service. Since our MyPlayer object has instances of the service and its
-control then it would be possible for these to be used by associated classes
-that could do additional actions, perhaps with their own control since the
-parameter to requestControl() is a c-type string, \i {const char *}, for the
-interface.
-
-
-\section2 Adding a Media Service Provider
-
-The base class for creating new service providers is \l{QMediaServiceProvider}.
-The user must implement the \l{QMediaServiceProvider::requestService()}{requestService()}
-function
-
-\code
- QMediaService* requestService(const QByteArray &type, const QMediaServiceProviderHint &hint);
-\endcode
-
-The details of implementation will depend on the provider. Looking at the
-class \l QMediaServiceProvider for the default implementation. Notice that
-\l {QMediaServiceProvider::requestService()}{requestService()} uses the
-\l QMediaServiceProviderHint to look for the appropriate plugin and then to
-insert it into the plugin map. However, for a specific service provider there
-is probably no need for this approach, it will simply depend on what the
-developer wants to implement.
-
-Other methods that may be overloaded
-\code
- void releaseService(QMediaService *service);
-
- QtMediaServices::SupportEstimate hasSupport(const QByteArray &serviceType,
- const QString &mimeType,
- const QStringList& codecs,
- int flags) const;
-
- QStringList supportedMimeTypes(const QByteArray &serviceType, int flags) const;
-
- QList<QByteArray> devices(const QByteArray &serviceType) const;
-
- QString deviceDescription(const QByteArray &serviceType, const QByteArray &device);
-\endcode
-
-The choice of what needs to be done depends on what the developer wishes to do with the service.
+\endomit
\section1 Camera Support
cancellation can be done by calling \l {QCamera::unlock()}{unlock}(QCamera::LockFocus).
-
-\section2 Camera Controls
-
- \table
- \header
- \o Control Name
- \o Description
- \row
- \o camera
- \o The interface for system camera devices
- \row
- \o exposure
- \o Includes: flash mode; flash power; metering mode; aperture; shutter speed, iso setting
- \row
- \o focus
- \o Includes: optical zoom; digital zoom; focus point; focus zones
- \row
- \o image processing
- \o White balance; contrast; saturation; sharpen; denoise
- \row
- \o locks
- \o Handles the locking and unlocking of camera devices
- \endtable
-
-
-\section2 Classes
-\annotatedlist camera
-
-
-
-
\target qtmultimediakit examples
\section1 Examples
\section1 Reference documentation
-\section2 Main classes
+\section2 Main audio and video classes
\annotatedlist multimedia
+\section2 Camera classes
+
+\annotatedlist camera
-\section2 Classes for service implementers.
+\section2 Advanced usage.
-\annotatedlist multimedia-serv
+For developers wishing to access some platform specific settings, or to
+port the Qt Multimedia APIs to a new platform or technology, see \l{Multimedia Backend Development}.
\section2 QML Elements
\list
--- /dev/null
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** GNU Free Documentation License
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file.
+**
+** Other Usage
+** Alternatively, this file may be used in accordance with the terms
+** and conditions contained in a signed written agreement between you
+** and Nokia.
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+/*!
+
+\page multimediabackend.html
+\brief Information for implementing a new multimedia backend.
+\ingroup mobility
+
+\tableofcontents
+
+\section1 Multimedia Backend Development
+
+In some cases the available cross-platform Multimedia APIs or implementations are not sufficient,
+or not immediately available on a certain platform. In some cases the multimedia
+implementation on a platform might expose certain extra properties or functionality
+that other platforms do not, or a finer degree of control might be possible. For these
+cases, it is possible to use extended controls directly.
+
+In addition, if you plan to port the Qt Multimedia APIs to a new platform, you do
+this by implementing certain control and service classes, as detailed below.
+
+\section1 Extending the API
+
+For the developer who wishes to extend the functionality of the Multimedia
+classes there are several classes of particular importance. The default
+classes are QMediaService, QMediaServiceProvider and QMediaControl.
+
+Basically, the idea is that to use the Multimedia API you would use these
+three classes or classes derived from them as follows
+
+ \list
+ \o \l QMediaServiceProvider is used by the top level client class to request a service. The top level class knowing what kind of service it needs.
+
+ \o \l QMediaService provides a service and when asked by the top level object, say a component, will return a QMediaControl object.
+
+ \o \l QMediaControl allows the control of the service using a known interface.
+ \endlist
+
+Consider a developer creating, for example, a media player class called MyPlayer.
+It may have special requirements beyond ordinary media players and so may
+need a custom service and a custom control. We can subclass \l QMediaServiceProvider
+to create our MyServiceProvider class. Also we will create a
+MyMediaService, and the MyMediaControl to manipulate the media service.
+
+The MyPlayer object calls MyServiceProvider::requestService() to get an
+instance of MyMediaService. Then the MyPlayer object calls this service
+object it has just received and calling \l {QMediaService::requestControl()}{requestControl()}
+it will receive the control object derived from QMediaControl. Now we have
+all the parts necessary for our media application. We have the service
+provider, the service it provides and the control used to manipulate the
+service. Since our MyPlayer object has instances of the service and its
+control then it would be possible for these to be used by associated classes
+that could do additional actions, perhaps with their own control since the
+parameter to requestControl() is a c-type string, \i {const char *}, for the
+interface.
+
+
+\section2 Adding a Media Service Provider
+
+The base class for creating new service providers is \l{QMediaServiceProvider}.
+The user must implement the \l{QMediaServiceProvider::requestService()}{requestService()}
+function
+
+\code
+ QMediaService* requestService(const QByteArray &type, const QMediaServiceProviderHint &hint);
+\endcode
+
+The details of implementation will depend on the provider. Looking at the
+class \l QMediaServiceProvider for the default implementation. Notice that
+\l {QMediaServiceProvider::requestService()}{requestService()} uses the
+\l QMediaServiceProviderHint to look for the appropriate plugin and then to
+insert it into the plugin map. However, for a specific service provider there
+is probably no need for this approach, it will simply depend on what the
+developer wants to implement.
+
+Other methods that may be overloaded
+\code
+ void releaseService(QMediaService *service);
+
+ QtMediaServices::SupportEstimate hasSupport(const QByteArray &serviceType,
+ const QString &mimeType,
+ const QStringList& codecs,
+ int flags) const;
+
+ QStringList supportedMimeTypes(const QByteArray &serviceType, int flags) const;
+
+ QList<QByteArray> devices(const QByteArray &serviceType) const;
+
+ QString deviceDescription(const QByteArray &serviceType, const QByteArray &device);
+\endcode
+
+The choice of what needs to be done depends on what the developer wishes to do with the service.
+
+\section2 Classes for service implementers.
+
+\annotatedlist multimedia-serv
+
+*/
+
+
/*!
\class QAudioEncoderControl
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
\brief The QAudioEncoderControl class provides access to the settings of a
The format is of type QVideoFrame::PixelFormat.
\inmodule QtMultimediaKit
- \ingroup camera
+ \ingroup multimedia-serv
The interface name of QCameraCaptureBufferFormatControl is \c com.nokia.Qt.QCameraCaptureBufferFormatControl/1.0 as
defined in QCameraCaptureBufferFormatControl_iid.
Depending on backend capabilities capture to file, buffer or both can be supported.
\inmodule QtMultimediaKit
- \ingroup camera
+ \ingroup multimedia-serv
classes that control still cameras or video cameras.
\inmodule QtMultimediaKit
- \ingroup camera
+ \ingroup multimedia-serv
\since 1.1
This service is provided by a QMediaService object via
\brief The QCameraExposureControl class allows controlling camera exposure parameters.
\inmodule QtMultimediaKit
- \ingroup camera
+ \ingroup multimedia-serv
\since 1.1
You can adjust a number of parameters that will affect images and video taken with
\brief The QCameraFlashControl class allows controlling a camera's flash.
- \ingroup camera
+ \ingroup multimedia-serv
\inmodule QtMultimediaKit
\since 1.1
focusing related camera parameters.
\inmodule QtMultimediaKit
- \ingroup camera
+ \ingroup multimedia-serv
\since 1.1
The interface name of QCameraFocusControl is \c com.nokia.Qt.QCameraFocusControl/1.0 as
/*!
\class QCameraImageCapture
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup camera
\since 1.1
for image capture services.
\inmodule QtMultimediaKit
- \ingroup camera
+ \ingroup multimedia-serv
\since 1.1
classes that control still cameras or video cameras.
\inmodule QtMultimediaKit
- \ingroup camera
+ \ingroup multimedia-serv
\since 1.1
This service is provided by a QMediaService object via
\class QImageEncoderControl
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
\brief The QImageEncoderControl class provides access to the settings of a media service that
\brief The QMediaContainerControl class provides access to the output container format of a QMediaService
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
If a QMediaService supports writing encoded data it will implement
/*!
\class QMediaControl
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
\class QMediaNetworkAccessControl
\preliminary
\brief The QMediaNetworkAccessControl class allows the setting of the Network Access Point for media related activities.
- \ingroup multimedia
+ \ingroup multimedia-serv
\inmodule QtMultimediaKit
\since 1.2
/*!
\class QMediaPlayerControl
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
/*!
\class QMediaPlaylistControl
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
/*!
\class QMediaPlaylistSourceControl
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
/*!
\class QMediaRecorderControl
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
\brief The QMediaService class provides a common base class for media
service implementations.
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
\brief The QMediaServiceProviderHint class describes what is required of a QMediaService.
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
The QMediaServiceProvider class uses hints to select an appropriate media service.
\preliminary
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\brief The QMediaStreamsControl class provides a media stream selection control.
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
The QMediaStreamsControl class provides descriptions of the available media streams
/*!
\class QMetaDataWriterControl
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
/*!
\class QRadioTunerControl
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
\brief The QVideoDeviceControl class provides an video device selector media control.
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
The QVideoDeviceControl class provides descriptions of the video devices
\class QVideoEncoderControl
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
\brief The QVideoEncoderControl class provides access to the settings
to a video surface.
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
Using the surface() property of QVideoRendererControl a
implements a video widget.
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\since 1.0
The videoWidget() property of QVideoWidgetControl provides a pointer to a
\class QVideoWindowControl
\inmodule QtMultimediaKit
- \ingroup multimedia
+ \ingroup multimedia-serv
\brief The QVideoWindowControl class provides a media control for rendering video to a window.
\since 1.0