<?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 Hi Paul, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103717#M69701</link>
    <description>&lt;P&gt;Hi Paul,&lt;/P&gt;

&lt;P&gt;Thanks for the reply and for the link! As i'm not experienced with coding (C2 user), i'm not sure what to look for. There is a lot of whitelist options to mess with, and as i can see, the most of them are already setup on build settings tab on Intel XDK. The error appear when trying to load a file from an &lt;A href="http://localhost:.../myVideo" target="_blank"&gt;http://localhost:.../myVideo&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'm not sure if it is a network request, an allow-navigation or an intent...&lt;/P&gt;

&lt;P&gt;Can you tell me which one do you think that applies to this case?&lt;/P&gt;

&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Dec 2016 12:10:00 GMT</pubDate>
    <dc:creator>Bava__Arthur</dc:creator>
    <dc:date>2016-12-04T12:10:00Z</dc:date>
    <item>
      <title>Failed to load resource: 401 (Unauthorized)</title>
      <link>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103715#M69699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to publish my Construct 2 game, and after exporting to Intel XDK the game wont start using Simulate or Test tabs. Error: "failed to load resource: the server responded with a status of 401 (Unauthorized) ... http://localhost:65129/Vinheta.webm". T&lt;SPAN style="font-size: 13.008px;"&gt;his file is a video that is supposed to run at the start of the game.&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;The strange thing is that it runs without any errors on Debug tab...&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;So i decided to build the app anyway hoping it could work on my device...but without success.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;If i change the code on Construct 2 to skip the video, then the app runs perfectly.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I've also tried to build with phonegap and for my surprise the video play just fine, no errors at all... but the performance is ridiculous compared to Intel XDK.&lt;/P&gt;

&lt;P&gt;Ended up with this video playback problem. Already thought that i may use some specific plugin for doing it, but if this is a need, then why it works on phonegap and in Debug tab?&lt;/P&gt;

&lt;P&gt;May someone help me with this?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 18:31:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103715#M69699</guid>
      <dc:creator>Bava__Arthur</dc:creator>
      <dc:date>2016-12-03T18:31:55Z</dc:date>
    </item>
    <item>
      <title>I suspect you have to</title>
      <link>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103716#M69700</link>
      <description>&lt;P&gt;I suspect you have to configure your whitelist settings to get it to work properly in the built app. The whitelist settings in the Debug tab are "wide open" to make sure things work (as is the Test tab). Not sure why it didn't work in the Test tab, but that's probably why it's not working in the built app. See this doc page for help with whitelists &amp;gt; &lt;A href="https://software.intel.com/en-us/xdk/docs/using-cordova-whitelist-rules-with-intel-xdk" target="_blank"&gt;https://software.intel.com/en-us/xdk/docs/using-cordova-whitelist-rules-with-intel-xdk&lt;/A&gt; &amp;lt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2016 00:16:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103716#M69700</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-12-04T00:16:24Z</dc:date>
    </item>
    <item>
      <title>Hi Paul,</title>
      <link>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103717#M69701</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;

&lt;P&gt;Thanks for the reply and for the link! As i'm not experienced with coding (C2 user), i'm not sure what to look for. There is a lot of whitelist options to mess with, and as i can see, the most of them are already setup on build settings tab on Intel XDK. The error appear when trying to load a file from an &lt;A href="http://localhost:.../myVideo" target="_blank"&gt;http://localhost:.../myVideo&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'm not sure if it is a network request, an allow-navigation or an intent...&lt;/P&gt;

&lt;P&gt;Can you tell me which one do you think that applies to this case?&lt;/P&gt;

&lt;P&gt;Thank you very much!&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2016 12:10:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103717#M69701</guid>
      <dc:creator>Bava__Arthur</dc:creator>
      <dc:date>2016-12-04T12:10:00Z</dc:date>
    </item>
    <item>
      <title>You cannot do a "localhost"</title>
      <link>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103718#M69702</link>
      <description>&lt;P&gt;You cannot do a "localhost" load in a Cordova app, there is no server present to respond to the request. Changing it to a file:// URL might be sufficient, but a better solution would be to either use an existing HTML5 audio/video API or a Cordova plugin that handles audio/video playback directly from a file.&lt;/P&gt;

&lt;P&gt;The details are beyond the support we are able to provide in this forum, I suggest you look for solutions under the PhoneGap and Cordova tags in Stack Overflow. The XDK builds a standard Cordova (aka PhoneGap) app, those solutions will work here.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 17:53:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103718#M69702</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-12-06T17:53:43Z</dc:date>
    </item>
    <item>
      <title>p.s. The "hello cordova"</title>
      <link>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103719#M69703</link>
      <description>&lt;P&gt;p.s. The "hello cordova" sample app provides a very simply playback of audio, to give you one idea, but that may not be sufficient for what you're trying to do.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 17:55:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103719#M69703</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-12-06T17:55:29Z</dc:date>
    </item>
    <item>
      <title>Hi Paul,</title>
      <link>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103720#M69704</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;

&lt;P&gt;Thanks again! I'm not trying to do a "localhost" on my app, as i'm not sure what to do. I'm just trying to follow the error and maybe find what is going wrong. In the simulate tab, the error is followed by an adress "http://localhost:(some number)/Vinheta.webm" so i suppose that i have to authorize the access to this file.&lt;/P&gt;

&lt;P&gt;I also read something about absolute and relative paths could give this kind of error, but &amp;nbsp;i'm not sure if i got it right. If so, i need to find the absolute path for it, but t&lt;SPAN style="font-size: 1em;"&gt;hen it occurs me that after building the app, this file should be somewhere else inside the mobile device and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;maybe&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;the absolute path wont work...just trying all possible ways that i can figure out on my own.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;BTW,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;How can i change it to a file://URL?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Do i need a plugin for playing video files?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I read that some browsers could not start playing a video without some kind of user input, or trigger. Do you know something about it?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 20:51:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103720#M69704</guid>
      <dc:creator>Bava__Arthur</dc:creator>
      <dc:date>2016-12-06T20:51:00Z</dc:date>
    </item>
    <item>
      <title>After re-reading your</title>
      <link>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103721#M69705</link>
      <description>&lt;P&gt;After re-reading your original post, it still sounds like the whitelist is the problem. See this page &amp;gt; &lt;A href="https://software.intel.com/en-us/xdk/articles/cordova-whitelisting-with-intel-xdk-for-ajax-and-launching-external-apps" target="_blank"&gt;https://software.intel.com/en-us/xdk/articles/cordova-whitelisting-with-intel-xdk-for-ajax-and-launching-external-apps&lt;/A&gt; &amp;lt; and please setup your whitelist and CSP rule per the recommendations on that page. In particular, try putting the following in the whitelist field for Android:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2016-12-06 at 14.26.16 .png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9284i3762E0B02FEEB48E/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screen Shot 2016-12-06 at 14.26.16 .png" alt="Screen Shot 2016-12-06 at 14.26.16 .png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;And the following for iOS:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2016-12-06 at 14.26.36 .png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9285i28C64A1456C34868/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screen Shot 2016-12-06 at 14.26.36 .png" alt="Screen Shot 2016-12-06 at 14.26.36 .png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;And try adding '*' in the Navigation field if those don't work.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 22:28:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103721#M69705</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-12-06T22:28:44Z</dc:date>
    </item>
    <item>
      <title>Hi Paul,</title>
      <link>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103722#M69706</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;

&lt;P&gt;I really appreciated your help, thanks!!! I'm actually publishing for Android, but this information will be very usefull indeed. My whitelist configuration was exactly as in the picture you've posted. I also tried to add the * to the navigation field, but it results the same.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The image bellow has some information on the error i'm facing...&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Intel XDK simulate Error log image.jpg"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9286iFFFC6CCFCAB2EC2E/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Intel XDK simulate Error log image.jpg" alt="Intel XDK simulate Error log image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;There is one weird things in this log: the file type is showing as text/plain ?! I've double checked that the file in my www project folder is working nice.&lt;/P&gt;

&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 23:26:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103722#M69706</guid>
      <dc:creator>Bava__Arthur</dc:creator>
      <dc:date>2016-12-06T23:26:00Z</dc:date>
    </item>
    <item>
      <title>Hi Paul,</title>
      <link>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103723#M69707</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;

&lt;P&gt;The problem is solved. This happens because of some browsers can not play a video without a user input. After adding a button triggering the video the problem was gone.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Here is what was posted on Scirra website:&lt;/P&gt;

&lt;H3 id="h2ix2" style="margin-top: 28px; margin-left: 15px; border: 0px; color: rgb(99, 99, 99); text-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 0px; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;"&gt;Compatibility&lt;/H3&gt;

&lt;P style="margin-top: 10px; margin-bottom: 20px; margin-left: 15px; line-height: 22px; color: rgb(102, 102, 102); font-size: 14px; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;"&gt;On Safari for iOS and Chrome for Android, video playback cannot begin unless triggered by a user input event. The&amp;nbsp;&lt;EM&gt;Play&lt;/EM&gt;&amp;nbsp;action will work in a user input trigger like&amp;nbsp;&lt;EM&gt;On touch start&lt;/EM&gt;, but if done outside of that it cannot play right away. To work around this the video plugin will wait until the next touch event to start playing the video. This also applies to autoplaying videos: it will not start until the first touch.&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 20px; margin-left: 15px; line-height: 22px; color: rgb(102, 102, 102); font-size: 14px; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;"&gt;Sorry...&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 20px; margin-left: 15px; line-height: 22px; color: rgb(102, 102, 102); font-size: 14px; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;"&gt;I would like to thank you anyway, for your time and effort helping me!&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 20px; margin-left: 15px; line-height: 22px; color: rgb(102, 102, 102); font-size: 14px; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;"&gt;Best regards!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 03:13:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103723#M69707</guid>
      <dc:creator>Bava__Arthur</dc:creator>
      <dc:date>2016-12-07T03:13:12Z</dc:date>
    </item>
    <item>
      <title>Glad to hear that you figured</title>
      <link>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103724#M69708</link>
      <description>&lt;P&gt;Glad to hear that you figured it out!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 04:40:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Failed-to-load-resource-401-Unauthorized/m-p/1103724#M69708</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-12-07T04:40:43Z</dc:date>
    </item>
  </channel>
</rss>

