Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to disable sound of camera snaping at the Camera component
Forum Updated to NodeBB v4.3 + New Features

How to disable sound of camera snaping at the Camera component

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maxim.prishchepa
    wrote on last edited by
    #1

    Hello, i need to make periodic photos using Camera component, but when i use method captureToLocation(location) or capture() i every time hear snapshotting sound notification, for me this is very bad, because i make capture every one second. So is someone know how to disable this notification for my app? and one more, maybe someone know other way, how to get image from the camera not make a capture? maybe from VideoOutput or somewhere else?

    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, for the first one, you have to disable it yourself on your phone/tablet/whatever you are using settings.

      IIRC, for number two, you have a code sample in the Camera QML element that shows how to do it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maxim.prishchepa
        wrote on last edited by
        #3

        [quote author="SGaist" date="1419380194"]you have to disable it yourself on your phone/tablet/whatever you are using settings.[/quote]

        Emm.. at the OS settings (as user?), or use JNI for that?

        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You can try JNI with "this":http://developer.android.com/reference/android/provider/Settings.System.html#SOUND_EFFECTS_ENABLED

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maxim.prishchepa
            wrote on last edited by
            #5

            don't think, so it's a good idea use JNI, what about iOS, i'll shoud be do it there too? maybe Qt/QML have some standard properties to disable sound notify?

            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Technically these kind of settings are handled by the user through the device's control panel.

              However I don't think that you should/can modify them like that. Personally I wouldn't like a program that tries to modify my device settings without even trying to ask me first.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved