Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QMediaControl class is used to manipulate a media resource in the Qt Extended media system. More...
#include <QMediaControl>
Inherits QObject.
The QMediaControl class is used to manipulate a media resource in the Qt Extended media system.
Construct a QMediaControl.
Construct a QMediaControl for controlling mediaContent. The QMediaControl can be constructed only after the mediaContent instance has signaled that it is available via the QMediaContent::controlAvailable() signal.
See also QMediaContent::controlAvailable().
Destroy the QMediaControl object.
When an error occurs, indicated by the QtopiaMedia::Error state, this function will return a QString with appropriate information regarding the error.
Signal that is emitted when the control is invalid and no longer available for use.
Return the mute state of the media content.
Return the length of the media content.
Signals a change in the length of the media. For some media content the length may not be available until after playback has started, it is advisable to hook onto this signal to ensure clients have the correct length information, The length information is available as the total number of milliseconds from the parameter ms.
Returns the name of this control.
Pause the media content.
Return the current state of the media content
Signals a change in the state of the media content. The new state is represented by the state parameter.
Return the current position in the media content.
Signals an update to the current position of a media content. This signal is emitted while the media is playing and represents the current milliseconds ms from the beginning of the media.
Seek to the location in the media content. The location is specified with the ms parameter which is the number of milliseconds from the beginning of the media.
Mute or unmute the volume for the media content.
The mute parameter enables or disable muting of the media.
See also isMuted().
Set the volume of the current media content. The acceptable volume range is 1-100.
The volume is the value of the volume to be set for this media.
See also volume().
Start playing the media content.
Stop playing the media content.
Signal that is emitted when the control is valid and available for use.
Return the current volume for the media content.
See also setVolume().
Signals a change in volume of the media content. The new volume is has the value volume, ranging from 1 - 100.
Signals if the media content has been muted or not. The muted paramter is true when muted, false when not.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |