Safari and Recording Audio — HTML Media Capture / getUserMedia()

前端 未结 3 1646
小蘑菇
小蘑菇 2021-01-01 06:24

It looks like getUserMedia() is now the way to go for capturing audio recordings from a user.

But that leaves out Safari and iOS Safari.

Originally I had at

3条回答
  •  渐次进展
    2021-01-01 06:50

    Safari on iOS 6+ supports the HTML Media Capture spec but only for videos and photos:

    It does not support audio only capture so the following will not produce the expected outcome:

    Android supports all 3 (video, audio, image).

    Thus support across Android and iOS is as follows:

    With Safari on iOS 10.3 the capture boolean attribute is also supported. It indicates capture directly from the webcam is preferred. When used, the option to choose an existing video or image will not be offered on Safari on iOS 10.3+:

    I've written more on the HTML Media Capture topic at https://addpipe.com/blog/correct-syntax-html-media-capture/

提交回复
热议问题