![]() |
Qt 6.x
The Qt SDK
|
#include <qgstreamermetadata_p.h>
Public Member Functions | |
GstTagList * | toGstTagList () const |
void | setMetaData (GstBin *bin) const |
void | setMetaData (GstElement *element) const |
![]() | |
Q_INVOKABLE QVariant | value (Key k) const |
\variable QMediaMetaData::NumMetaData | |
Q_INVOKABLE void | insert (Key k, const QVariant &value) |
\qmlmethod void QtMultimedia::mediaMetaData::insert(Key k, variant value) Inserts a value into a Key: {k}. | |
Q_INVOKABLE void | remove (Key k) |
\qmlmethod void QtMultimedia::mediaMetaData::remove(Key k) Removes meta data from a Key: {k}. | |
Q_INVOKABLE QList< Key > | keys () const |
\qmlmethod list<Key> QtMultimedia::mediaMetaData::keys() Returns a list of MediaMetaData.Keys. | |
QVariant & | operator[] (Key k) |
Returns data stored at the Key {k}. | |
Q_INVOKABLE void | clear () |
\qmlmethod void QtMultimedia::mediaMetaData::clear() Removes all data from the MediaMetaData object. | |
Q_INVOKABLE bool | isEmpty () const |
\qmlmethod bool QtMultimedia::mediaMetaData::isEmpty() Returns true if the meta data contains no items: otherwise returns {false}. | |
Q_INVOKABLE QString | stringValue (Key k) const |
\qmlmethod string QtMultimedia::mediaMetaData::stringValue(Key key) Returns the meta data for key key as a QString. | |
Static Public Member Functions | |
static QGstreamerMetaData | fromGstTagList (const GstTagList *tags) |
![]() | |
static Q_INVOKABLE QString | metaDataKeyToString (Key k) |
\qmlmethod string QtMultimedia::mediaMetaData::metaDataKeyToString(Key key) returns a string representation of key that can be used when presenting meta data to users. | |
Additional Inherited Members | |
![]() | |
enum | Key { Title , Author , Comment , Description , Genre , Date , Language , Publisher , Copyright , Url , Duration , MediaType , FileFormat , AudioBitRate , AudioCodec , VideoBitRate , VideoCodec , VideoFrameRate , AlbumTitle , AlbumArtist , ContributingArtist , TrackNumber , Composer , LeadPerformer , ThumbnailImage , CoverArtImage , Orientation , Resolution } |
![]() | |
static constexpr int | NumMetaData = Resolution + 1 |
![]() | |
static QMetaType | keyType (Key key) |
Returns the meta type used to store data for Key key. | |
![]() | |
QHash< Key, QVariant > | data |
Definition at line 25 of file qgstreamermetadata_p.h.
|
static |
Definition at line 189 of file qgstreamermetadata.cpp.
References addTagToMap().
Referenced by QGstreamerMediaPlayer::processBusMessage(), and QGstreamerMediaPlayer::trackMetaData().
void QGstreamerMetaData::setMetaData | ( | GstBin * | bin | ) | const |
Definition at line 261 of file qgstreamermetadata.cpp.
References elements, item, and setMetaData().
Referenced by QGstreamerImageCapture::probeBuffer(), QGstreamerMediaEncoder::record(), and setMetaData().
void QGstreamerMetaData::setMetaData | ( | GstElement * | element | ) | const |
Definition at line 197 of file qgstreamermetadata.cpp.
References QSet< T >::cbegin(), QByteArray::constData(), date, QDate::day(), QLocale::ISO639Part2, it, keyToTag(), QLocale::languageToCode(), QDate::month(), QVariant::toDateTime(), QVariant::toDouble(), QVariant::toInt(), QVariant::toString(), QString::toUtf8(), QVariant::typeId(), QVariant::value(), and QDate::year().
GstTagList * QGstreamerMetaData::toGstTagList | ( | ) | const |