Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nutrapharm_producto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
nutrapharm_producto
Commits
ab49888b
Commit
ab49888b
authored
Jun 04, 2020
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actualizacion con cambios de miguel
parent
4bffd612
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
web/frontend/js/capture.js
web/frontend/js/capture.js
+10
-2
No files found.
web/frontend/js/capture.js
View file @
ab49888b
...
@@ -24,8 +24,16 @@
...
@@ -24,8 +24,16 @@
canvas
=
document
.
getElementById
(
'
canvas
'
);
canvas
=
document
.
getElementById
(
'
canvas
'
);
photo
=
document
.
getElementById
(
'
photo
'
);
photo
=
document
.
getElementById
(
'
photo
'
);
startbutton
=
document
.
getElementById
(
'
startbutton
'
);
startbutton
=
document
.
getElementById
(
'
startbutton
'
);
var
video_constraints
=
{
mandatory
:
{
navigator
.
mediaDevices
.
getUserMedia
({
video
:
true
,
audio
:
false
})
maxWidth
:
320
,
maxHeight
:
240
,
maxAspectRatio
:
4
/
3
,
maxFrameRate
:
60
},
optional
:
[
]
};
//navigator.mediaDevices.getUserMedia({video: true, audio: false})
navigator
.
mediaDevices
.
getUserMedia
({
video
:
video_constraints
,
audio
:
false
})
.
then
(
function
(
stream
)
{
.
then
(
function
(
stream
)
{
video
.
srcObject
=
stream
;
video
.
srcObject
=
stream
;
video
.
play
();
video
.
play
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment