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

more permissions

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