Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to find duration of a video
herculis last edited by
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
tucnak last edited by
If I am not mistaken, it comes to using "QMediaPlayer::duration":http://qt-project.org/doc/qt-5/qmediaplayer.html#duration-prop property.
ElboyQt last edited by
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"