We can try to handle the media keycodes, I will update the patch in that sense. Thanks for the research Michael.
However the volume keys are going to be more complicated: the app receieves them just fine, but they are the same keys that are generated by the hardware volume buttons on the phone (Qt.Key_VolumeDown, Qt.Key_VolumeUp). The system intercepts them regardless of what the app does with them (I tried to mark them as handled in Qt), and raises/lowers the volume. I think it will be very confusing to shoot a picture AND raise/lower the volume. I guess we will have to live with the fact that some selfie sticks + hardware combinations which generate volume keypresses won't be supported, though that's going to be rather confusing for the user too. On Mon, Jan 4, 2016 at 4:33 PM, Ken VanDine <ken.vand...@canonical.com> wrote: > I tried #TheSelfie on my arale, it increases the volume. I didn't look > to see what keycode is being generated, but what ever it is raises > notify-osd showing the volume increase. > > -- > You received this bug notification because you are a bug assignee. > https://bugs.launchpad.net/bugs/1451724 > > Title: > Selfie stick not supported > > Status in Canonical System Image: > In Progress > Status in camera-app package in Ubuntu: > In Progress > > Bug description: > I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc > > Working fine on iOS it didn't do anything on Ubuntu. I had enough > time to check out what what keycode it sends when pressing the shutter > button: Qt.Key_MediaTogglePlayPause > > So I guess all it takes is to add a Keys.onPressed handler to the > camera app and trigger the photo shutter or start/stop recording when > in video mode. > > To manage notifications about this bug go to: > > https://bugs.launchpad.net/canonical-devices-system-image/+bug/1451724/+subscriptions > -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to camera-app in Ubuntu. https://bugs.launchpad.net/bugs/1451724 Title: Selfie stick not supported Status in Canonical System Image: In Progress Status in camera-app package in Ubuntu: In Progress Bug description: I had a chance to play with a selfie stick: http://bit.ly/1KIYkBc Working fine on iOS it didn't do anything on Ubuntu. I had enough time to check out what what keycode it sends when pressing the shutter button: Qt.Key_MediaTogglePlayPause So I guess all it takes is to add a Keys.onPressed handler to the camera app and trigger the photo shutter or start/stop recording when in video mode. To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1451724/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp