Commit 9c4c1b2d authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

test camera capabilities

parent edd334c9
......@@ -204,6 +204,8 @@ function start_video() {
mod.video.srcObject = stream
mod.video.onloadedmetadata = function(e) {
mod.video.play()
var track = stream.getVideoTracks()[0]
console.log(track.getCapabilities())
capture_video()
}
})
......
......@@ -84,14 +84,26 @@ var interface = function(div){
div.appendChild(input)
mod.width = input
//
// start scan button
// background scan button
//
div.appendChild(document.createElement('br'))
div.appendChild(document.createTextNode(' '))
var btn = document.createElement('button')
btn.style.padding = mods.ui.padding
btn.style.margin = 1
btn.appendChild(document.createTextNode('start scan'))
btn.appendChild(document.createTextNode('background scan'))
btn.addEventListener('click',function(){
linescan()
})
div.appendChild(btn)
//
// object scan button
//
div.appendChild(document.createTextNode(' '))
var btn = document.createElement('button')
btn.style.padding = mods.ui.padding
btn.style.margin = 1
btn.appendChild(document.createTextNode('object scan'))
btn.addEventListener('click',function(){
linescan()
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment