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

AppleScript currentPosition is delayed if user plays autoplay/automix/recommended songs

AppleScript currentPosition is delayed if user plays autoplay/automix/recommended songs

Plan

Premium

Country

India 

Device

M1 MacBook Air

Operating System

macOS Sonoma.

 

My Question or Issue

Previously I reported an issue where the currentPosition returned by Spotify's AppleSript api is delayed by the number of seconds the user has set crossfade to. Firstly that has not been fixed in over 4 months. Now, even with crossfade and the new automix option disabled, I am STILL facing currentPosition delay in my application. I have realised that on playlist playback this issue is not visible.

 

It is only visible on autoplays, recommended songs, or automixes. no solution but to manually pause and play and fix the currentPosition. 

 

Steps: 

1. Disable crossfades and automix

3. Query the playback position on apple script (it is accurate)

4. Queue a new song and wait for Spotify to automatically play the next song (recommended songs, make sure NOT IN A QUEUE or album/user/playlist context)

5. Query the playback position on Apple Script (it is off by 1-2 seconds. It is 1-2 seconds higher than it should be)

 

If you pause the song and unpause, querying the apple script results in a correct playback position. There is no current workaround because users of my product will often listen to automixes or recommended songs.

 

Spotify Version: Spotify for macOS (Apple Silicon)
1.2.25.1011.G0348b2ea

Reply
3 Replies

I would like to simply see a user's crossfade setting, to know how many seconds are being used for crossfading. This way, a secondary (and more accurate) playlist duration could be computed based on the user's crossfade preference.

This occurs on album autoplay playback

N/A

Suggested posts