在谷歌浏览器中激活麦克风时出错

问题描述 投票:0回答:1

我正在尝试启用麦克风以允许用户录制音频,但出现此错误:

Uncaught TypeError:无法读取未定义的属性'getUserMedia'在ActivateMicrophone

navigator.mediaDevices.getUserMedia({audio: true, video:false})
            .then(stream => {
                handlerFunction(stream, $audioSelect.siblings(".recordedAudio"));
                $(".record").prop("disabled", false);
            })
javascript html google-chrome microphone
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.