Merge branch 'CorentinTh:main' into main
This commit is contained in:
		
						commit
						b24090494f
					
				@ -28,6 +28,7 @@ const permissionCannotBePrompted = ref(false);
 | 
				
			|||||||
const {
 | 
					const {
 | 
				
			||||||
  stream,
 | 
					  stream,
 | 
				
			||||||
  start,
 | 
					  start,
 | 
				
			||||||
 | 
					  stop,
 | 
				
			||||||
  enabled: isMediaStreamAvailable,
 | 
					  enabled: isMediaStreamAvailable,
 | 
				
			||||||
} = useUserMedia({
 | 
					} = useUserMedia({
 | 
				
			||||||
  constraints: computed(() => ({
 | 
					  constraints: computed(() => ({
 | 
				
			||||||
@ -83,6 +84,8 @@ watchEffect(() => {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					onBeforeUnmount(() => stop());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
async function requestPermissions() {
 | 
					async function requestPermissions() {
 | 
				
			||||||
  try {
 | 
					  try {
 | 
				
			||||||
    await ensurePermissions();
 | 
					    await ensurePermissions();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user