The QMediaRecorderControl class provides access to the recording functionality of a QMediaService. More...
#include <QMediaRecorderControl>
Inherits: QMediaControl.
This class was introduced in Qt Mobility 1.0.
virtual | ~QMediaRecorderControl () |
virtual void | applySettings () = 0 |
virtual qint64 | duration () const = 0 |
virtual bool | isMuted () const = 0 |
virtual QUrl | outputLocation () const = 0 |
virtual bool | setOutputLocation ( const QUrl & location ) = 0 |
virtual QMediaRecorder::State | state () const = 0 |
virtual void | pause () = 0 |
virtual void | record () = 0 |
virtual void | setMuted ( bool muted ) = 0 |
virtual void | stop () = 0 |
void | durationChanged ( qint64 duration ) |
void | error ( int error, const QString & errorString ) |
void | mutedChanged ( bool muted ) |
void | stateChanged ( QMediaRecorder::State state ) |
QMediaRecorderControl ( QObject * parent = 0 ) |
QMediaRecorderControl_iid |
The QMediaRecorderControl class provides access to the recording functionality of a QMediaService.
If a QMediaService can record media it will implement QMediaRecorderControl. This control provides a means to set the output location, and start, pause and stop recording. It also provides feedback on the duration of the recording.
The functionality provided by this control is exposed to application code through the QMediaRecorder class.
The interface name of QMediaRecorderControl is com.nokia.Qt.QMediaRecorderControl/1.0 as defined in QMediaRecorderControl_iid.
See also QMediaService::requestControl() and QMediaRecorder.
Constructs a media recorder control with the given parent.
Destroys a media recorder control.
Commits the encoder settings and performs pre-initialization to reduce delays when recording is started.
This function was introduced in Qt Mobility 1.0.
Return the current duration in milliseconds.
This function was introduced in Qt Mobility 1.0.
Signals that the duration of the recorded media has changed.
This only emitted when there is a discontinuous change in the duration such as being reset to 0.
This function was introduced in Qt Mobility 1.0.
Signals that an error has occurred. The errorString describes the error.
This function was introduced in Qt Mobility 1.0.
Returns true if the recorder is muted, and false if it is not.
This function was introduced in Qt Mobility 1.0.
Signals that the muted state of a media recorder has changed.
This function was introduced in Qt Mobility 1.0.
Returns the current output location being used.
This function was introduced in Qt Mobility 1.0.
See also setOutputLocation().
Pause recording.
This function was introduced in Qt Mobility 1.0.
Start recording.
This function was introduced in Qt Mobility 1.0.
Sets the muted state of a media recorder.
This function was introduced in Qt Mobility 1.0.
See also isMuted().
Sets the output location and returns if this operation is successful. If file at the output location already exists, it should be overwritten.
The location can be relative or empty; in this case the service should use the system specific place and file naming scheme. After recording has stated, QMediaRecorderControl::outputLocation() should return the actual output location.
This function was introduced in Qt Mobility 1.0.
See also outputLocation().
Return the current recording state.
This function was introduced in Qt Mobility 1.0.
Signals that the state of a media recorder has changed.
This function was introduced in Qt Mobility 1.0.
Stop recording.
This function was introduced in Qt Mobility 1.0.
com.nokia.Qt.QMediaRecorderControl/1.0
Defines the interface name of the QMediaRecorderControl class.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.