Irc-Unix.net

Главная | Actual Topics | Обратная связь | В избранное | Сделать домашней | Антиспам ;)
Категории
 System & Utilities
 Unix News
 OS Emulator
 Developing
 Learning/Education
 Games
 Humour
Каталог статей
Все статьи

Antispam
Статьи
Биллу Гейтсу тоже предлагают избавиться ...
Вымогательство в борьбе со спамом
Календарь

October, 2018
ПнВтСрЧтПтСбВс
1234567
891011121314
15161718192021
22232425262728
293031
Опросы
Какой из этих ОС Вы отдаете большее предпочтение?

QNX
FreeBSD
Linux(any)
Solaris
Mac OS
Windows XP
Windows 2003
Что такое ОС? :)


Результаты
Другие опросы

Всего голосов: 327
Комментарии: 0
Ссылки

Архив Новостей
 October 2018 (7)
 September 2018 (8)
 August 2018 (8)
 July 2018 (11)
 June 2018 (13)
 May 2018 (10)
 April 2018 (14)
 March 2018 (11)
 February 2018 (13)
 January 2018 (13)
 December 2017 (14)
 November 2017 (15)
 October 2017 (19)
 September 2017 (18)
 August 2017 (13)
 February 2017 (14)
 January 2017 (19)
 December 2016 (16)
 November 2016 (16)
 October 2016 (21)
 September 2016 (18)
 August 2016 (16)
 July 2016 (16)
 June 2016 (20)
 May 2016 (18)
 April 2016 (15)
 March 2016 (22)
 February 2016 (17)
 January 2016 (15)
 December 2015 (15)
 November 2015 (22)
 October 2015 (20)
 September 2015 (17)
 August 2015 (25)
 July 2015 (20)
 June 2015 (23)
 May 2015 (21)
 April 2015 (17)
 March 2015 (19)
 February 2015 (9)
 January 2015 (23)
 December 2014 (9)
 November 2014 (13)
 October 2014 (12)
 September 2014 (18)
 August 2014 (20)
 July 2014 (10)
 June 2014 (12)
 May 2014 (12)
 April 2014 (10)
 March 2014 (22)
 February 2014 (10)
 January 2014 (8)
 December 2013 (26)
 November 2013 (53)
 October 2013 (40)
 September 2013 (48)
 August 2013 (63)
 July 2013 (56)
 June 2013 (52)
 May 2013 (49)
 April 2013 (67)
 March 2013 (74)
 February 2013 (63)
 January 2013 (62)
 December 2012 (62)
 November 2012 (66)
 October 2012 (68)
 September 2012 (48)
 August 2012 (75)
 July 2012 (60)
 June 2012 (71)
 May 2012 (69)
 April 2012 (85)
 March 2012 (86)
 February 2012 (90)
 January 2012 (81)
 December 2011 (103)
 November 2011 (118)
 October 2011 (74)
 September 2011 (2)
 June 2011 (110)
 May 2011 (118)
 April 2011 (111)
 March 2011 (112)
 February 2011 (101)
 January 2011 (119)
 December 2010 (117)
 November 2010 (118)
 October 2010 (131)
 September 2010 (117)
 August 2010 (226)
 July 2010 (351)
 June 2010 (305)
 May 2010 (319)
 April 2010 (343)
 March 2010 (329)
 February 2010 (311)
 January 2010 (312)
 December 2009 (266)
 November 2009 (156)
 July 2009 (101)
 June 2009 (279)
 May 2009 (365)
 April 2009 (348)
 March 2009 (347)
 February 2009 (323)
 January 2009 (318)
 December 2008 (237)
 November 2008 (155)
 October 2008 (334)
 September 2008 (310)
 August 2008 (343)
 July 2008 (362)
 June 2008 (322)
 May 2008 (473)
 April 2008 (1276)
 March 2008 (1658)
 February 2008 (250)
 January 2008 (6)
 November 2007 (1)
 September 2007 (1)
 June 2007 (1)
 May 2007 (1)
 March 2007 (1)
 January 2007 (2)
 December 2006 (1)
 October 2006 (2)
 September 2006 (1)
 August 2006 (2)

Volume Control in KDE Connect

System & Utilities

Definitely one of the best use cases of KDE Connect is this: Watching a movie while laying in bed or on the couch and controlling your unreachable computer from your phone without needing to stand up. Thanks to our new media control notification you can pause and skip without even unlocking your phone. But what if the movie is too silent? If your media player is implementing the MPRIS2 specifications you are already lucky and can control your players volume from KDE Connect. Plasma Browser Integration even adds that for Browsers. But what if your player doesn’t support it (looking at you, Spotify)? Or you want to control your system volume? Then you are out of luck. Until soon. We are adding a plugin to KDE Connect that enables you to control your system volume from the phone. How cool is that? Another neat little trick is tapping on the volume icon to (un)mute the system.

Screenshot_20180424-000806

Implementation

The idea for this has been around for a while, but it was not until fall 2017 that I actually started implementing it. The implementation relies on PulseAudio. We are aware that not everyone is using it, so we don’t require it and hope that packagers do not make KDE Connect depend on PulseAudio. The first implementation was using the command line tool pactl to set the volume. Assuming you only have one sink it was working pretty well, except there was no easy way to ask for the current volume, so our volume slider would be wrong pretty often. I got around this by parsing the output of pactl in a horrible, horrible line of bash, but it was clear that this was not stable enough to actually go into prod. Also it was still not working with multiple sinks. The logical step was to make use of the libpulse. For some reasons there are a great deal of people that like the C programming language, but I don’t. Especially not the library style that comes with it. What I really didn’t like was the idea of mixing low-level libpulse C code with high-level Qt code. Luckily, the Plasma guys thought the same. The Plasma Volume Applet contains code that was acting as a bridge between the two worlds. So I “borrowed’ that code (isn’t free software amazing?) and after some intense head-against-the-table banging (turns
out both KDE Connect and Plasma PA both have a class ‘Device’ with the same include guard) it was working like a breeze, now even with multiple sinks.

Birth of a Framework

It was working really good, but the thought of having 20 files of duplicate code in two KDE projects wasn’t particularly appealing. We decided it would be best to extract the common code into a library that both projects can use. To make this possible the code needed quite some polish. The original author probably didn’t have in mind that it might become a library someday. After some work we now believe that the API can be declared stable and it can be released on KDE Extragear. We aim to make it an official KDE Framework once the code has matured enough. Extracting and releasing it as a library makes it easier for us to maintain it, but it also means that you can use it in your project! Furthermore, since it covers more use cases than just volume control it’s also possible to integrate more PulseAudio related features into KDE Connect easily. We are looking forward to your suggestions!





  


Разместил: Planet KDE | Дата: 30.04.2018 | Прочитано: 485 | Раздел: System & Utilities   

Рейтинг статьи

Средняя оценка: 0.00/0Средняя оценка: 0Всего голосов:0

Отлично
Хорошо Нормально Пойдёт Плохо


Смотрите также связанные темы

24.05.2011 New Articles Published for Week Ending 5/21/11
New Articles Published for Week Ending 5/21/11 Apache Tomcat Determining your version of Tomcat (1033932) Date Published: 5/19/2011 VMware Converter VMware Converter fails with the error: Unable to create a VSS snapshot of the source volume(s) (1039087) Date Published: 5/20/2011 VMware ESX Cursor fails to interact with any objects in the bottom 3 inches of the screen of a full screen virtual machine. (1000467) Date Published: 5/20/2011 Exporting system logs fail for ESX/ESXi host fails with the error: A general system error occurred: internal error (1000558) Date Published: 5/20/2011 Wi...
27.06.2011 New Articles Published for Week Ending 6/25/11
New Articles Published for Week Ending 6/25/11 Apache Tomcat 7 How can Tomcat redirect to a secure connection when behind a reverse proxy web server? (1037406) Date Published: 6/22/2011 Eclipse Virgo Enabling the YourKit Profiler with Eclipse Virgo (2000979) Date Published: 6/24/2011 VMware Converter Setting the minimum vCenter Server permissions required to perform VMware Converter operations (2000123) Date Published: 6/21/2011 VMware Data Recovery Backing up a virtual machine using VMware Data Recovery fails with the error: Trouble writing to destination store, -1115 ( disk full) (...
16.08.2012 Freescale and partners launch reference platform to streamline development of programmable logic controllers
Freescale, QNX Software Systems, ISaGRAF, and koenig-pa KPA collaborate to accelerate the development of industrial control systems-- QNX Partner News Release --BEIJING Freescale Technology Forum Aug. 14, 2012 Freescale Semiconductor NYSE: FSL has collaborated with industrial technology partners to develop an advanced programmable logic controller PLC reference platform based on Freescales dual-core QorIQ P1025 processor. The reference platform integrates well-established EtherCAT protocol software from KPA, PLC Firmware from ISaGRAF, and the QNX Neutrino real-time operating system RTOS to bo...
18.11.2010 VMworld 2010 Online Sessions
VMworld 2010 Online Sessions Now that VMworld 2010 has concluded, it's time to digest and consume sessions that were offered.  If you attended VMworld 2010 in either San Francisco or Copenhagen, you have been granted full access.  If you were not an attendee, you will need a VMworld 2010 Subscription.  However, VMworld 2010 General Sessions + Super Sessions AND all content from previous VMworld conferences is free to all VMworld.com visitors. All Super Sessions and Breakout Sessions that were captured from VMworld 2010 in San Francisco have been posted.  Selected Breat...
20.12.2010 New articles published for week ending 12/18/2010
New articles published for week ending 12/18/2010 SUSE Linux Enterprise Server (SLES) for VMware Error when attempting to update SUSE Linux Enterprise Server (SLES) for VMware: No update repository configured (1031668) Date Published: 12/15/2010 VMware Consolidated Backup File level backups fail if a BCD store exists on the Windows 2003 virtual machine (1031734) Date Published: 12/17/2010 VMware Data Recovery VMware Data Recovery backups do not start on time (1019139) Date Published: 12/14/2010 VMware ESX What is the syntax for vmware-cmd createsnapshot? (738107) Date Published: 12/16/20...
16.05.2011 New Articles Published for Week Ending 5/14/11
New Articles Published for Week Ending 5/14/11 VMware ACE Applying a policy update package in ACE fails with the error: Setup has detected that this ACE package requires a newer version of VMware Workstation (1038992) Date Published: 5/9/2011 VMware Converter Converting a physical or virtual machine with VMware Converter takes longer than expected (1038454) Date Published: 5/12/2011 Starting a virtual machine that was converted using VMware Converter fails with the error: STOP 0x79 MISMATCHED_HAL (1038576) Date Published: 5/11/2011 Unable to log in to a Windows virtual machine after it h...
25.10.2011 New Articles Published for Week Ending 10/22/11
New Articles Published for Week Ending 10/22/11 Apache HTTP Server Writing a support request for Apache HTTP Server (2003727) Date Published: 10/19/2011 VMware ESX Settings are lost after installing patch ESX410-201104001 on an ESX 4.1 Update1 host (2004745) Date Published: 10/20/2011 Hardware Status tab sensors are missing after applying Patch ESX410-201104401 (2005853) Date Published: 10/21/2011 NFS storage space details in vCenter Server appear blank (2007059) Date Published: 10/21/2011 Upgrading Cisco Nexus 1000V before upgrading to ESXi 5.0 (2007959) Date Published: 10/17/2011 Daylight...
08.11.2011 New Articles Published for Week Ending 11/5/11
New Articles Published for Week Ending 11/5/11 Apache Active MQ Securing ActiveMQ queues created during runtime (2004786) Date Published: 11/2/2011 ActiveMQ network of brokers error: java.lang.SecurityException: User anonymous is not authorized to read (2004787) Date Published: 11/2/2011 Socialcast Creating SSL certificates for Socialcast On Premise (2008649) Date Published: 10/31/2011 Socialcast Dedicated Cloud Socialcast support resources (2008604) Date Published: 10/31/2011 Logging in to Single Sign-On enabled Socialcast domains fails for the Socialcast Desktop Application on OSX (200867...
22.11.2011 New Articles Published for Week Ending 11/19/11
New Articles Published for Week Ending 11/19/11 Apache HTTP Server Logging user defined cookies with Apache 2.0 and the usertrack module (2008211) Date Published: 11/14/2011 Checking the modules that are compiled into Apache HTTP Server and vFabric Enterprise Server (2009272) Date Published: 11/17/2011 Installing mod_fcgid on Apache HTTP Server 2.0.x configurations under Linux/Unix (2009475) Date Published: 11/17/2011 Apache Tomcat Setting up Tomcat in the Windows platform for monitoring by jconsole or jvisualvm (2008410) Date Published: 11/15/2011 Enabling garbage collection logging with T...
07.03.2011 New Articles Published for week ending 3/5/11
New Articles Published for week ending 3/5/11 VMware Alive Enterprise Setting multiple FSDB locations in VMware Alive (1034899) Date Published: 3/1/2011 Connecting to the VMware Alive Enterprise SCOM adapter using Windows Authentication (1035184) Date Published: 3/3/2011 VMware Data Recovery More than 0 virtual machines were selected. A maximum of 0 virtual machines can be backed up by one Data Recovery appliance (1033813) Date Published: 2/28/2011 VMware Data Recovery File Level Restore: Installing FUSE on a Debian-based Linux 64bit OS (1035231) Date Published: 3/3/2011 VMware ESX vMotio...
Нет комментариев. Почему бы Вам не оставить свой?
Вы не можете отправить комментарий анонимно, пожалуйста зарегистрируйтесь.
Google Search
Google

Web irc-unix.net

Топ Новостей
1: Fedora and KDE/spin\'s treatment - Discussion
Hot NEWS!
Просмотров - 2690


2: Offline Vaults for an extra layer of protection
Просмотров - 710

3: KDE\'s Kirigami 2.0 Framework for Convergent UIs Enters Beta with New Features
Просмотров - 700

4: Akonadi/KMail issues on Tumbleweed?
Просмотров - 658

5: Netrunner Desktop 16.09 "Avalon" Linux OS Is Out with Kernel 4.7, KDE Plasma 5.7
Просмотров - 635

6: KDevelop 5.0.2 released for Windows and Linux
Просмотров - 621

7: Debugging issues booting a PC in 2018
Просмотров - 585

8: plib3.gui 0.9.9
Просмотров - 559

9: Multi-screen woes in Plasma 5.7
Просмотров - 553

10: Konstruct
Просмотров - 551

11: Embrace Open Source culture: the 5 common transformations.
Просмотров - 539

12: GSoC Update 1: The Beginning
Просмотров - 532

13: Come dine with the KDE e.V. board in Berlin in October
Просмотров - 531

14: KDE Connect Sprint
Просмотров - 529

15: KDE Connect – State of the union
Просмотров - 529

Google 120X240
Ссылки

Главная | Actual Topics | Статьи | Обратная связь | Guest Book
Генерация: 1.534 сек. и 13 запросов к базе данных за 1.483 сек.
Powered by SLAED CMS © 2005-2007 SLAED. All rights reserved.