The QMediaStreamsControl class provides a media stream selection control. More...
#include <QMediaStreamsControl>
This class is under development and is subject to change.
Inherits: QMediaControl.
This class was introduced in Qt Mobility 1.0.
enum | StreamType { AudioStream, VideoStream, SubPictureStream, UnknownStream, DataStream } |
virtual | ~QMediaStreamsControl () |
virtual bool | isActive ( int stream ) = 0 |
virtual QVariant | metaData ( int stream, QtMultimediaKit::MetaData key ) = 0 |
virtual void | setActive ( int stream, bool state ) = 0 |
virtual int | streamCount () = 0 |
virtual StreamType | streamType ( int stream ) = 0 |
void | activeStreamsChanged () |
void | streamsChanged () |
QMediaStreamsControl ( QObject * parent = 0 ) |
QMediaStreamsControl_iid |
The QMediaStreamsControl class provides a media stream selection control.
The QMediaStreamsControl class provides descriptions of the available media streams and allows individual streams to be activated and deactivated.
The interface name of QMediaStreamsControl is com.nokia.Qt.MediaStreamsControl as defined in QMediaStreamsControl_iid.
See also QMediaService::requestControl().
Media stream type.
Constant | Value | Description |
---|---|---|
QMediaStreamsControl::AudioStream | 2 | Audio stream. |
QMediaStreamsControl::VideoStream | 1 | Video stream. |
QMediaStreamsControl::SubPictureStream | 3 | Subpicture or teletext stream. |
QMediaStreamsControl::UnknownStream | 0 | The stream type is unknown. |
QMediaStreamsControl::DataStream | 4 |
Constructs a new media streams control with the given parent.
Destroys a media streams control.
The signal is emitted when the active streams list is changed.
This function was introduced in Qt Mobility 1.0.
Returns true if the media stream is active.
This function was introduced in Qt Mobility 1.0.
Returns the meta-data value of key for a given stream.
Useful metadata keya are QtMultimediaKit::Title, QtMultimediaKit::Description and QtMultimediaKit::Language.
This function was introduced in Qt Mobility 1.0.
Sets the active state of a media stream.
Setting the active state of a media stream to true will activate it. If any other stream of the same type was previously active it will be deactivated. Setting the active state fo a media stream to false will deactivate it.
This function was introduced in Qt Mobility 1.0.
See also isActive().
Returns the number of media streams.
This function was introduced in Qt Mobility 1.0.
Return the type of a media stream.
This function was introduced in Qt Mobility 1.0.
The signal is emitted when the available streams list is changed.
This function was introduced in Qt Mobility 1.0.
com.nokia.Qt.MediaStreamsControl
Defines the interface name of the QMediaStreamsControl class.
This function was introduced in Qt Mobility 1.0.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.