I am trying to record audio on iOS Safari (13.2.3), but Safari is not providing access to the microphone.(我正在尝试在iOS Safari(13.2.3)上录制音频,但Safari不提供对麦克风的访问。)
When I call navigator.mediaDevices.enumerateDevices
, it only returns a single MediaDeviceInfo
(kind: videoinput
)(当我调用navigator.mediaDevices.enumerateDevices
,它仅返回一个MediaDeviceInfo
(种类: videoinput
))
I read elsewhere to call navigator.mediaDevices.getUserMedia({audio: true})
first, but that gives an Invalid constraint error.(我在其他地方读过,首先要调用navigator.mediaDevices.getUserMedia({audio: true})
,但这会导致无效约束错误。) getSupportedConstraints
does not show that audio/video are valid options (only aspectRatio, deviceId, echoCancellation, facingMode, frameRate, groupId, height, sampleRate, sampleSize, volume, width
).(getSupportedConstraints
没有显示音频/视频是有效选项(仅aspectRatio, deviceId, echoCancellation, facingMode, frameRate, groupId, height, sampleRate, sampleSize, volume, width
)。)
This is on an ipod touch 7th edition, which definitely has a microphone;(这是在ipod touch第七版上,它肯定有麦克风。) eg.(例如。) Siri can hear me.(Siri可以听到我的声音。) I'm not sure why the microphone isn't showing up for Safari, while the camera is.(我不确定为什么没有摄像头的麦克风无法显示在Safari中。)
ask by Chris translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…