Type
This commit is contained in:
parent
77da0c912f
commit
f808c56121
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ export async function findDeviceByName(
|
|||
* @return The available media devices
|
||||
*/
|
||||
export async function getDevices(): Promise<MediaDeviceInfo[]> {
|
||||
let stream;
|
||||
let stream: MediaStream;
|
||||
try {
|
||||
stream = await navigator.mediaDevices.getUserMedia({
|
||||
audio: true,
|
||||
|
|
Loading…
Reference in a new issue