![]() |
Home · All Classes · All Functions · | ![]() |
The QMediaObject class provides a common base for multimedia objects. More...
#include <QMediaObject>
This class is under development and is subject to change.
Inherits QObject.
Inherited by QAudioCaptureSource, QCamera, QMediaImageViewer, QMediaPlayer, QMediaRecorder, QRadioTuner, and QStillImageCapture.
~QMediaObject () | |
virtual QtMedia::AvailabilityError | availabilityError () const |
QStringList | availableExtendedMetaData () const |
QList<QtMedia::MetaData> | availableMetaData () const |
QVariant | extendedMetaData ( const QString & key ) const |
virtual bool | isAvailable () const |
bool | isMetaDataAvailable () const |
bool | isMetaDataWritable () const |
QVariant | metaData ( QtMedia::MetaData key ) const |
int | notifyInterval () const |
virtual QMediaService * | service () const |
void | setExtendedMetaData ( const QString & key, const QVariant & value ) |
void | setMetaData ( QtMedia::MetaData key, const QVariant & value ) |
void | setNotifyInterval ( int milliSeconds ) |
void | availabilityChanged ( bool available ) |
void | metaDataAvailableChanged ( bool available ) |
void | metaDataChanged () |
void | metaDataWritableChanged ( bool writable ) |
void | notifyIntervalChanged ( int milliseconds ) |
QMediaObject ( QObject * parent, QMediaService * service ) | |
void | addPropertyWatch ( QByteArray const & name ) |
void | removePropertyWatch ( QByteArray const & name ) |
The QMediaObject class provides a common base for multimedia objects.
QMediaObject derived classes provide access to the functionality of a QMediaService. Each media object hosts a QMediaService and uses the QMediaControl interfaces implemented by the service to implement its API. Most media objects when constructed will request a new QMediaService instance from a QMediaServiceProvider, but some like QMediaRecorder will share a service with another object.
QMediaObject itself provides an API for accessing a media service's meta-data and a means of connecting other media objects, and peripheral classes like QVideoWidget and QMediaPlaylist.
See also QMediaService and QMediaControl.
This property holds whether access to a media object's meta-data is available.
If this is true there is meta-data available, otherwise there is no meta-data available.
Access functions:
bool | isMetaDataAvailable () const |
Notifier signal:
void | metaDataAvailableChanged ( bool available ) |
This property holds whether a media object's meta-data is writable.
If this is true the meta-data is writable, otherwise the meta-data is read-only.
Access functions:
bool | isMetaDataWritable () const |
Notifier signal:
void | metaDataWritableChanged ( bool writable ) |
The interval at which notifiable properties will update.
The interval is expressed in milliseconds, the default value is 1000.
Access functions:
int | notifyInterval () const |
void | setNotifyInterval ( int milliSeconds ) |
Notifier signal:
void | notifyIntervalChanged ( int milliseconds ) |
See also addPropertyWatch() and removePropertyWatch().
Constructs a media object which uses the functionality provided by a media service.
The parent is passed to QObject.
This class is meant as a base class for Multimedia objects so this constructor is protected.
Destroys a media object.
Watch the property name. The property's notify signal will be emitted once every notifyInterval milliseconds.
See also notifyInterval.
Signal emitted when the availability state has changed to available
Returns the service availability error state.
Returns a list of keys there is extended meta-data available for.
Returns a list of keys there is meta-data available for.
Returns the value associated with a meta-data key.
The naming and type of extended meta-data is not standardized, so the values and meaning of keys may vary between backends.
See also setExtendedMetaData().
Returns true if the service is available for use.
Returns the value associated with a meta-data key.
See also setMetaData().
Signals that the available state of a media object's meta-data has changed.
Signals that a media object's meta-data has changed.
Signals that the writable state of a media object's meta-data has changed.
Signal a change in the notify interval period to milliseconds.
Remove property name from the list of properties whose changes are regularly signaled.
See also notifyInterval.
Returns the media service that provides the functionality of a multimedia object.
Sets a value for a meta-data key.
The naming and type of extended meta-data is not standardized, so the values and meaning of keys may vary between backends.
See also extendedMetaData().
Sets a value for a meta-data key.
See also metaData().
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 |