VideoMetadata.qml Example File
multimedia/video/qmlvideo/qml/qmlvideo/VideoMetadata.qml
import QtQuick 2.0
Scene {
id: root
property string contentType: "video"
Content {
id: content
anchors.centerIn: parent
width: parent.contentWidth
contentType: "video"
source: parent.source1
volume: parent.volume
onInitialized: {
if (!dummy)
metadata.createObject(root)
}
onVideoFramePainted: root.videoFramePainted()
}
Component {
id: metadata
Column {
anchors.fill: parent
Text {
color: "#e0e0e0"
text: "Title:" + content.contentItem().metaData.title
}
Text {
color: "#e0e0e0"
text: "Size:" + content.contentItem().metaData.size
}
Text {
color: "#e0e0e0"
text: "Resolution:" + content.contentItem().metaData.resolution
}
Text {
color: "#e0e0e0"
text: "Media type:" + content.contentItem().metaData.mediaType
}
Text {
color: "#e0e0e0"
text: "Video codec:" + content.contentItem().metaData.videoCodec
}
Text {
color: "#e0e0e0"
text: "Video bit rate:" + content.contentItem().metaData.videoBitRate
}
Text {
color: "#e0e0e0"
text: "Video frame rate:" +content.contentItem().metaData.videoFrameRate
}
Text {
color: "#e0e0e0"
text: "Audio codec:" + content.contentItem().metaData.audioCodec
}
Text {
color: "#e0e0e0"
text: "Audio bit rate:" + content.contentItem().metaData.audioBitRate
}
Text {
color: "#e0e0e0"
text: "Date:" + content.contentItem().metaData.date
}
Text {
color: "#e0e0e0"
text: "Description:" + content.contentItem().metaData.description
}
Text {
color: "#e0e0e0"
text: "Copyright:" + content.contentItem().metaData.copyright
}
Text {
color: "#e0e0e0"
text: "Seekable:" + content.contentItem().metaData.seekable
}
}
}
Component.onCompleted: root.content = content
}