<?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 duration_ms is missing in WebPlaybackTrack object in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-is-missing-in-WebPlaybackTrack-object/m-p/4978557#M521</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Japan&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I develop a web client app of Spotify using Web Playback SDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There seems to be&lt;STRONG&gt; duration_ms&lt;/STRONG&gt; prop in &lt;STRONG&gt;WebPlaybackObject. &lt;/STRONG&gt;(green underlined part of the image below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebPlaybackTrack object" style="width: 932px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/117666i14FCC481CDD4BE54/image-size/large?v=v2&amp;amp;px=999" role="button" title="playback-sdk-track-object.jpg" alt="WebPlaybackTrack object" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;WebPlaybackTrack object&lt;/span&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, in &lt;A href="https://developer.spotify.com/documentation/web-playback-sdk/reference/#object-web-playback-track" target="_blank" rel="noopener"&gt;Web Playback SDK Reference&lt;/A&gt;,&amp;nbsp;&lt;STRONG&gt;duration_ms&lt;/STRONG&gt; prop isn't listed. I think the reference is missing &lt;STRONG&gt;duration_ms&lt;/STRONG&gt; prop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 07:04:18 GMT</pubDate>
    <dc:creator>nokazn</dc:creator>
    <dc:date>2020-06-17T07:04:18Z</dc:date>
    <item>
      <title>duration_ms is missing in WebPlaybackTrack object</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-is-missing-in-WebPlaybackTrack-object/m-p/4978557#M521</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Japan&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I develop a web client app of Spotify using Web Playback SDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There seems to be&lt;STRONG&gt; duration_ms&lt;/STRONG&gt; prop in &lt;STRONG&gt;WebPlaybackObject. &lt;/STRONG&gt;(green underlined part of the image below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebPlaybackTrack object" style="width: 932px;"&gt;&lt;img src="https://community.spotify.com/t5/image/serverpage/image-id/117666i14FCC481CDD4BE54/image-size/large?v=v2&amp;amp;px=999" role="button" title="playback-sdk-track-object.jpg" alt="WebPlaybackTrack object" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;WebPlaybackTrack object&lt;/span&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, in &lt;A href="https://developer.spotify.com/documentation/web-playback-sdk/reference/#object-web-playback-track" target="_blank" rel="noopener"&gt;Web Playback SDK Reference&lt;/A&gt;,&amp;nbsp;&lt;STRONG&gt;duration_ms&lt;/STRONG&gt; prop isn't listed. I think the reference is missing &lt;STRONG&gt;duration_ms&lt;/STRONG&gt; prop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 07:04:18 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-is-missing-in-WebPlaybackTrack-object/m-p/4978557#M521</guid>
      <dc:creator>nokazn</dc:creator>
      <dc:date>2020-06-17T07:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: duration_ms is missing in WebPlaybackTrack object</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-is-missing-in-WebPlaybackTrack-object/m-p/4978816#M525</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/23758386"&gt;@nokazn&lt;/a&gt;, thanks for letting me know about this!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'd love to take a closer look here. Just to confirm, when you make a request, you do get the duration_ms prop? It's only the website that doesn't show this in the reference? Let me know and I'd be happy to pass that on to the right folks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, have a good one,&lt;/P&gt;&lt;P&gt;Hubo&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 16:26:43 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-is-missing-in-WebPlaybackTrack-object/m-p/4978816#M525</guid>
      <dc:creator>Hubo</dc:creator>
      <dc:date>2020-06-17T16:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: duration_ms is missing in WebPlaybackTrack object</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-is-missing-in-WebPlaybackTrack-object/m-p/5007300#M835</link>
      <description>&lt;P&gt;Hello, &lt;A title="@Hubo" href="https://community.spotify.com/t5/user/viewprofilepage/user-id/807543" target="_blank" rel="noopener"&gt;@&lt;/A&gt;&lt;SPAN&gt;&lt;A title="@Hubo" href="https://community.spotify.com/t5/user/viewprofilepage/user-id/807543" target="_blank" rel="noopener"&gt;Hubo&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm so sorry for the late replay.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can recieve duration_ms prop in track objects when playback state has changed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As far as I can see, the link above is the only reference about&amp;nbsp;WebPlaybackTrack object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edit:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is a type declaration package for TypeScript in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/f4a5f50bd95108d146232ab04f985e219de979e3/types/spotify-web-playback-sdk/index.d.ts#L131-L140" target="_blank" rel="noopener"&gt;@types/spotify-web-playback-sdk&lt;/A&gt;&lt;/SPAN&gt;, and this also doesn't include duration_ms field in Track interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, the track object in the image above contains linked_from &amp;amp; linkd_from_uri field, but these seem to always return null at present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 13:17:27 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/duration-ms-is-missing-in-WebPlaybackTrack-object/m-p/5007300#M835</guid>
      <dc:creator>nokazn</dc:creator>
      <dc:date>2020-07-29T13:17:27Z</dc:date>
    </item>
  </channel>
</rss>

