rodio icon indicating copy to clipboard operation
rodio copied to clipboard

How to obtain the current playing time and position when rodio plays music files

Open yunfengwangluo opened this issue 3 years ago • 1 comments

How to obtain the current playing time and position when rodio plays music files

At present, I want to try to build a simple music playing software,

Music playing software needs the most basic

"Total duration" of music files

Current play position "Play time position"

Jump to the specified position "Time Position"

I don't know how to get the "play time position" at present

Thank you for your help

yunfengwangluo avatar Dec 03 '22 12:12 yunfengwangluo

Does the functionality in #510 fulfill the "Play Time Position"?

Total Duration should be possible with Source::total_duration() although as far as i saw only the flac decoder does actually provide the relevant API.

It should be quite easy to add it to the symphonia decoders, as long as the relevant header parts are filled in the music files.

BastianHentschel avatar Sep 07 '23 11:09 BastianHentschel