SimpleStream

Plasma 4 Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

9
7 .5
Description:

=== UNMAINTAINED ===

I don't use KDE or this plasmoid anymore. I have reports that it doesn't work with 4.5 anymore. I'm not going to fix these Issues. If the problems persist with the next releases I am probably going to delete this plasmoid. If you like it, feel free to adopt the package. Just contact me via the included address and we will work sth out (I'll delete it, you create a new project under the same name or something like that). It should probably be rewritten in JavaScript to avoid unnecesary dependencies.

It's not a plasmoid, but for anybody looking for an alternative i can recommend radiotray (http://radiotray.sourceforge.net/). This seems to be actively developed.

=== UNMAINTAINED ===


A Simple Plasmoid to play an audio stream from the internet. Enter the Stream Url in the configuration dialog, then click once to play, again to stop. Depends on pyKDE, pyQT and pyQT-phonon.
Last changelog:

10 years ago

0.2
- Implemented Force Stop / Replay and stream change in context menu
- Added Information Tooltip
- Now using Phonon from pyQt. Phonon from pyKde seems to be broken regarding a feature needed for volume control

0.1.1
- Config rework: Moved the configuration backend from KConfigSkeleton to QSettings, old configuration files won't work anymore, the new file is usually located in ~/.config/simplestream/simplestream.conf
- Volume Control: The mousewheel can now control the volume of the stream

0.1
- Initial release

biosftw

10 years ago

I have to add a stream after every boot, so is there a possible that the added streams will stay until I remove them? : P

Report

C

halcyon85

10 years ago

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?

Report

biosftw

10 years ago

well there is no such file
i created one by myself but simplestream wont write anything into it : P

Report

C

halcyon85

10 years ago

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.

Report

biosftw

10 years ago

thank you thats working ... but still i would like to understand the problem... it seems that the plasmoid doesnt have access to this area oru what do you guys think

Report

C

halcyon85

10 years ago

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?

Report

C

halcyon85

10 years ago

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.

Report

EinfachToll

10 years ago

If I want to add this plasmoid on my Desktop, there just appeares the red cross with the error message "Script initializing failed". Can someone help me?

Report

YAFU

10 years ago

Same problem.
Unlike version 0.1.1, version 0.2 depends of "python-qt4-phonon" (besides the package "phonon") in Kubuntu.
Thank you very much for the improvements in the new version halcyon85!!!

Report

C

halcyon85

10 years ago

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.

Report

EinfachToll

10 years ago

The output is

"findServiceByDesktopPath: not found
Traceback (most recent call last):
File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py", line 52, in init
self.module = __import__(self.plugin_name+'.main')
File "/usr/share/kde4/apps/plasma_scriptengine_python/plasma_importer.py", line 107, in load_module
exec code in mod.__dict__
File "/home/toll/.kde/share/apps/plasma/plasmoids/SimpleStream/contents/code/main.py", line 21, in <module>
from PyQt4.phonon import Phonon # Use QT Phonon, see http://www.mail-archive.com/[email protected]/msg15603.html
ImportError: No module named phonon"

With apt-find file phonon I found the package python-qt4-phonon, installed it an now it works! Thanks for your hint!

Report

mreloads

10 years ago

Occasionally the only way to turn off the stream is to close Plasma. Radio stops and then again starts to buffer and play stream. Not too much annoyance, however.

It would be nice to assign labels to streams and show them in popup menu when right-clicking on plasmoid.

Thanks for a great job.

Report

YAFU

10 years ago

Excellent idea!
In the future if you can do that can be associated the url's with the name of the radio station and then you can choose stations from the icon, it would be great. Also export/import the list of stations to a file.
Thanks!

Report

Sparrowmelody

10 years ago

Considering all stream-capable linux media players consume several MB in RAM, this is a nifty addition. Unfortunately if the connection is not too stable (from low WiFi signal) there is no real way to force a stop/resume. Other than that it works as advertised and is very nice to have around, nice job and better idea!

Report

anthon38

10 years ago

Nice! Please add the ability to change the icon, it would be even nicer :)

Report

C

halcyon85

10 years ago

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

Report

Solid1986Snake

10 years ago

First think: nice idea :D very useful..

Second: very nice that the streams i ever inputed are saved, even if the plasmoid gets removed!

Third: mind to integrate a simple volume control?

Report

C

halcyon85

10 years ago

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

Report

C

halcyon85

10 years ago

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.

Report

Vistausss

10 years ago

Thank you so much!!! :D This is a really handy plasmoid, fits good on my panel and now I don't have to use VLC anymore for listening to the radio every night :) Just a small button on my panel is enough to play a stream :)

Sometimes the most simple things are really useful :)

Report

C

halcyon85

10 years ago

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.

Report

10 years ago

0.2
- Implemented Force Stop / Replay and stream change in context menu
- Added Information Tooltip
- Now using Phonon from pyQt. Phonon from pyKde seems to be broken regarding a feature needed for volume control

0.1.1
- Config rework: Moved the configuration backend from KConfigSkeleton to QSettings, old configuration files won't work anymore, the new file is usually located in ~/.config/simplestream/simplestream.conf
- Volume Control: The mousewheel can now control the volume of the stream

0.1
- Initial release

12345678910
213
product-maker pars1938 Dec 18 2011 9 excellent
product-maker GmoSuk Oct 04 2011 9 excellent
product-maker pipapo Sep 05 2011 9 excellent
product-maker bbc581 Aug 12 2011 9 excellent
product-maker Nomadluap Aug 05 2011 3 bad
product-maker UnimatrixZero Jun 12 2011 9 excellent
product-maker hplinux01 Jun 04 2011 9 excellent
product-maker ologgio May 10 2011 9 excellent
product-maker herrbatka Mar 06 2011 9 excellent
product-maker longweekendforever Feb 23 2011 9 excellent
product-maker Schumbi Feb 10 2011 9 excellent
product-maker Ilu Jan 28 2011 9 excellent
product-maker mgp Jan 28 2011 9 excellent
product-maker molecule-eye Dec 30 2010 9 excellent
product-maker bigbrovar Dec 28 2010 3 bad
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
lei00
Nov 27 2012
madegirah
May 13 2010
Camberwell
Apr 08 2010
Thule
Dec 24 2009
YAFU
Oct 08 2009
michalm
Oct 07 2009
Sparrowmelody
Sep 30 2009
Vistausss
Sep 29 2009
onlinelli
Sep 28 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2
updated Oct 07 2009
added Sep 28 2009
downloads 24h
0
mediaviews 24h 0
pageviews 24h 7