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

Call sound should also be disabled #209

Closed
fregante opened this issue May 16, 2017 · 10 comments · Fixed by #1273
Closed

Call sound should also be disabled #209

fregante opened this issue May 16, 2017 · 10 comments · Fixed by #1273
Labels
bug 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt help wanted

Comments

@fregante
Copy link

fregante commented May 16, 2017

Issuehunt badges

Settings: sounds disabled

The Sound is disabled in the settings, but I still hear the sound when I receive a call.

Calls also seem to be bypass the Desktop Notification setting.

Edit: This is not a Caprine bug but a Messenger "feature". Perhaps Caprine can fix it.


IssueHunt Summary

lukks lukks has been rewarded.

Backers (Total: $50.00)

Submitted pull Requests


Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

@piomar123
Copy link

What's your actual use case of this? Do you want to disable all the sounds or allow to have notification sounds but mute ringing only?

@fregante
Copy link
Author

Disable all sounds, especially because the ringtone they chose is obnoxious.

@piomar123
Copy link

My current idea is to use setAudioMuted(true). It seems to work but if you want to actually answer or make a voice call, you need to disable the mute (it would be nice to detect it automatically).
You can find my draft here: https://github.com/piomar123/caprine/tree/209-disable-call-sound

@fregante fregante changed the title Call sound is not disabled Call sound should also be disabled Mar 21, 2019
@IssueHuntBot
Copy link

@IssueHunt has funded $50.00 to this issue.


@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label May 10, 2019
@whitecrownclown
Copy link
Contributor

@piomar123 Wouldn't that disable all audio from the app? Including videos that you might want to play from a conversation. It would be cumbersome to toggle the option in order to watch a video with sound.

@piomar123
Copy link

@whitecrownclown Yes, it disables all audio. I wrote that in my comment up above - it should automatically detect playing videos and doing calls if this way of muting audio is chosen.

@fregante
Copy link
Author

fregante commented Jul 7, 2019

I think that doesn’t work if you’re watching a video and someone calls. It’s best to locate and deactivate the sound (block the HTTP or break the Web Audio API used)

@piomar123
Copy link

The question is what's easier - detecting incoming call and muting vs. blocking HTTP requests

@LuKks
Copy link

LuKks commented Feb 17, 2020

My pull request, as @fregante said, it will block the HTTP request for the call sound (there is a content-md5 header, in that way it find the sound), I also added an option to enable/disable the feature.

Due HTTP cache, for example, if the ringtone plays and now you disable it, the sound is already cached so you will need to restart the app.

@issuehunt-oss
Copy link

issuehunt-oss bot commented Mar 6, 2020

@sindresorhus has rewarded $45.00 to @lukks. See it on IssueHunt

  • 💰 Total deposit: $50.00
  • 🎉 Repository reward(0%): $0.00
  • 🔧 Service fee(10%): $5.00

@issuehunt-oss issuehunt-oss bot added 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt and removed 💵 Funded on Issuehunt This issue has been funded on Issuehunt labels Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🎁 Rewarded on Issuehunt This issue has been rewarded on Issuehunt help wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants