Commit 20f56d73 by Иван Кубота

more permissions

parent c189ee98
......@@ -397,9 +397,10 @@ Screen.Conference = function() {
} else if (result.state === 'prompt') {
console.log('waiting permission')
try{
await new Promise(((resolve, reject) => {
await new Promise(((r1, reject) => {
navigator.mediaDevices.getUserMedia( { video: { width: 1280, height: 720 } } )
.then( function( stream ){
r1();
resolve();
} )
.catch( function( err ){
......@@ -412,7 +413,7 @@ Screen.Conference = function() {
}
}else{
reject();
}
......
Markdown is supported
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