FRadioPlayer icon indicating copy to clipboard operation
FRadioPlayer copied to clipboard

How can I get current song playing data?

Open moyinzunza opened this issue 3 years ago • 1 comments

Is it possible get the duration of the current song and the elapsed time ?

moyinzunza avatar Jan 25 '21 23:01 moyinzunza

Hey @moyinzunza , I'll be adding this feature soon to the main branch, for now it only supports live streams.

There is an implementation in the FS branch, you can get the duration and elapsed time by implementing this delegate method:

func radioPlayer(_ player: FRadioPlayer, playTimeDidChange currentTime: TimeInterval, duration: TimeInterval)

fethica avatar Jan 26 '21 03:01 fethica