Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions assets/app.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
$(function(){
console.log("bublo will run this code");
var video = document.getElementById('video');
if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
navigator.mediaDevices.getUserMedia({ video: true }).then(function (stream) {
video.src = window.URL.createObjectURL(stream);
video.play();
try{
video.src = window.URL.createObjectURL(stream);
//video.srcObject = stream;
//video.play();
} catch(e){
console.log("cant play video:");
console.log(e);
video.srcObject = stream;
video.play();

}

});
}

Expand Down Expand Up @@ -38,7 +49,8 @@ $(function(){
return
}
if (!resp.matched) {
button.transition("shake")
$('.info.message').text("sorry no match").fadeIn()
// button.transition("shake")
return
}
$('.info.message').text("Hello " + resp.name).fadeIn()
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os"

"github.com/machinebox/sdk-go/facebox"
"github.com/machinebox/sdk-go/x/boxutil"
"github.com/machinebox/sdk-go/boxutil"
)

func main() {
Expand Down