QMediaObject Class

The QMediaObject class provides a common base for multimedia objects. More...

Header: #include <QMediaObject>
qmake: QT += multimedia
Inherits: QObject
Inherited By:

QAudioDecoder, QCamera, QMediaPlayer, and QRadioTuner

Properties

Public Functions

int notifyInterval() const
void setNotifyInterval(int milliSeconds)

Signals

void notifyIntervalChanged(int milliSeconds)

Detailed Description

It provides some basic functionality that is common to other high level classes like QMediaPlayer, QAudioDecoder and QCamera, including availability and meta-data functionality, as well as functionality to connect media objects with support classes like QMediaPlaylist.

The higher level QMediaObject derived classes provide the actual multimedia functionality, by internally using a QMediaService. Each media object hosts a QMediaService and uses the QMediaControl interfaces implemented by the service to implement its API. These controls can be accessed from the media object if necessary, but in general the useful functionality can be accessed from the higher level classes.

Most media objects when constructed will request a new QMediaService instance, but some like QMediaRecorder and QAudioRecorder will share a service with another object.

See also QMediaService and QMediaControl.

Property Documentation

notifyInterval : int

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().