You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ni...@apache.org on 2015/05/13 23:15:04 UTC
[09/14] cordova-windows git commit: Bugfix: Win10 - Fast fail on
Hardware access
Bugfix: Win10 - Fast fail on Hardware access
Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/89745f52
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/89745f52
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/89745f52
Branch: refs/heads/master
Commit: 89745f525e13b4f60882e6f7a1ea3e96e94b8744
Parents: 0d2387d
Author: Rob Paveza <Ro...@microsoft.com>
Authored: Tue Apr 28 15:34:13 2015 -0700
Committer: Parashuram <co...@nparashuram.com>
Committed: Tue Apr 28 15:35:30 2015 -0700
----------------------------------------------------------------------
template/package.windows10.appxmanifest | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/89745f52/template/package.windows10.appxmanifest
----------------------------------------------------------------------
diff --git a/template/package.windows10.appxmanifest b/template/package.windows10.appxmanifest
index e59e019..a435b14 100644
--- a/template/package.windows10.appxmanifest
+++ b/template/package.windows10.appxmanifest
@@ -68,6 +68,16 @@
<Capabilities>
<Capability Name="internetClient" />
+
+ <!-- Windows 10 Technical Preview 2 has a bug in which enumerating
+ devices fails if you don't have the capability for those devices.
+ This bug causes a fast-fail (no JavaScript handling of the error).
+ An implementation detail of the Web Platform accessors of hardware
+ causes these to be aggressively enumerated, therefore, we ask
+ for the device capabilities up front. This will be removed in a
+ later version of cordova-windows. -->
+ <DeviceCapability Name="webcam" />
+ <DeviceCapability Name="microphone" />
</Capabilities>
</Package>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org