<?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: Streaming Non-Shared Music (Javascript) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Streaming-Non-Shared-Music-Javascript/m-p/253618#M14646</link>
    <description>&lt;P&gt;Thanks Greg!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With filesDownload,&amp;nbsp;it seems it is possible to use the audio object with the return of URL.createObjectURL(blob).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this is more secure, but it is definitly faster to create the temporary link and stream that.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2017 03:23:18 GMT</pubDate>
    <dc:creator>vegard</dc:creator>
    <dc:date>2017-11-21T03:23:18Z</dc:date>
    <item>
      <title>Streaming Non-Shared Music (Javascript)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Streaming-Non-Shared-Music-Javascript/m-p/253426#M14624</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to write a simple javascript-based (frontend only) dropbox music player. Just a dropbox file explorer, playlist and audio controls -- very basic for when I want to play some music without syncing the files locally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have experimented a bit, and can create a&amp;nbsp;temporary file link (filesGetTemporaryLink) and play it&amp;nbsp;with Audio object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works, but I wonder if there is a better way? It seems a temporary link is a public (non-authenticated) link to the file. I guess it is a very minor security risk. I don't know if Dropbox likes/allows frequent temporary link creation.&amp;nbsp; Is it possible to get an authenticated link?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help. Sorry, I am a bit new to web/javascript/dropbox-api so I might be missing the obvious.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:17:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Streaming-Non-Shared-Music-Javascript/m-p/253426#M14624</guid>
      <dc:creator>vegard</dc:creator>
      <dc:date>2019-05-29T09:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Streaming Non-Shared Music (Javascript)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Streaming-Non-Shared-Music-Javascript/m-p/253545#M14636</link>
      <description>The Dropbox API doesn't offer an alternative for this, but I'll pass this along as a feature request. The temporary links contain a randomly generated token though, so they should be effectively impossible to guess.&lt;BR /&gt;&lt;BR /&gt;For reference, the way to directly access file content in an authenticated fashion is to use filesDownload:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;That may not work for your use case, as it doesn't give you a URL you can pass to a media player. Depending on the media player though, making a local blob URL as shown here might work for you:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/a88a138c0c3260c3537f30f94b003c1cf64f2fbd/examples/javascript/download/index.html#L51" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/blob/a88a138c0c3260c3537f30f94b003c1cf64f2fbd/examples/javascript/download/index.html#L51&lt;/A&gt;</description>
      <pubDate>Mon, 20 Nov 2017 18:35:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Streaming-Non-Shared-Music-Javascript/m-p/253545#M14636</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-20T18:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Streaming Non-Shared Music (Javascript)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Streaming-Non-Shared-Music-Javascript/m-p/253618#M14646</link>
      <description>&lt;P&gt;Thanks Greg!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With filesDownload,&amp;nbsp;it seems it is possible to use the audio object with the return of URL.createObjectURL(blob).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this is more secure, but it is definitly faster to create the temporary link and stream that.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 03:23:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Streaming-Non-Shared-Music-Javascript/m-p/253618#M14646</guid>
      <dc:creator>vegard</dc:creator>
      <dc:date>2017-11-21T03:23:18Z</dc:date>
    </item>
  </channel>
</rss>

