It's not possible to disable the camera shutter sound in QML's Camera component

Bug #1292003 reported by David Planella
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
camera-app
Invalid
High
Unassigned
qtubuntu-camera
New
High
Ugo Riboni
camera-app (Ubuntu)
Invalid
Undecided
Unassigned
qtubuntu-camera (Ubuntu)
Confirmed
Undecided
Ugo Riboni

Bug Description

The fact that the shutter sound when taking a camera picture is in the abstraction layer, forces that sound to be played every time a shot is taken with the QML Camera component.

This means app developers cannot disable or override the shutter sound in their apps. One use case for this I encountered was while writing a QR code application that continuously takes shots and analyzes the image to scan a QR code. The fact that the shutter sound is played continuously prevents me from being able to use the QML camera component.

<rsalveti> dpm: the sound file itself is available in the android system partition, and used by the app, let me find the code
<rsalveti> qtubuntu-camera-0.3.3+13.10.20130919.2/src/aalimagecapturecontrol.cpp
 m_audioPlayer->setMedia(QUrl::fromLocalFile("/system/media/audio/ui/camera_click.ogg"));

So after a conversation with rsalveti and jhodapp it seems that the shutter sound is only required by the camera app, but for some reason rather than put it in the camera app itself, it was added to the abstraction layer. Their suggestion was to file a bug to remove the sound from the abstraction layer and put it in the app, so that app developers can use the upstream QML component and be able to decide whether to play a sound and which one.

David Planella (dpm)
summary: - It's not possible to disable the shutter sound
+ It's not possible to disable the camera shutter sound in QML's Camera
+ component
Changed in qtubuntu-camera (Ubuntu):
status: New → Confirmed
Changed in camera-app (Ubuntu):
status: New → Confirmed
Changed in camera-app:
status: New → Confirmed
Changed in camera-app:
importance: Undecided → High
Changed in camera-app:
status: Confirmed → Invalid
Changed in camera-app (Ubuntu):
status: Confirmed → Invalid
Changed in qtubuntu-camera:
importance: Undecided → High
Jim Hodapp (jhodapp)
Changed in qtubuntu-camera (Ubuntu):
assignee: nobody → Jim Hodapp (jhodapp)
Changed in qtubuntu-camera:
assignee: nobody → Jim Hodapp (jhodapp)
Revision history for this message
Ugo Riboni (uriboni) wrote :

Taking ownership of the bug as I am also working on bug #1424147
Most probably we will move the playback of the sound out of the backend and expose a reusable ShutterSound QML component that apps can use if they want.

Changed in qtubuntu-camera (Ubuntu):
assignee: Jim Hodapp (jhodapp) → Ugo Riboni (uriboni)
Changed in qtubuntu-camera:
assignee: Jim Hodapp (jhodapp) → Ugo Riboni (uriboni)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.