forked from microsoft/Windows-universal-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcamera.html
41 lines (35 loc) · 1.32 KB
/
camera.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!--
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CameraStarterKit</title>
<!-- WinJS references -->
<link href="/WinJS/css/ui-dark.css" rel="stylesheet">
<script src="/WinJS/js/base.js"></script>
<script src="/WinJS/js/ui.js"></script>
<!-- CameraStarterKit references -->
<link href="/css/camera.css" rel="stylesheet">
<script src="/js/camera.js"></script>
</head>
<body class="win-type-body">
<video id="cameraPreview" class="cameraPreview"></video>
<div class="stackPanel">
<button id="photoButton" class="cameraButton win-button" data-win-control="WinJS.UI.AppBarCommand" data-win-options="{icon:'camera'}">
</button>
<button id="videoButton" class="cameraButton win-button" data-win-control="WinJS.UI.AppBarCommand" data-win-options="{icon:'video'}">
</button>
</div>
</body>
</html>