Re: [Ubuntu-phone] [ubuntu-phone] Determine whether the phone is muted

2015-06-25 Thread Frans Schreuder
Hello Jim, I just filed a bug. https://bugs.launchpad.net/ubuntu/+source/qtubuntu-media/+bug/1468793 Frans On 06/25/2015 04:57 PM, Jim Hodapp wrote: > It's currently not connected to anything for the platform, although it > wouldn't be too difficult to export this via media-hub up to > qtubuntu

Re: [Ubuntu-phone] [ubuntu-phone] Determine whether the phone is muted

2015-06-25 Thread Jim Hodapp
It's currently not connected to anything for the platform, although it wouldn't be too difficult to export this via media-hub up to qtubuntu-media (which is the layer that implements the Ubuntu-specific parts for QtMultimedia. Would you mind filing a bug against qtubuntu-media (Ubuntu) for this? O

Re: [Ubuntu-phone] [ubuntu-phone] Determine whether the phone is muted

2015-06-25 Thread Frans Schreuder
No, it always shows false. I can set it manually (from QML and for my app only) to true, and the Audio will mute, but the system wide setting doesn't control this property. On 06/25/2015 02:19 PM, sturmflut wrote: > Hey all, > > > On 25.06.2015 14:11, Frans Schreuder wrote: > >> QtMultimedia.Audio

Re: [Ubuntu-phone] [ubuntu-phone] Determine whether the phone is muted

2015-06-25 Thread sturmflut
Hey all, On 25.06.2015 14:11, Frans Schreuder wrote: > QtMultimedia.Audio has a property called "muted" but it doesn't > seem to be controlled by the system wide "mute" control. The documentation for this property indicates that it fits your use case exactly. If it doesn't work, then that soun

Re: [Ubuntu-phone] [ubuntu-phone] Determine whether the phone is muted

2015-06-25 Thread Frans Schreuder
DBus won't be very convenient, as it requires an "unconfined" application, as everything on the Ubuntu phone does except for showing a "hello world" text on your screen. On 06/25/2015 12:31 PM, Brendan Donegan wrote: > I'm not sure it's the best way but using Pulseaudio's DBus interface > might wo

Re: [Ubuntu-phone] [ubuntu-phone] Determine whether the phone is muted

2015-06-25 Thread Brendan Donegan
I'm not sure it's the best way but using Pulseaudio's DBus interface might work. There seems to be a MuteUpdated signal that is sent out when a device is muted: http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/DBus/Device/ On Thu, Jun 25, 2015 at 9:45 AM, Jonas D

Re: [Ubuntu-phone] [ubuntu-phone] Determine whether the phone is muted

2015-06-25 Thread Jonas Drange
I don't know about system wide muting—but I suspect the app to not have access to this information. Either way, wouldn't this [1] be a natural place to start looking for information? Maybe one of the examples can help you. [1] https://developer.ubuntu.com/api/apps/qml/sdk-14.10/QtMultimedia/ Jona

Re: [Ubuntu-phone] [ubuntu-phone] Determine whether the phone is muted

2015-06-25 Thread Frans Schreuder
On 06/24/2015 07:31 PM, Frans Schreuder wrote: > Hello All, > > Is there a way (in qml or c++) to see whether the phone was muted? > I got a feature request for my app to shut down the app when the phone > is muted, but I don't know whether there is a library call for it. > > Thanks, > > Frans > An

[Ubuntu-phone] [ubuntu-phone] Determine whether the phone is muted

2015-06-24 Thread Frans Schreuder
Hello All, Is there a way (in qml or c++) to see whether the phone was muted? I got a feature request for my app to shut down the app when the phone is muted, but I don't know whether there is a library call for it. Thanks, Frans signature.asc Description: OpenPGP digital signature -- Mailin