microphone icon indicating copy to clipboard operation
microphone copied to clipboard

IOS browser not working

Open flozi00 opened this issue 4 years ago • 12 comments

On IOS devices we only get an error without message, just line reference to the compiled dart js file. We are ruinning the demo from pub.dev

flozi00 avatar Jan 18 '21 14:01 flozi00

Hi @flozi00 :)

Thanks for opening the issue!

According to the MediaRecorder support page, it seems that Safari does not support it.

Potential solution

Can you try https://www.educative.io/edpresso/how-to-enable-the-mediarecorder-api-for-safari?

If that works for you, I could add it to the README. If not, we can search for a workaround, however, there might not be one.

The MediaRecorder won't work in production enviroments. Could you add an alternative for Safari Desktop and mobile ?

flozi00 avatar Jan 19 '21 14:01 flozi00

@flozi00 I am not sure what you mean with production environments.

I think what I sent you is the way to use MediaRecorder in Safari. This has nothing to do with the plugin but Safari being behind in support.

If you tell me what else we can use, I appreciate any idea / contribution 🙂 I am not too keen on polyfills, however.

I mean an solution where the end user does not need to change any settings on device. Produktion environment = call the website and use instantly without anything to do on device or settings

flozi00 avatar Jan 19 '21 20:01 flozi00

@flozi00 I understand, however, this will not be possible without the setting using MediaRecorder for a while. Sooner or later it will not be experimental anymore and not require a setting.

You are welcome to contribute polyfills 😃

If anyone else is interested in doing so, the same applies of course 🙂

Any updates on this one?

one1note avatar Apr 18 '22 10:04 one1note

I think safari should support Mediarecorder now

flozi00 avatar May 02 '22 05:05 flozi00

@flozi00 seems like it - can you confirm that the plugin is also working on Safari? Then we could close this issue.

No it doesnt work.

wytex avatar Aug 02 '22 06:08 wytex

I have found a way to push request on Safari: window.navigator.mediaDevices?.getUserMedia({'audio': true}).then((value) => print(value)); safari prompt the alert but the application wont work as well with this error: Error: Bad state: Not connected to an application.

wytex avatar Aug 22 '22 13:08 wytex

Any solution or updates about this issue ?

Unevenn avatar Mar 18 '23 17:03 Unevenn

@Unevenn everything is documented in this issue. If you really want this to work, you could try where the approach mentioned by @wytex leads you and if you find a solution, you can create a pull request with an implementation.