![]() |
Home · All Classes · All Functions · | ![]() |
The QMediaPlayerControl class provides access to the media playing functionality of a QMediaService. More...
#include <QMediaPlayerControl>
This class is under development and is subject to change.
Inherits QMediaControl.
~QMediaPlayerControl () | |
virtual QMediaTimeRange | availablePlaybackRanges () const = 0 |
virtual int | bufferStatus () const = 0 |
virtual qint64 | duration () const = 0 |
virtual bool | isAudioAvailable () const = 0 |
virtual bool | isMuted () const = 0 |
virtual bool | isSeekable () const = 0 |
virtual bool | isVideoAvailable () const = 0 |
virtual QMediaContent | media () const = 0 |
virtual QMediaPlayer::MediaStatus | mediaStatus () const = 0 |
virtual const QIODevice * | mediaStream () const = 0 |
virtual void | pause () = 0 |
virtual void | play () = 0 |
virtual qreal | playbackRate () const = 0 |
virtual qint64 | position () const = 0 |
virtual void | setMedia ( const QMediaContent & media, QIODevice * stream ) = 0 |
virtual void | setMuted ( bool mute ) = 0 |
virtual void | setPlaybackRate ( qreal rate ) = 0 |
virtual void | setPosition ( qint64 position ) = 0 |
virtual void | setVolume ( int volume ) = 0 |
virtual QMediaPlayer::State | state () const = 0 |
virtual void | stop () = 0 |
virtual int | volume () const = 0 |
void | audioAvailableChanged ( bool audio ) |
void | availablePlaybackRangesChanged ( const QMediaTimeRange & ranges ) |
void | bufferStatusChanged ( int progress ) |
void | durationChanged ( qint64 duration ) |
void | error ( int error, const QString & errorString ) |
void | mediaChanged ( const QMediaContent & content ) |
void | mediaStatusChanged ( QMediaPlayer::MediaStatus status ) |
void | mutedChanged ( bool mute ) |
void | playbackRateChanged ( qreal rate ) |
void | positionChanged ( qint64 position ) |
void | seekableChanged ( bool seekable ) |
void | stateChanged ( QMediaPlayer::State state ) |
void | videoAvailableChanged ( bool video ) |
void | volumeChanged ( int volume ) |
QMediaPlayerControl ( QObject * parent = 0 ) |
QMediaPlayerControl_iid |
The QMediaPlayerControl class provides access to the media playing functionality of a QMediaService.
If a QMediaService can play media is will implement QMediaPlayerControl. This control provides a means to set the media to play, start, pause and stop playback, seek, and control the volume. It also provides feedback on the duration of the media, the current position, and buffering progress.
The functionality provided by this control is exposed to application code through the QMediaPlayer class.
The interface name of QMediaPlayerControl is com.nokia.Qt.QMediaPlayerControl/1.0 as defined in QMediaPlayerControl_iid.
See also QMediaService::requestControl() and QMediaPlayer.
Constructs a new media player control with the given parent.
Destroys a media player control.
Signals that there has been a change in the availability of audio output.
See also isAudioAvailable().
Returns a range of times in milliseconds that can be played back.
Usually for local files this is a continuous interval equal to [0..duration()] or an empty time range if seeking is not supported, but for network sources it refers to the buffered parts of the media.
Signals that the available media playback ranges have changed.
See also QMediaPlayerControl::availablePlaybackRanges().
Returns the buffering progress of the current media. Progress is measured in the percentage of the buffer filled.
Signals that buffering progress has changed.
See also bufferStatus().
Returns the duration of the current media in milliseconds.
Signals that the duration of the current media has changed.
See also duration().
Signals that an error has occurred. The errorString provides a more detailed explanation.
Identifies if there is audio output available for the current media.
Returns true if audio output is available and false otherwise.
Returns the mute state of a player control.
Identifies if the current media is seekable.
Returns true if it possible to seek within the current media, and false otherwise.
Identifies if there is video output available for the current media.
Returns true if video output is available and false otherwise.
Returns the current media source.
See also setMedia().
Signals that the current media content has changed.
Returns the status of the current media.
Signals that the status of the current media has changed.
See also mediaStatus().
Returns the current media stream. This is only a valid if a stream was passed to setMedia().
See also setMedia().
Signals a change in the mute status of a player control.
See also isMuted().
Pauses playback of the current media.
If sucessful the player control will immediately enter the paused state.
See also state(), play(), and stop().
Starts playback of the current media.
If successful the player control will immediately enter the playing state.
See also state().
Returns the rate of playback.
See also setPlaybackRate().
Signal emitted when playback rate changes to rate.
Returns the current playback position in milliseconds.
See also setPosition().
Signals the playback position has changed.
This is only emitted in when there has been a discontinous change in the playback postion, such as a seek or the position being reset.
See also position().
Signals that the seekable state of a player control has changed.
See also isSeekable().
Sets the current media source. If a stream is supplied; data will be read from that instead of attempting to resolve the media source. The media source may still be used to supply media information such as mime type.
Setting the media to a null QMediaContent will cause the control to discard all information relating to the current media source and to cease all I/O operations related to that media.
See also media().
Sets the mute state of a player control.
See also isMuted().
Sets the rate of playback.
See also playbackRate().
Sets the playback position of the current media. This will initiate a seek and it may take some time for playback to reach the position set.
See also position().
Sets the audio volume of a player control.
See also volume().
Returns the state of a player control.
Signals that the state of a player control has changed.
See also state().
Stops playback of the current media.
If succesful the player control will immediately enter the stopped state.
Signals that there has been a change in the availability of video output.
See also isVideoAvailable().
Returns the audio volume of a player control.
See also setVolume().
Signals the audio volume of a player control has changed.
See also volume().
com.nokia.Qt.QMediaPlayerControl/1.0
Defines the interface name of the QMediaPlayerControl class.
Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.2 |