native upload

This commit is contained in:
Tropicananass 2022-03-14 20:53:37 +01:00
parent bef35052b1
commit 83bcf1f70a
2 changed files with 9 additions and 2 deletions

View File

@ -10,7 +10,14 @@
</head>
<body>
<video autoplay></video>
<div>
<input type="file" accept="video/*" capture>
<input type="file" accept="video/*">
<input type="file" accept="video/*,image/*">
</div>
<div>
<video autoplay></video>
</div>
<script src="index.js"></script>
</body>

View File

@ -5,7 +5,7 @@ function hasGetUserMedia() {
function getDeviceAccess() {
const constraints = {
video: true,
audio: true
// audio: true
};
const video = document.querySelector("video");