Closed Bug 837477 Opened 11 years ago Closed 11 years ago

Cannot lower volume of camera shutter sound

Categories

(Firefox OS Graveyard :: Gaia, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-, b2g18+ fixed)

RESOLVED FIXED
blocking-b2g -
Tracking Status
b2g18 + fixed

People

(Reporter: overholt, Assigned: baku)

References

Details

Attachments

(1 file, 1 obsolete file)

The camera shutter sound (see [1] before you say that this is the law :) ) still plays very loudly when the volume that I can change with the hardware buttons while on the home screen (Jonas says it's the ringer volume only) is at zero.  My Android phone mutes its camera shutter sound when I have the phone volume at zero.

Unagi
2013-01-31 nightly build

[1]
http://android.stackexchange.com/questions/32442/jurisdictions-where-camera-shutter-sound-is-mandated-by-law
Is it adjustable or only could be muted? My android phone's camera is not mutable nor adjustable.
Depends on: 819842
(In reply to Alive Kuo [:alive] from comment #1)
> Is it adjustable or only could be muted? My android phone's camera is not
> mutable nor adjustable.

My android phone allows its camera "shutter" volume to be adjusted *and* muted.  I have a Galaxy Nexus running Jelly Bean.
Currently the shutter is set to use 'public notification' audio channel.
Probably we should just change it to 'notification'.
Attached patch patch (obsolete) — Splinter Review
Attachment #709683 - Flags: review?(dale)
Assignee: nobody → amarchesini
Comment on attachment 709683 [details] [diff] [review]
patch

Review of attachment 709683 [details] [diff] [review]:
-----------------------------------------------------------------

I believe you forget the permission in manifest.
Also, system app has a copy of camera app in run time.

Is it to say we abandon the publicnotification channel forever?
Attachment #709683 - Flags: review?(dale)
Attachment #709683 - Flags: review-
Attachment #709683 - Flags: feedback?(jonas)
Is it possible that we link publicnotification volume with notification one (In Gaia)?
And we add a new pref to control whether this link is existing or not.
So for partner's point of view, they can decide this behavior by themselves.

1. Link public with notification?
2. public can't be muted?
> Also, system app has a copy of camera app in run time.

I dont know if thats what you mean but just a heads up that doesnt mean there needs to be any changes in the homescreen apart from permissions, the app is copied at build time
Where else do we use public notifications?
Attached patch patch bSplinter Review
Attachment #709683 - Attachment is obsolete: true
Attachment #709683 - Flags: feedback?(jonas)
Attachment #710097 - Flags: review?(alive)
Attachment #710097 - Flags: feedback?(jonas)
blocking-b2g: tef? → -
tracking-b2g18: --- → +
I realized you can turn this sound off entirely in the settings so I'm less concerned about this :)
Comment on attachment 710097 [details] [diff] [review]
patch b

Review of attachment 710097 [details] [diff] [review]:
-----------------------------------------------------------------

This is fine with me. Does it affect if we play the audio through headphones and/or speaker? I.e. do we have different policies for "publicnotification" vs. "notification"?

If so an option would be to make "publicnotification" and "notifiaction" use the same volume setting.
Attachment #710097 - Flags: feedback?(jonas) → feedback+
The notification & publicnotification will all go through speaker & headset. But in Android audio policy there is a property called ro.camera.sound.forced, this is used to decode whether shutter sound can be muted or not. So I suggest to keep shutter sound on publicnotification channel. And just link with notification's volume.
Comment on attachment 710097 [details] [diff] [review]
patch b

Review of attachment 710097 [details] [diff] [review]:
-----------------------------------------------------------------

r=me if you also remove public-notification channel permission in system app.
It's just for the clone of camera app to be a secure camera when phone lock is on.
Attachment #710097 - Flags: review?(alive) → review+
Component: General → Gaia
Merged in: https://github.com/mozilla-b2g/gaia/commit/e06e9244dc7acc03cf4c08c1c49496eed789eb91
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Uplifted commit e06e9244dc7acc03cf4c08c1c49496eed789eb91 as:
v1-train: abfede404bb3c717f33d9c609464f8cf52504edf
Was this fix only concerned with setting the correct audio channel type (i.e. from 'publicnotification' to 'notification')?

The 'notification' audio channel doesn't seem to be muted when volume is set to 0 (either from hardware buttons or Settings > Sounds > Ringer & Notifications slider) on latest master (00fdfe0), thus the shutter sound is played loudly regardless of the volume level.
Flags: needinfo?(alive)
:mihai, could this be also related to Bug 863294 ?
(In reply to Julien Wajsberg [:julienw] from comment #18)
> :mihai, could this be also related to Bug 863294 ?

Julien, thanks for pointing this out, it is indeed related. I think the volume for all sounds that are played through the 'notification' channel is not properly handled, and most probably the fix for bug 819842 will solve this.
(In reply to Mihai Cirlanaru [:mcirlanaru] from comment #17)
> Was this fix only concerned with setting the correct audio channel type
> (i.e. from 'publicnotification' to 'notification')?
> 
> The 'notification' audio channel doesn't seem to be muted when volume is set
> to 0 (either from hardware buttons or Settings > Sounds > Ringer &
> Notifications slider) on latest master (00fdfe0), thus the shutter sound is
> played loudly regardless of the volume level.

That sounds really strange with this patch! After moving to notification channel it should be muted as well as you make the volume down to 0.
Flags: needinfo?(alive)
No longer depends on: 819842
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: