QMediaStreamsControl

The QMediaStreamsControl class provides a media stream selection control. More

Inheritance diagram of PySide2.QtMultimedia.QMediaStreamsControl

Detailed Description

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 org.qt-project.qt.mediastreamscontrol/5.0 as defined in QMediaStreamsControl_iid .

See also

requestControl()

class QMediaStreamsControl([parent=None])
param parent

QObject

Constructs a new media streams control with the given parent .

PySide2.QtMultimedia.QMediaStreamsControl.StreamType

Media stream type.

Constant

Description

QMediaStreamsControl.AudioStream

Audio stream.

QMediaStreamsControl.VideoStream

Video stream.

QMediaStreamsControl.SubPictureStream

Subpicture or teletext stream.

QMediaStreamsControl.UnknownStream

The stream type is unknown.

QMediaStreamsControl.DataStream

PySide2.QtMultimedia.QMediaStreamsControl.activeStreamsChanged()
PySide2.QtMultimedia.QMediaStreamsControl.isActive(streamNumber)
Parameters

streamNumberint

Return type

bool

Returns true if the media stream streamNumber is active.

PySide2.QtMultimedia.QMediaStreamsControl.metaData(streamNumber, key)
Parameters
  • streamNumberint

  • key – unicode

Return type

object

Returns the meta-data value of key for the given streamNumber .

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

PySide2.QtMultimedia.QMediaStreamsControl.setActive(streamNumber, state)
Parameters
  • streamNumberint

  • statebool

Sets the active state of media stream streamNumber .

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.

See also

isActive()

PySide2.QtMultimedia.QMediaStreamsControl.streamCount()
Return type

int

Returns the number of media streams.

PySide2.QtMultimedia.QMediaStreamsControl.streamType(streamNumber)
Parameters

streamNumberint

Return type

StreamType

Return the type of media stream streamNumber .

PySide2.QtMultimedia.QMediaStreamsControl.streamsChanged()