QMetaDataReaderControl

The QMetaDataReaderControl class provides read access to the meta-data of a QMediaService ‘s media. More

Inheritance diagram of PySide2.QtMultimedia.QMetaDataReaderControl

Detailed Description

If a QMediaService can provide read or write access to the meta-data of its current media it will implement QMetaDataReaderControl . This control provides functions for both retrieving and setting meta-data values. Meta-data may be addressed by the keys defined in the QMediaMetaData namespace.

The functionality provided by this control is exposed to application code by the meta-data members of QMediaObject , and so meta-data access is potentially available in any of the media object classes. Any media service may implement QMetaDataReaderControl .

The interface name of QMetaDataReaderControl is org.qt-project.qt.metadatareadercontrol/5.0 as defined in QMetaDataReaderControl_iid .

class PySide2.QtMultimedia.QMetaDataReaderControl([parent=None])
param parent

PySide2.QtCore.QObject

Construct a QMetaDataReaderControl with parent . This class is meant as a base class for service specific meta data providers so this constructor is protected.

PySide2.QtMultimedia.QMetaDataReaderControl.availableMetaData()
Return type

list of strings

Returns a list of keys there is meta-data available for.

PySide2.QtMultimedia.QMetaDataReaderControl.isMetaDataAvailable()
Return type

bool

Identifies if meta-data is available from a media service.

Returns true if the meta-data is available and false otherwise.

PySide2.QtMultimedia.QMetaDataReaderControl.metaData(key)
Parameters

key – str

Return type

object

Returns the meta-data for the given key .

PySide2.QtMultimedia.QMetaDataReaderControl.metaDataAvailableChanged(available)
Parameters

available – bool

PySide2.QtMultimedia.QMetaDataReaderControl.metaDataChanged()
PySide2.QtMultimedia.QMetaDataReaderControl.metaDataChanged(key, value)
Parameters
  • key – str

  • value – object