Qml video metaData returns undefined values
Unsolved
QML and Qt Quick
-
hi guys
lets take a look at this codeVideo { id: video anchors.fill: parent autoPlay: true source: vidPath !== "" ? ("file:" + vidPath) : "" focus: true loops: MediaPlayer.Infinite MouseArea{ anchors.fill: parent hoverEnabled: true onEntered: { console.log(video.metaData.videoBitRate) console.log(video.metaData.size) console.log(video.metaData.videoFrameRate) console.log(video.metaData.duration) } } }
the problem that i have no idea to figure out is all console.log print undefined
any help will be appreciate