Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

reprompt for permissions with getUserMedia() after initial denial

navigator.permissions.query({name: 'microphone'})
 .then((permissionObj) => {
  console.log(permissionObj.state);
 })
 .catch((error) => {
  console.log('Got error :', error);
 })

 navigator.permissions.query({name: 'camera'})
 .then((permissionObj) => {
  console.log(permissionObj.state);
 })
 .catch((error) => {
  console.log('Got error :', error);
 })
Comment

PREVIOUS NEXT
Code Example
Javascript :: js array find first match 
Javascript :: can i use promise.all conditional in vue js 
Javascript :: google sheets simulate edit event 
Javascript :: remove property from query string javascript 
Javascript :: Collision between two div vanillaJS no detection 
Javascript :: js hex to string 
Javascript :: json schema script 
Javascript :: data error in jquery validate add custom element 
Javascript :: acender lampada javascript 
Javascript :: react foreach loop 
Javascript :: parse thymeleaf variable onclick 
Javascript :: Half or Left Triangle Pattern in JavaScript 
Javascript :: Import UI library modularized in nuxtjs 
Javascript :: jboss-ejb-client.propeties exampe de configuration 
Javascript :: python to javascript online 
Javascript :: facade js 
Javascript :: template literals multiline js 
Javascript :: lowest index 
Javascript :: FTP upload local file 
Javascript :: how can i use two api at the same time in angular 
Javascript :: get day in google app script 
Javascript :: Play Gif or Video On hover Jquery 
Javascript :: Domafter injection bottom 
Javascript :: react controllers 
Javascript :: ASPxGridView - How to trigger the CustomButtonCallback event 
Javascript :: key index split 
Javascript :: downlaod file from website raect2 
Javascript :: how to create an object that stores personal data in javascript 
Javascript :: combine strings in angularjs 
Javascript :: code of copy button in js 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =