How to find duration of a video
I have build a video player now i want to find duration of video when i upload anyvideo its should calculate duration of it and display it
can u guys help me how to do this.
P.S.- I am using qmediaplyer class and Qvideowidget class
If I am not mistaken, it comes to using "QMediaPlayer::duration":http://qt-project.org/doc/qt-5/qmediaplayer.html#duration-prop property.
or u can use "QMediaObject::metaData(const QString & key)":http://qt-project.org/doc/qt-5/qmediaobject.html#metaData method where its argument is "Duration"