<?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: Can't stream my videos beacause of cors in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321420#M18926</link>
    <description>&lt;P&gt;The unsupported form of shared links is subject to change/break without warning.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jan 2019 17:16:00 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-01-04T17:16:00Z</dc:date>
    <item>
      <title>Can't stream my videos beacause of cors</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321397#M18919</link>
      <description>&lt;P&gt;Hello, I tried to stream my videos from dropbox in my site with shared with javascript to create blob source link but there is an issue with cors,&lt;/P&gt;&lt;P&gt;the code&lt;/P&gt;&lt;PRE&gt;&amp;lt;video id="my-video" class="video-js" controls preload="metadata" width="640" height="264"
   data-setup="{}"&amp;gt;
  &amp;lt;/video&amp;gt;

&amp;lt;script type="text/javascript"&amp;gt;
		var xhr = new XMLHttpRequest();
		xhr.responseType = 'blob';

		xhr.onload = function() {
		  
		  var reader = new FileReader();
		  
		  reader.onloadend = function() {
		  
		    var byteCharacters = atob(reader.result.slice(reader.result.indexOf(',') + 1));
		    
		    var byteNumbers = new Array(byteCharacters.length);

		    for (var i = 0; i &amp;lt; byteCharacters.length; i++) {
		      
		      byteNumbers[i] = byteCharacters.charCodeAt(i);
		      
		    }

		    var byteArray = new Uint8Array(byteNumbers);
		    var blob = new Blob([byteArray], {type: 'video/ogg'});
		    var url = URL.createObjectURL(blob);
		    
		    document.getElementById('my-video').src=url;
		    
		  }
		  
		  reader.readAsDataURL(xhr.response);
		  
		};

		xhr.open('GET', 'https://www.dropbox.com/s/0tztdjct8uuwgl5/flowers.mp4?dl=1');
		xhr.send();

	&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;What can i do?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:08:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321397#M18919</guid>
      <dc:creator>alaaNabawy</dc:creator>
      <dc:date>2019-05-29T09:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can't stream my videos beacause of cors</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321400#M18920</link>
      <description>&lt;P&gt;The '&lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt; site' doesn't allow CORS like this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can technically make this work using 'dl.dropboxusercontent.com' (e.g., "&lt;A href="https://dl.dropboxusercontent.com/s/0tztdjct8uuwgl5/flowers.mp4" target="_blank"&gt;https://dl.dropboxusercontent.com/s/0tztdjct8uuwgl5/flowers.mp4&lt;/A&gt;"), but please note that isn't officially supported.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 16:12:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321400#M18920</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-04T16:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't stream my videos beacause of cors</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321403#M18922</link>
      <description>&lt;P&gt;How can i do that with dropbox api?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 16:23:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321403#M18922</guid>
      <dc:creator>alaaNabawy</dc:creator>
      <dc:date>2019-01-04T16:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can't stream my videos beacause of cors</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321409#M18924</link>
      <description>&lt;P&gt;You can &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links" target="_self"&gt;list existing shared links&lt;/A&gt; or &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_self"&gt;create new shared links&lt;/A&gt; using the&amp;nbsp;Dropbox API. The&amp;nbsp;Dropbox API only returns the&amp;nbsp;supported version of the links. If you want to use the unsupported versions, you'd have to perform the string modification in your code.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 16:38:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321409#M18924</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-04T16:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can't stream my videos beacause of cors</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321410#M18925</link>
      <description>&lt;P&gt;Is there any expected problems if i use unsupported version?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 16:41:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321410#M18925</guid>
      <dc:creator>alaaNabawy</dc:creator>
      <dc:date>2019-01-04T16:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't stream my videos beacause of cors</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321420#M18926</link>
      <description>&lt;P&gt;The unsupported form of shared links is subject to change/break without warning.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 17:16:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321420#M18926</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-04T17:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't stream my videos beacause of cors</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321465#M18931</link>
      <description>&lt;P&gt;I can't understand your last comment?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 20:55:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321465#M18931</guid>
      <dc:creator>alaaNabawy</dc:creator>
      <dc:date>2019-01-04T20:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't stream my videos beacause of cors</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321466#M18932</link>
      <description>&lt;P&gt;The "dl.dropboxusercontent.com" shared links currently happen to work for this, but I can't promise they will continue to.&amp;nbsp;It may break without warning.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 21:07:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321466#M18932</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-04T21:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't stream my videos beacause of cors</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321481#M18933</link>
      <description>&lt;P&gt;Please review that&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/54046326/curl-code-request-for-my-code-in-php-to-make-a-request" target="_self"&gt;https://stackoverflow.com/questions/54046326/curl-code-request-for-my-code-in-php-to-make-a-request&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 21:55:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321481#M18933</guid>
      <dc:creator>alaaNabawy</dc:creator>
      <dc:date>2019-01-04T21:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can't stream my videos beacause of cors</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321842#M18937</link>
      <description>&lt;P&gt;It looks like you're requesting sample code for calling &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links" target="_self"&gt;/2/sharing/list_shared_links&lt;/A&gt;&amp;nbsp;from PHP. I don't have a sample for that endpoint in PHP unfortunately. Please write the code you need, using the documentation and curl example as a reference, and let us know if something isn't working as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 15:32:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-stream-my-videos-beacause-of-cors/m-p/321842#M18937</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-07T15:32:22Z</dc:date>
    </item>
  </channel>
</rss>

