如何从JavaScript加载Win8本机相机应用程序(metro)

时间:2013-11-22 22:33:10

标签: javascript windows-8 camera microsoft-metro

我正在开发一个来自javascript的应用程序,需要按一个按钮并打开原生相机应用程序,到目前为止我有这个:

<html>
    <head>
        <title></title>
        <LINK href="css.css" rel="stylesheet" type="text/css">    
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script>
        function capturePhoto() {
            window.open("microsoftvideo:///","_self");
        }
        </script>
    </head>
    <body>
        <div id="Bar">
            <button id="cmdCamera" value="Picture" onclick="capturePhoto();">Load Picture...</button>
            <input type="file" />
        </div>

     </body>
</html>

  

window.open( “microsoftvideo:///”, “_self”);

是关键,因为你可以从WebBrowser地址字段调用它们的Metro应用程序,就像去任何网站,我可以从那里打开任何地铁应用程序

  • 音乐应用:microsoftmusic:///
  • 新闻应用:bingnews:///
  • 视频应用:microsoftvideo:///

但我不知道调用相机应用程序的任何帮助我会感激

0 个答案:

没有答案
相关问题