/v1/me/player timestamp field unexpected value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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())
Labels:
- Labels:
-
api
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page