Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toggleAudio not working on iOS safari #42

Closed
elmartino opened this issue May 12, 2020 · 2 comments
Closed

toggleAudio not working on iOS safari #42

elmartino opened this issue May 12, 2020 · 2 comments

Comments

@elmartino
Copy link

Hello,

I have a problem with toggleAudio to mute the microphone (from the react example) in iOS safari.
toggleAudio() { eyeson.send({ type: 'change_stream', stream: this.state.localStream, video: this.state.video, audio: !this.state.audio, }); this.state.audio = !this.state.audio; }

It is working on desktop. toggleVideo is working like expected (also in iOS safari). Do i need to do something special to make this working in iOS?

Thanks!

Martin

@unused
Copy link
Contributor

unused commented May 15, 2020

Thank you, I'll check if there is an update missing 👍

@opusonline
Copy link
Member

Hi,
Thanks for reporting!

To avoid issues with iOS, you should use another strategy to toggle audio.

The eyeson plugin provides the StreamHelpers class with enableAudio and disableAudio functions.

Here's an example: https://github.com/eyeson-team/react-web-gui-example/blob/master/src/App.js#L48

Best regards,
Stefan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants