question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Muting through API on mobile

See original GitHub issue

Since player.setVolume(0) doesn’t work on mobile (actually, it’ll unmute the video if it was muted before), is there a way to mute the video through the API?

Edit: player.setVolume(0) works as expected on Android, but not on iOS (Chrome and Safari).

Edit2: I’m using pause instead of mute on iOS for now, if anyone has a better solution, please let me know.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
luwescommented, Jan 9, 2019

In the meantime setVolume(0) and setVolume(1) will work on iOS. We made some internal changes that fixed this issue.

0reactions
satishVekariyacommented, Feb 6, 2020

in iOS using setVolume(0) and setVolume(1) cause may app audio interrupt!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

New REST API endpoints for Mute functionality
To mute or unmute a user you would use the POST mutes/users/create and POST mutes/users/destroy endpoints respectively. To find out whether an authenticated ......
Read more >
POST mutes/users/create | Docs | Twitter Developer Platform
Mutes the user specified in the ID parameter for the authenticating user. Returns the muted user when successful. Returns a string describing the...
Read more >
Programmatically muting mobile in expo - Stack Overflow
Is it possible to call a system level API and programmatically mute the volume of a mobile device? Been reading through the Audio...
Read more >
Add Muting and Unmuting to Your Video Chat App in ... - Twilio
Learn how to enable your users to mute and unmute their audio and video tracks in your video chat apps powered by Twilio...
Read more >
Is there API support for the new alert muting feature?
Is there a way to interact with/edit/enable/disable these rules programmatically via API? We'd like to add disabling and reenabling all of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found