Recording the listen with duration and offset

hello,
I’m searching for an alternative to last.fm since it doesn’t allow to scrobble which part of the track exactly was listened to, it’s either scrobble or not

as i noticed, there’s a “duration” field in “Additional Info Fields” in JSON Documentation of ListenBrainz:

duration_ms and duration

But judging from the description:

“The duration of the track in milliseconds and seconds respectively. You should only include one of duration_ms or duration.”

I think that it is actually the total duration of the track…

I guess the field is for the case when MBID is not submitted and the more parameters of the track the better for matching?

Anyway, what is important for me is whether this provided data - duration - is recorded?
If yes, i can disregard the intended purpose of the field and use it to record the duration one has listened to

As for the offset, there does not seem to be any field?
So all listens are assumed from the start, whether they actually are or not?

Thank you for the help

While the listen matcher doesn’t use the duration field to match the track, it might in the future, so this should be set correctly.

However, there’s another way to get what you want. In the “additional info” of your listen submition, you can add arbitrary fields. So it’s just a matter of adding a new field.

As for the offset, there is none. The scrobbler need to manually offset “listened_at” to be the start of the song.