Version: unspecified (using Devel) OS: Linux In KDE 4.8 the output streams are shown in the pop-up that you get when you click the kmix icon (not the full kmix window wih tabs). However this doesn't work if the streams are started when kmix is already running (which is the usual situation). If I restart kmix, all streams are correctly shown Reproducible: Always Steps to Reproduce: start a new playback stream when kmix is already running Actual Results: it is not shown in the pop-up window Expected Results: it is shown in the pop-up window
SVN commit 1268427 by esken: Show new MPRIS2 Streams (Stream hotplug) CCBUGS: 288637 M +55 -15 backends/mixer_mpris2.cpp M +6 -5 backends/mixer_mpris2.h M +0 -6 core/volume.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1268427
SVN commit 1268430 by esken: Remove MPRIS2 Streams (Stream unplug) CCBUGS: 288637 M +14 -0 backends/mixer_mpris2.cpp M +14 -0 core/mixset.cpp M +2 -0 core/mixset.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1268430
Strangely enough my changes only works for the MainWindow and not for the Tray-Popup. I need to look into that.
SVN commit 1268580 by esken: Show and remove MPRIS2 Streams (Stream hotplugging) BUGS: 288637 M +6 -0 apps/kmix.cpp M +2 -0 apps/kmix.h M +41 -30 backends/mixer_mpris2.cpp M +3 -5 backends/mixer_mpris2.h M +1 -0 gui/kmixdockwidget.cpp M +14 -18 gui/viewbase.cpp M +9 -0 gui/viewdockareapopup.cpp M +6 -0 gui/viewdockareapopup.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1268580
This is still valid in 4.8rc1
Thanks for the proper test. :-) I can confirm your observation. The tray popup seems to work only correctly if at least one MPRIS2 application has registered BEFORE KMix is started. It looks like stream hotplugging is not properly initialized for the tray popup in the other case. Weird, but possibly a SIGNAL is not connected. It is very interesting, as the Main Window always works correctly.
confirm also in kde4.8rc2 If I open for instance amarok or clementine, stream are not showed in widget popup (only on main sound control). If I kill kmix and restart, the streams appear!
still present in kde 4.8.1 for Tray-Popup!
Still present in 4.8.3. I would expect the small popup when clicking the kmix systray icon to show all playing applications / output streams. Currently it does not show any streams at all, but just the default output device.
Confirmed for kmix=4:4.8.4-2 i386 on Debian.
Not sure why this is assigned to Colin. I'll take it over.
Fixed for KDE 4.10
Still doesn't work in 4.10 beta 1 with pulseaudio. I only see "event notifications" in the popup, all streams are shown in the full window
*** Bug 310494 has been marked as a duplicate of this bug. ***
To A Rojas. Can you try to disable the tray menu and then enable it again from the KMix configuration dialog. Do the streams show up then?
Git commit 1dfbbeb37fe03ed58b7be8ecdf22b376e3633830 by Christian Esken. Committed on 04/12/2012 at 23:42. Pushed by esken into branch 'master'. Fix resizing of the Sound Menu, after hotplug or application stream changes. I still have not the faintest idea why the Widget refuses to resize itself, so I now recreate the Sound Menu each time it pops up. M +0 -2 apps/kmix.h M +27 -28 gui/kmixdockwidget.cpp M +2 -2 gui/kmixdockwidget.h M +8 -2 gui/viewdockareapopup.cpp http://commits.kde.org/kmix/1dfbbeb37fe03ed58b7be8ecdf22b376e3633830
This is an urgent call for testing!!! With the patch I just did, it works for me reliably. Please test.
It still doesn't show new streams in the popup here (just fetched the most recent version from git, which is repository: git://anongit.kde.org/kmix at the commit: dfbbeb37fe03ed58b7be8ecdf22b376e3633830 which should include your changes) Thanks for looking into this.
Thanks for the quick check, Fuchs. I tested with "ALSA+MPRIS2", and it works 100% perfect. When using "Pulseaudio", it doesn't work. I will look into it. Work note: Probably the streams are not correctly labeled as streams, or there is an unfortunate mixup of Master Control and Streams.
Still does not work in 4.9.90.
Just tested with latest git version. It doesn't work for me either (kde 4.8.4). I use pulseaudio. When i log in the only stream shown (no matter what application runs afterwards) is the events. Starting amarok, killing kmix and starting kmix again, makes amarok stream appear, but the events stream is now gone. Now, opening e.g. smplayer, no new stream appears. Killing kmix and starting it again makes amarok and smplayer streams appear, but events stream not shown again. That said, kmix just shows the streams that where "running" the moment it started, and after it start, no matter what other applications start, no other stream appears. Notice that if i press the "mixer" button and go to "playback streams" tab, all streams appear correctly.
Also if a smplayer is running and the stream appears in the popup, if i terminate smplayer the stream is gone from the popup, as expected. Starting smplayer again and the stream doesn't appear in the popup. However, smplayer is the last stream shown in the popup and i terminate it, then the stream dissapears, and finally the "events" stream appears. That's a weird behavior. This of course applies for every application, not only smplayer.
Created attachment 75809 [details] Patch to show new pulseaudion streams in pop up window I do not know, am I right, but this small change fixes the problem
> I do not know, am I right, but this small change fixes the problem At least, IMO, it suggests that the problem is related to the flag isApplicationStream of the MixDevice object
(In reply to comment #23) > Created attachment 75809 [details] > Patch to show new pulseaudion streams in pop up window Confirmed to work here
Yeap, confirming it works for me too!Thanks a lot Eugene!
However, i do not know if this is expected, but if i have the popup opened and a a new stream opens, then the popup becomes blank, and i have to close it and reopen it again in order to show the streams correctly. Maybe i should open a new bug about that?
Created attachment 75947 [details] More correct patch Previous patch was incorrect: all new streams were supposed to be from applications. Perhaps this one is more correct
I tried your latest patch and indeed it wirks, however sometimes i get multiple streams for the same application, although i do not know if this has to do with your patch. I attach a photo. If this is unrelated to the patch, please tell me so that i can file it as another bug.
Created attachment 75997 [details] 3 different playback streams for amarok. Only one of the streams seems to react to the volume. The rest just don't do anything, no matter if i slide them up or down.
(In reply to comment #29) Alex, I see only one way how the patch can lead to appeareance of several applications streams: it just uncovers another problem. However, I can not see a way for the such problem in current master branch code: list of the streams is cleaned every time and populated again. Can you check with master or 4.10 RC1? And I hope we will get responce from the developers after the holidays.
Ok Eugene, i tried with master and it happened again. However, i also checked the kmix window and found out that the streams where there too. So it is probably just a pulseaudio bug, and not a kmix one. If it happens again i'll try to get more infos (although it happens randomly and rarely).
(In reply to comment #32) > Ok Eugene, i tried with master and it happened again. However, i also > checked the kmix window and found out that the streams where there too. Maybe you can also compare with pavucontrol, and see whether the streams are shown there, too.
Trunk and KDE 4.10 RC2 contains a patch similar to Eugene's first patch, but only application streams are marked as streams. Alex, I never had those "duplicated" streams, so I would ask you to compare with pavucontrol, like Dennis already suggested.
(In reply to comment #33) > Maybe you can also compare with pavucontrol, and see whether the streams are > shown there, too. I've observed a similar bug with Amarok. After picking playlist item manually, I saw many amarok streams in the Kmix window. Pavucontrol refused to start (just showed a black window of giant size) and there were many amarok clients in `pactl list` output. Sound from Amarok was produced by "LibVLC" client. So, must be Amarok and/or pulseaudio bug?
(In reply to comment #35) > (In reply to comment #33) > > Maybe you can also compare with pavucontrol, and see whether the streams are > > shown there, too. > > I've observed a similar bug with Amarok. After picking playlist item > manually, I saw many amarok streams in the Kmix window. Pavucontrol refused > to start (just showed a black window of giant size) and there were many > amarok clients in `pactl list` output. Sound from Amarok was produced by > "LibVLC" client. So, must be Amarok and/or pulseaudio bug? I would guess so. And even Pavucontrol refuses to start. Wow.
Sorry for not giving feedback back sooner, but i couldn't as i didn't have that problem anymore. Probably it's because i stopped using amarok. So i guess it has nothing to do with kmix, but mostly with amarok (and probably pulseaudio).
Looks like some non KMix component was the cause. Closing