You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to emscripte...@googlegroups.com
hi there,
I'm having trouble inserting some JS code inside EM_ASM_INT; it seems
the C++ compiler wants to parse it somehow:
int res = EM_ASM_INT({
var md = window.navigator.mediaDevices;
var req = md.getUserMedia({ audio: true });
req.then(function(stream)) {
// TODO
}).catch(function(err) {
console.log("Error: could not obtain audio input device");
});
}, 1234);