QMetaDataWriterControl¶
The
QMetaDataWriterControl
class provides write access to the meta-data of aQMediaService
‘s media. More…
Detailed Description¶
If a
QMediaService
can provide write access to the meta-data of its current media it will implementQMetaDataWriterControl
. 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
isorg.qt-project.qt.metadatawritercontrol/5.0
as defined inQMetaDataWriterControl_iid
.See also
- class PySide2.QtMultimedia.QMetaDataWriterControl([parent=None])¶
- param parent:
Construct a
QMetaDataWriterControl
withparent
. 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
- 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 givenkey
.See also
- PySide2.QtMultimedia.QMetaDataWriterControl.writableChanged(writable)¶
- Parameters:
writable – bool
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.