QMediaStreamsControl Class

The QMediaStreamsControl class provides a media stream selection control. 更多...

头: #include <QMediaStreamsControl>
qmake: QT += multimedia
继承: QMediaControl

公共类型

enum StreamType { AudioStream, VideoStream, SubPictureStream, UnknownStream, DataStream }

公共函数

virtual ~QMediaStreamsControl ()
virtual bool isActive (int stream ) = 0
virtual QVariant metaData (int stream , const QString & 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 = Q_NULLPTR)

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.

接口名称对于 QMediaStreamsControl is org.qt-project.qt.mediastreamscontrol/5.0 作为定义在 QMediaStreamsControl_iid .

另请参阅 QMediaService::requestControl ().

成员类型文档编制

enum QMediaStreamsControl:: StreamType

Media stream type.

常量 描述
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

成员函数文档编制

[protected] QMediaStreamsControl:: QMediaStreamsControl ( QObject * parent = Q_NULLPTR)

Constructs a new media streams control with the given parent .

[虚拟] QMediaStreamsControl:: ~QMediaStreamsControl ()

Destroys a media streams control.

[signal] void QMediaStreamsControl:: activeStreamsChanged ()

The signal is emitted when the active streams list is changed.

[pure virtual] bool QMediaStreamsControl:: isActive ( int stream )

Returns true if the media stream is active.

[pure virtual] QVariant QMediaStreamsControl:: metaData ( int stream , const QString & key )

Returns the meta-data value of key for a given stream .

Useful metadata keys are QMediaMetaData::Title , QMediaMetaData::Description and QMediaMetaData::Language .

[pure virtual] void QMediaStreamsControl:: setActive ( int stream , bool state )

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.

另请参阅 isActive ().

[pure virtual] int QMediaStreamsControl:: streamCount ()

Returns the number of media streams.

[pure virtual] StreamType QMediaStreamsControl:: streamType ( int stream )

Return the type of a media stream .

[signal] void QMediaStreamsControl:: streamsChanged ()

The signal is emitted when the available streams list is changed.

宏文档编制

QMediaStreamsControl_iid

org.qt-project.qt.mediastreamscontrol/5.0

定义接口名为 QMediaStreamsControl 类。