QMetaDataWriterControl

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

Inheritance diagram of PySide2.QtMultimedia.QMetaDataWriterControl

Detailed Description

If a QMediaService can provide write access to the meta-data of its current media it will implement QMetaDataWriterControl . 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 QMetaDataControl.

The interface name of QMetaDataWriterControl is org.qt-project.qt.metadatawritercontrol/5.0 as defined in QMetaDataWriterControl_iid .

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

PySide2.QtCore.QObject

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

PySide2.QtMultimedia.QMetaDataWriterControl.availableMetaData()
Return type

list of strings

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

PySide2.QtMultimedia.QMetaDataWriterControl.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.QMetaDataWriterControl.isWritable()
Return type

bool

Identifies if a media service’s meta-data can be edited.

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

PySide2.QtMultimedia.QMetaDataWriterControl.metaData(key)
Parameters

key – str

Return type

object

Returns the meta-data for the given key .

See also

setMetaData()

PySide2.QtMultimedia.QMetaDataWriterControl.metaDataAvailableChanged(available)
Parameters

available – bool

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

  • value – object

PySide2.QtMultimedia.QMetaDataWriterControl.setMetaData(key, value)
Parameters
  • key – str

  • value – object

Sets the value of the meta-data element with the given key .

See also

metaData()

PySide2.QtMultimedia.QMetaDataWriterControl.writableChanged(writable)
Parameters

writable – bool