Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

/v1/me/player timestamp field unexpected value

/v1/me/player timestamp field unexpected value

My Question or Issue

When using the /v1/me/player endpoint, there is a field called timestamp. According to the documentation, it should return the "Unix Millisecond Timestamp when data was fetched". It'd appear to me that it should be a variable that'd be a couple of milliseconds behind the current time in milliseconds.

 

Instead, it returns the epoch time when you started playing the current song. I was hoping to use this value to precisely calculate the current playback time. E.g.:

 

 

 

json.get("progress_ms").getAsInt() + (System.currentTimeMillis() - json.get("timestamp").getAsLong()) 

 

 

 

 

 

 

Reply
0 Replies

Suggested posts

Type a product name