<?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 iOS getTemporaryLink() cannot be used for streaming in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-getTemporaryLink-cannot-be-used-for-streaming/m-p/288674#M17675</link>
    <description>&lt;P&gt;I'm trying to play a video file stored in my Dropbox folder in an `AVPlayer`. The link was retrieved using getTemporaryLink() of SwiftyDropbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;A href="https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:FC13SwiftyDropbox11FilesRoutes16getTemporaryLinkFT4pathSS_GCS_10RpcRequestCCS_5Files32GetTemporaryLinkResultSerializerCS2_31GetTemporaryLinkErrorSerializer_" target="_self"&gt;Dropbox documentation&lt;/A&gt; states that getTemporaryLink() is used to "Get a temporary link to stream content of a file."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the link I get is in the form:&lt;/P&gt;&lt;PRE&gt;https://dl.dropboxusercontent.com/apitl/1/AAC1oJHO88Sfe7yzYA9Pz5a8n8WXu4wUQ8_xfIvmC1ks4nRk4e6i0Y29xYPjupsZZkqObkB3ZSdJA7Jr0ekSliygbbtStEft95ecebhJqewd52IZZ4aL4x0a_tG5XJCA9_i-xCkcLIFW1uSuqYKWD2OLeXPVtilD6zp_ukpi4b6-hORw9-VdX6PsxR9HV-KX9hDN_QqTTY3wjJ4S-dBneBvGlCJn4cnuJ3utEnu5w7eiRKFC3x0dFDkJIDnlOWQDQ0qGRXckcnRLmsbiybuT2px83GkxeUOW8gEWIhwM8M38bg&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which, is a download link. The file in question is in the `Apps/MyApp` Dropbox folder .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the following code to attempt to play the video:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;self.previewPlayer.replaceCurrentItem(with: AVPlayerItem(url: URL(fileURLWithPath: url)))
self.previewPlayer.play()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A few things to note:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The player doesn't do anything.&lt;/LI&gt;&lt;LI&gt;I don't get any errors or warnings in the console.&lt;/LI&gt;&lt;LI&gt;I gave the player's layer a red background colour to make sure it's being rendered, and it is.&lt;/LI&gt;&lt;LI&gt;The path I'm passing to `getTemporaryLink()` is in the format `/folder/some file.mov`.&lt;/LI&gt;&lt;LI&gt;I don't think there's anything wrong with my AVFoundation code, as using a local/remote link with a .mov file extension works as expected.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Going to the temporary link in my browser downloads the file. I'm not sure if this is expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/51663916/ios-dropbox-api-v2-stream-temporary-link-in-avplayer" target="_self"&gt;Stack Overflow post for reference&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:11:19 GMT</pubDate>
    <dc:creator>cohenadair</dc:creator>
    <dc:date>2019-05-29T09:11:19Z</dc:date>
    <item>
      <title>iOS getTemporaryLink() cannot be used for streaming</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-getTemporaryLink-cannot-be-used-for-streaming/m-p/288674#M17675</link>
      <description>&lt;P&gt;I'm trying to play a video file stored in my Dropbox folder in an `AVPlayer`. The link was retrieved using getTemporaryLink() of SwiftyDropbox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;A href="https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:FC13SwiftyDropbox11FilesRoutes16getTemporaryLinkFT4pathSS_GCS_10RpcRequestCCS_5Files32GetTemporaryLinkResultSerializerCS2_31GetTemporaryLinkErrorSerializer_" target="_self"&gt;Dropbox documentation&lt;/A&gt; states that getTemporaryLink() is used to "Get a temporary link to stream content of a file."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the link I get is in the form:&lt;/P&gt;&lt;PRE&gt;https://dl.dropboxusercontent.com/apitl/1/AAC1oJHO88Sfe7yzYA9Pz5a8n8WXu4wUQ8_xfIvmC1ks4nRk4e6i0Y29xYPjupsZZkqObkB3ZSdJA7Jr0ekSliygbbtStEft95ecebhJqewd52IZZ4aL4x0a_tG5XJCA9_i-xCkcLIFW1uSuqYKWD2OLeXPVtilD6zp_ukpi4b6-hORw9-VdX6PsxR9HV-KX9hDN_QqTTY3wjJ4S-dBneBvGlCJn4cnuJ3utEnu5w7eiRKFC3x0dFDkJIDnlOWQDQ0qGRXckcnRLmsbiybuT2px83GkxeUOW8gEWIhwM8M38bg&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which, is a download link. The file in question is in the `Apps/MyApp` Dropbox folder .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the following code to attempt to play the video:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;self.previewPlayer.replaceCurrentItem(with: AVPlayerItem(url: URL(fileURLWithPath: url)))
self.previewPlayer.play()&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A few things to note:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The player doesn't do anything.&lt;/LI&gt;&lt;LI&gt;I don't get any errors or warnings in the console.&lt;/LI&gt;&lt;LI&gt;I gave the player's layer a red background colour to make sure it's being rendered, and it is.&lt;/LI&gt;&lt;LI&gt;The path I'm passing to `getTemporaryLink()` is in the format `/folder/some file.mov`.&lt;/LI&gt;&lt;LI&gt;I don't think there's anything wrong with my AVFoundation code, as using a local/remote link with a .mov file extension works as expected.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Going to the temporary link in my browser downloads the file. I'm not sure if this is expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/51663916/ios-dropbox-api-v2-stream-temporary-link-in-avplayer" target="_self"&gt;Stack Overflow post for reference&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:11:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-getTemporaryLink-cannot-be-used-for-streaming/m-p/288674#M17675</guid>
      <dc:creator>cohenadair</dc:creator>
      <dc:date>2019-05-29T09:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: iOS getTemporaryLink() cannot be used for streaming</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-getTemporaryLink-cannot-be-used-for-streaming/m-p/288796#M17685</link>
      <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/51663916/ios-avplayer-not-playing-all-remote-files" target="_blank"&gt;https://stackoverflow.com/questions/51663916/ios-avplayer-not-playing-all-remote-files&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see you've already&amp;nbsp;received some help from someone on StackOverflow, and have determined that the issue is likely with the file itself. We can't offer help with the file or&amp;nbsp;AVPlayer themselves unfortunately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, the links returned by&amp;nbsp;getTemporaryLink are supposed to be direct links to the file, and are not meant for display in browsers, so that browser behavior you described is expected.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 15:21:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-getTemporaryLink-cannot-be-used-for-streaming/m-p/288796#M17685</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-08-03T15:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: iOS getTemporaryLink() cannot be used for streaming</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-getTemporaryLink-cannot-be-used-for-streaming/m-p/288859#M17696</link>
      <description>Yes, thanks Greg.&lt;BR /&gt;&lt;BR /&gt;Still not sure why that particular video isn't working, but it's clear that it's not a Dropbox issue.</description>
      <pubDate>Fri, 03 Aug 2018 22:16:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-getTemporaryLink-cannot-be-used-for-streaming/m-p/288859#M17696</guid>
      <dc:creator>cohenadair</dc:creator>
      <dc:date>2018-08-03T22:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: iOS getTemporaryLink() cannot be used for streaming</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-getTemporaryLink-cannot-be-used-for-streaming/m-p/408706#M22160</link>
      <description>&lt;P&gt;I have the same problem.&amp;nbsp;&lt;BR /&gt;Did you figure out why just&amp;nbsp;&lt;SPAN&gt;particular video able to play in avplayer.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 10:06:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-getTemporaryLink-cannot-be-used-for-streaming/m-p/408706#M22160</guid>
      <dc:creator>edDai</dc:creator>
      <dc:date>2020-04-10T10:06:58Z</dc:date>
    </item>
  </channel>
</rss>

