QMediaMetaData¶
Provides meta-data for media files. More…
New in version 6.1.
Synopsis¶
Functions¶
Static functions¶
def
metaDataKeyToString
(k)
Detailed Description¶
Note
Not all identifiers are supported on all platforms.
Common attributes |
||
---|---|---|
Value |
Description |
Type |
Title |
The title of the media. |
|
Author |
The authors of the media. |
|
Comment |
A user comment about the media. |
|
Description |
A description of the media. |
|
Genre |
The genre of the media. |
|
Date |
The date of the media. |
|
Language |
The language of media. |
|
Publisher |
The publisher of the media. |
|
Copyright |
The media’s copyright notice. |
|
Url |
A Url pointing to the origin of the media. |
|
Media attributes |
||
The type of the media (audio, video, etc). |
|
|
The file format of the media. |
|
|
Duration |
The duration in millseconds of the media. |
qint64 |
Audio attributes |
||
The bit rate of the media’s audio stream in bits per second. |
int |
|
The codec of the media’s audio stream. |
QMediaForma::AudioCodec |
|
Video attributes |
||
The frame rate of the media’s video stream. |
qreal |
|
The bit rate of the media’s video stream in bits per second. |
int |
|
The codec of the media’s video stream. |
|
|
Music attributes |
||
The title of the album the media belongs to. |
|
|
The principal artist of the album the media belongs to. |
|
|
The artists contributing to the media. |
|
|
The track number of the media. |
int |
|
Composer |
The composer of the media. |
|
The lead performer in the media. |
|
|
An embedded thumbnail image. |
|
|
An embedded cover art image. |
|
|
Image and video attributes |
||
Resolution |
The dimensions of an image or video. |
|
- class PySide6.QtMultimedia.QMediaMetaData(QMediaMetaData)¶
- Parameters
QMediaMetaData –
PySide6.QtMultimedia.QMediaMetaData
- PySide6.QtMultimedia.QMediaMetaData.Key¶
- PySide6.QtMultimedia.QMediaMetaData.NumMetaData¶
- PySide6.QtMultimedia.QMediaMetaData.data¶
- PySide6.QtMultimedia.QMediaMetaData.clear()¶
Removes all data from the meta data object.
Inserts a value
into a Key: k
.
- PySide6.QtMultimedia.QMediaMetaData.isEmpty()¶
- Return type
bool
Returns true
if the meta data contains no items: otherwise returns false
.
- PySide6.QtMultimedia.QMediaMetaData.keys()¶
- Return type
Returns a QList
of QMediaMetaData::Keys.
- static PySide6.QtMultimedia.QMediaMetaData.metaDataKeyToString(k)¶
- Parameters
k – Key
- Return type
str
returns a string representation of key
that can be used when presenting meta data to users.
- PySide6.QtMultimedia.QMediaMetaData.__ne__(b)¶
- Parameters
- Return type
bool
- PySide6.QtMultimedia.QMediaMetaData.__eq__(b)¶
- Parameters
- Return type
bool
- PySide6.QtMultimedia.QMediaMetaData.operator[](k)
- Parameters
k – Key
- Return type
object
Returns data stored at the Key k
.
QMediaMetaData rockBallad1; rockBalad[QMediaMetaData::Genre]="Rock"
Removes meta data from a Key: k
.
Returns the meta data for key key
as a QString
.
This is mainly meant to simplify presenting the meta data to a user.
Returns the meta data value for Key key
, or a null QVariant
if no meta data for the key is available.
© 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.