Image 01
profile-image

halcyon85

Matthias Ellmer , Germany
Plasma 4 Widgets
SimpleStream

Plasma 4 Widgets 46 comments

Score 75.3%
Oct 07 2009
Hi, I can't reproduce your problem exactly, but it doesn't work for me either. My problem was fixed by quoting the string << Plasma/Applet >> in the metadata.desktop file. Might be worth a try for you. Otherwise, like I just added to the description, radiotray now works pretty well for me (I've switched to awesome wm, so no more plasmoids for me... ) - Sep 13 2010
I don't use pulse, so I can't reproduce that behaviour, sorry. Generally, if there's a playback problem, you could try to see if it persists with a different phonon backend. You could also try to look at the output of the widget with 'plasmoidviewer SimpleStream' and see if there's anything weird in there. - Apr 08 2010
Here's another link in case that rapidshare one doesn't work... http://www.megaupload.com/?d=3695FNIY - Dec 22 2009
Yes, that was that problem with volume control. I think this happens with the xine backend? If so you could try this modified version with no volume control for xine.

http://rapidshare.com/files/324533547/SimpleStream-0.2-x.zip.html

Not related to this problem I did have some trouble playing your stream with the mplayer-backend I use, gave me an 404 error. It worked fine in vlc though. So maybe there will also be some trouble on that end... - Dec 22 2009
It seems you don't have QTs Phonon installed. It usually comes in a package called pyqt-phonon or similar, alternatively you could edit the script and import pykde phonon (Comment the PyQT4.phonon line, uncomment the PyKDE4.phonon line), though this could give you problems with volume control( see the link in your post). I will test this stuff again with KDE SC 4.4, but until then this workaround is needed I guess, - Dec 20 2009
Hm, it seems to be a very definitive worksforme. I installed xine and the modified version doesn't give me any problems. The error message of the unmodified version just gives me

phonon-xine does not support splitting of audio or video streams into multiple outputs. The sink node is already connected to AudioOutput(0x8248bc0)
WARNING: Phonon::createPath: Cannot connect Phonon::MediaObject ( no objectName ) to Phonon::AudioOutput ( no objectName ).

It works fine, just the volume control isn't available. Your error seems to be with the "findServiceByDesktopPath: not found" message. Some quick googling showed that it sometimes was a problem with some missing/broken packeges, so could be that your upgrade messet something up. Maybe the problem is indeed with missing audio filters for your phonon-backend. I havent used kubuntu in a while (Arch Linux ftw!) but i think the packages i mentioned before are thw ones you need for gstreamer, for xine it is something like libxine1-ffmpeg, I believe. You could try to apt-get --purge and then apt-get --install all your phonon stuff. And I don#t think it actually wants to delete kde, kde-desktop is a meta-package used to install all kde stuff i think. But before you remove it you should definitely make sure of that. The people over at the ubuntu forums definitely know more about that than me! Good luck and let me know if you get it to work, ok? - Nov 13 2009
That's weird, it installed fine for me. Perhaps i accidentally uploaded the wrong file. I'm at uni right now so i can't look into it any further until tomorrow, but did you try setting the phonon backend preference to gstreamer in the KDE systemsettings module? If you just installed gstreamer it might also be possible that you don't have the necessary codecs to play the stream. I believe there are some packages like gstreamer-plugins-bad or gstreamer-plugins-ugly for playing mp3. But I'd rather fix it to work with xine. I'll install that backend tomorrow and test it out myself, maybe I'll find out what's going on. - Nov 10 2009
The problem you are having seems to be caused by the xine-backend not supporting a feature needed for volume control. You could try using another backend or using the modified version without the volume control I just uploaded. I hope this is of help to you, please let me know if any of this works for you. - Nov 09 2009
The config files are stored in a standard location for such things, the location is chosen automatically by QSettings, so it should choose a writable location. I think your problem probably was with QSettings not knowing the path to your config files, maybe something wrong with the global path configuration? Butr then it should just save and load from a different path, and not refuse to do so alltogether. Does it only work with the streams from my config or can you add and remove new ones yourself? - Oct 16 2009
hm, that is weird, can you run the plasmoid with "plasmoidviewer SimpleStream"? Can you see if it throws any error messages when it attempts to write the config file (should happen when you click ok in the config dialog). You could also try to copy this text from my simplestream.conf into yours:

[streams]
list=SWR Cont ra, SWR Das Ding, Triple J, BBC World Service (VPR LQ), Secret Agent (Soma FM)
current=0
Triple%20J\url=http://202.6.74.107:8060/triplej.mp3
SWR%20Cont%20ra\url=http://edge.live.mp3.mdn.newmedia.nacamar.net:80/swrcontralive/livestream.mp3
SWR%20Das%20Ding\url=http://edge.live.mp3.mdn.newmedia.nacamar.net:80/swrdasdinglive/livestream.mp3
BBC%20World%20Service%20%28VPR%20LQ%29\url=http://vprbbc.streamguys.net:80/vprbbc24.mp3
Secret%20Agent%20%28Soma%20FM%29\url="http://streamer-mtc-aa02.somafm.com:80/stream/1021 "

If you do this, does it load the streams specified? Also, can you post the name you are giving your stream and the url so i can see if it borks things up here for me? could be some weird characters messing up the file write or something. - Oct 16 2009
hm, that is weird, can you run the plasmoid with "plasmoidviewer SimpleStream"? Can you see if it throws any error messages when it attempts to write the config file (should happen when you click ok in the config dialog). You could also try to copy this text from my simplestream.conf into yours:

[streams]
list=SWR Cont ra, SWR Das Ding, Triple J, BBC World Service (VPR LQ), Secret Agent (Soma FM)
current=0
Triple%20J\url=http://202.6.74.107:8060/triplej.mp3
SWR%20Cont%20ra\url=http://edge.live.mp3.mdn.newmedia.nacamar.net:80/swrcontralive/livestream.mp3
SWR%20Das%20Ding\url=http://edge.live.mp3.mdn.newmedia.nacamar.net:80/swrdasdinglive/livestream.mp3
BBC%20World%20Service%20%28VPR%20LQ%29\url=http://vprbbc.streamguys.net:80/vprbbc24.mp3
Secret%20Agent%20%28Soma%20FM%29\url="http://streamer-mtc-aa02.somafm.com:80/stream/1021 "

If you do this, does it load the streams specified? Also, can you post the name you are giving your stream and the url so i can see if it borks things up here for me? could be some weird characters messing up the file write or something. - Oct 16 2009
It should already save, them, at least it does for me. Are you using the latest version? If yes, the streams should be saved in ~/.config/simplestream/simplestream.conf. Can you post this file once you've added a stream, and once after a reboot so we can check what's going on? - Oct 16 2009
Can you run the plasmoid from a shell with "plasmoidviewer SimpleStream" and post the output? That would help a lot in finding the error. Without knowing any specifics my guess would be on a missing dependency like pykde/pyqt or a missing scriptengine. - Oct 07 2009
Ok, the volume control is there now, though it doesn't seem very well working to me (see changelog), the thing is, with mplayer it just seems to change the system volume, i haven't found a way to change just the application's volume... that's something for the next release probably - Oct 06 2009
Thank you very much for the feedback. This is the first software i've released ever and getting a positive response is really encouriging me to work on this some more. - Sep 29 2009
I probably won't get to this until next week, so if you like you can just change the icons that get loaded in ~/.kde/share/apps/plasma/plasmoids/SimpleStream/contents/code/main.py. They are defined in line 67+74 - Sep 29 2009
Thanks for the positive feedback, i've got exams on thursday and friday but i might get to do some more work on this on the weekend, first thing is probably going to be a new configutration dialog, i'm not really happy with this one. I've got no idea how to implement the volume control, i guess maybe some hover & mousewheel interaction like kmix or amarok? maybe you have some different suggestions? I'm probably going to upload the source to gitorious or github so it's easier fot other people to tweak it a little bit. It's not that complex, only ~200 lines of python. - Sep 29 2009
last.fm streaming plasmoid

Plasma 4 Widgets 7 comments

Score 74.0%
Aug 08 2009
Just wanted to drop a note saying thanks. The code in your plasmoid helped me quite a bit when writing my own, it's up here on kde-look if you are interested to see it http://kde-look.org/content/show.php?content=112825 - Sep 28 2009