muaz-khan / RecordRTC

RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
https://www.webrtc-experiment.com/RecordRTC/
MIT License
6.59k stars 1.76k forks source link

Simple Audio Recording not working on a headless browser in iOS 12.3.1 #525

Open MxSinan opened 5 years ago

MxSinan commented 5 years ago

Hi Muaz,

I have implemented the Simple Audio Recording using RecordRTC for a web app on iOS. After the implementation I made a shortcut to iOS desktop, an app icon appeared to the web app. When opening this in a headless browser I got a popup: "this browser does not supprts webrtc getusermedia API. Which seems very strange to me, once i visit the demo page in iOS safari it does work.

Any idea what the cause could be of htis?

is the headless browser running other version of safari or so?

Is there are working solution in headless browsers?

ClOne20 commented 5 years ago

I have this bug for long now. Hope it will be fixed.

powerspowers commented 5 years ago

This is indeed the case, iOS uses a different browser module on home screen than inside Safari proper. The home screen one does not have any way to get permission from the user to use the camera and microphone so WebRTC is disabled. This makes creating video based progressive apps just about impossible unfortunately. There are many many requests into apple to enable WebRTC and getusermedia so we can record from canvas in our web apps. So far nothing is on the road map at Apple as far as I know.