AppleScript currentPosition is delayed if user plays autoplay/automix/recommended songs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
applescript
-
bug
-
macOS
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page