QMediaObject ClassThe QMediaObject class provides a common base for multimedia objects. More... #include <QMediaObject> Inherits: QObject. Inherited by: QAudioDecoder, QCamera, QMediaPlayer, and QRadioTuner. Properties
Public Functions
Signals
Protected Functions
Additional Inherited MembersDetailed DescriptionThe 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. Property Documentation
|
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 this 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.
Signal emitted when the availability error has changed to error
Returns a list of keys there is meta-data available for.
Bind object to this QMediaObject instance.
This method establishes a relationship between this media object and a helper object. The nature of the relationship depends on both parties. This methods returns true if the helper was successfully bound, false otherwise.
Most subclasses of QMediaObject provide more convenient functions that wrap this functionality, so this function rarely needs to be called directly.
The object passed must implement the QMediaBindableInterface interface.
See also QMediaBindableInterface.
Returns true if the service is available for use.
Returns true if there is meta-data associated with this media object, else false.
Returns the value associated with a meta-data key.
Signals that the available state of a media object's meta-data has changed.
Signals that this media object's meta-data has changed.
If multiple meta-data elements are changed, metaDataChanged(const QString &key, const QVariant &value) signal is emitted for each of them with metaDataChanged() changed emitted once.
Signal the changes of one meta-data element value with the given key.
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 this multimedia object.
Detach object from the QMediaObject instance.
Unbind the helper object from this media object. A warning will be generated if the object was not previously bound to this object.
See also QMediaBindableInterface.