<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Apple Script returns incorrect playback position if crossfade is enabled in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Apple-Script-returns-incorrect-playback-position-if-crossfade-is/m-p/5934311#M13078</link>
    <description>&lt;P&gt;Update: This occurs regardless of crossfade settings. This occurs whenever a song autoplays. I could be listening to an album and the next song could play once the current song is over. This induces lag within the playback position. The only solution is to play/pause. Horrible behaviour. My product which incorporates AppleScript to fetch the current playback position has been affected by this.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Sun, 10 Mar 2024 06:49:07 GMT</pubDate>
    <dc:creator>aviwad2</dc:creator>
    <dc:date>2024-03-10T06:49:07Z</dc:date>
    <item>
      <title>Apple Script returns incorrect playback position if crossfade is enabled</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Apple-Script-returns-incorrect-playback-position-if-crossfade-is/m-p/5630294#M10683</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free/Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;India&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;M1 MacBook Air&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;macOS Ventura.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The reported playback position from the Apple Script API is delayed by however many seconds of crossfade you have set, only when the song autoplayed or played next in queue without manual play button clicked (and hence the crossfade was utilized).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Enable crossfade to 2 seconds.&lt;/P&gt;&lt;P&gt;2. Play a song till the ending&lt;/P&gt;&lt;P&gt;3. Query the playback position on apple script (it is accurate)&lt;/P&gt;&lt;P&gt;4. Queue a new song and wait for Spotify to automatically play the next song&lt;/P&gt;&lt;P&gt;5. Query the playback position on Apple Script (it is off by 2 seconds. It is 2 seconds higher than it should be)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you pause the song and unpause, querying the apple script results in a correct playback position. Therefore for my project, I am publishing a help page that instructs users to disable crossfade, or I might incorporate a workaround to play/pause after every song change. I hope Spotify quickly fixes this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Spotify Version:&amp;nbsp;Spotify for macOS (Apple Silicon)&lt;BR /&gt;1.2.19.941.gbf202593&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 20:22:01 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Apple-Script-returns-incorrect-playback-position-if-crossfade-is/m-p/5630294#M10683</guid>
      <dc:creator>aviwad</dc:creator>
      <dc:date>2023-08-31T20:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Apple Script returns incorrect playback position if crossfade is enabled</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Apple-Script-returns-incorrect-playback-position-if-crossfade-is/m-p/5864940#M12568</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 20:17:21 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Apple-Script-returns-incorrect-playback-position-if-crossfade-is/m-p/5864940#M12568</guid>
      <dc:creator>Puglifiled</dc:creator>
      <dc:date>2024-02-04T20:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Apple Script returns incorrect playback position if crossfade is enabled</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Apple-Script-returns-incorrect-playback-position-if-crossfade-is/m-p/5934311#M13078</link>
      <description>&lt;P&gt;Update: This occurs regardless of crossfade settings. This occurs whenever a song autoplays. I could be listening to an album and the next song could play once the current song is over. This induces lag within the playback position. The only solution is to play/pause. Horrible behaviour. My product which incorporates AppleScript to fetch the current playback position has been affected by this.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 10 Mar 2024 06:49:07 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Apple-Script-returns-incorrect-playback-position-if-crossfade-is/m-p/5934311#M13078</guid>
      <dc:creator>aviwad2</dc:creator>
      <dc:date>2024-03-10T06:49:07Z</dc:date>
    </item>
  </channel>
</rss>

