How can I get the length of a song in Qt 5.1 API? I think I can read it using
You seem to be looking for the
This would be the QML solution:
This property holds the duration of the media in milliseconds.
If the media doesn't have a fixed duration (a live stream for example) this will be 0.
This would be the C++ solution:
Returns the duration of audio in this buffer, in microseconds.
This depends on the /l format(), and the frameCount().