mediaMetaData QML Value Type
为媒体文件提供元数据。更多
Import Statement: | import QtMultimedia |
方法
- void clear()
- void insert(Key k, variant value)
- bool isEmpty()
- list<Key> keys()
- string metaDataKeyToString(Key key)
- void remove(Key k)
- string stringValue(Key key)
- variant value(Key key)
详细说明
元数据是描述媒体的补充数据。有关可用的元数据属性,请参阅QMediaMetaData 。
方法文档
void clear() |
删除 MediaMetaData 对象中的所有数据。
void insert(Key k, variant value) |
将value 插入关键字:k 。
bool isEmpty() |
如果元数据不包含项目,则返回true
:否则返回false
。
list<Key> keys() |
返回 MediaMetaData.Keys 列表。
string metaDataKeyToString(Key key) |
返回key 的字符串表示,在向用户展示元数据时可以使用。
void remove(Key k) |
从键中删除元数据:k 。
variant value(Key key) |
Returns the meta data value for Keykey, or a nullQVariant if no meta-data for the key is available.
© 2025 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.