Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

4
Become a Fan
7.4

Description:
Stream Player is a simple player for Internet streams. For playback it uses Phonon.
The Plasmoid remembers the volume for each stream. To change the volume for a stream, use the mousewheel over play/pause button.

Xine backend:
- has sometimes problems whith some streams
- shows the best stream information

To reduce buffering problem you can modify the "~/.config/kde.org/Phonon-Xine.xine.conf" file.
ADD the following lines or set a low buffer number if the lines already exist. The lowest buffer size in my case is 4.

# numeric, default: 230
engine.buffers.audio_num_buffers:4

GStreamer backend:
- backend komunication to the plasmoid is not good
- plays allmost all streams
- no stream information

VLC backend
- best stream suport
- shows some stream information

How to install:

Extract the archive, change to the extracted folder and type

mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
make
make install (as root)

Enjoy!
Last changelog:

0.5.1
-Fixed problem saving stream list to a config file

0.5.0
-Changed saving stream list to a config file
-Fixed crashing plasma-desktop

0.4.1
-Fixed a bug in streaminfo layout

0.4.0
-Added a streaminfo
-Fixed some bugs

0.3.1
-Fixed compiling problem.

0.3
-Added middle mouse button click on play/pause button for mute.
-Added a list of streams to the right button menu.
-Added the possibility to choose a stream with the wheel. Use wheel over the stream name.

0.2
-Added customizable layout. Now it is possible to optimize the layout for the panel.
-Added a default stream.

0.1.1
-Fixed problem with stopping stream.


Ratings & Comments

30 Comments

praveenthivari

It's a great plasmoid but how to add internet streams to this. I am not able to add it from 'Stream Player Settings'

1Slarti1

To add a stream Left click on the Plasmoid, then choose settings for Stream Player. In the settings window choose Streams. There you have a Add Stream Button. Add a stream name and the stream url. If there is no Add Stream Button, then resize the window. I hope it works.

praveenthivari

Thanks it helped. But now I have another problem I am trying to add stream but it doesn't stream them, For Eg: 1) http://www.apnaeradio.com/players/player.php?c=1&m=asx 2) http://www.radionri.com/tuner/listen.m3u?id=437 Wat format should it be?

1Slarti1

You have tried to add playlists. Unfortunately the Plasmoid can only handle streams. I extracted the streams from playlists with vlc. 1)http://www.apnaeradio.com:8100 2)http://205.188.215.230:8024 The Plasmoid played this streams, but often i had to wait some seconds.

praveenthivari

Oh thanks

roctheme

This is a great plasmoid!

aray

I am on Natty (11.04) and I installed the plasmoid from the deb file. But when I am trying to play any stream, it crashes the plasma-desktop. For example when I am trying the play the default radio station already provided with the plasmoid, the plasma desktop restarts. Can you please suggest any solution?

1Slarti1

Sorry for the late reply. It seams Streamplayer has a problem with the GStreamer Backend. I am using the Xine Phonon Backend. It should also work with the VLC Backend. If you'll use the Xine Backend, then modify the Phonon-Xine.xine.conf to avoid buffering problems. Let me know if it works.

aray

I tried with Xine, but although the plasma-desktop restart didn't occur, stream didn't play. Will try again later.

1Slarti1

I have changed the plasmoid. Now it should work.

ScapeARt

I removed plasmoid and put it on desktop again. It doesn't remember radio streams that I wrote in settings before I removed plasmoid from desktop.

dkarnout

Thanks for the plasmoid, i use it every day. At metadata, when for example artist and title exists, but not album, it doesn't add a new line. I believe that you should always add <br><br> before every metadata, and just remove the first 8 characters of infoData string, in generateInfoData(). This would also make your code simpler.

1Slarti1

Thanks for the hint. Your idea is a better way to do it. I have changed the code.

deadbabylon

I get this error on Fedora 13 with KDE 4.5.1 and Qt 4.6.3: [100%] Building CXX object CMakeFiles/plasma_applet_stream_player.dir/stream_player_config.o /usr/lib/ccache/c++ -DMAKE_PLASMA_APPLET_STREAM_PLAYER_LIB -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC -I/builddir/build/BUILD/kde-plasma-streamplayer-0.3.0/i686-redhat-linux-gnu -I/builddir/build/BUILD/kde-plasma-streamplayer-0.3.0 -I/usr/include/kde4 -I/usr/include/kde4/KDE -I/usr/include/KDE -I/usr/include/phonon -I/usr/include/QtXmlPatterns -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include/QtUiTools -I/usr/include/QtTest -I/usr/include/QtSvg -I/usr/include/QtSql -I/usr/include/QtScriptTools -I/usr/include/QtScript -I/usr/include/QtOpenGL -I/usr/include/QtNetwork -I/usr/include/QtMultimedia -I/usr/include/QtHelp -I/usr/include/QtDesigner -I/usr/include/QtDBus -I/usr/include/QtAssistant -I/usr/include/Qt3Support -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include/Qt -I/usr/lib/qt4/mkspecs/default -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o CMakeFiles/plasma_applet_stream_player.dir/stream_player_config.o -c /builddir/build/BUILD/kde-plasma-streamplayer-0.3.0/stream_player_config.cpp In file included from /builddir/build/BUILD/kde-plasma-streamplayer-0.3.0/stream_player.cpp:18: /usr/include/kde4/KDE/Plasma/../../plasma/applet.h:417: warning: 'virtual void Plasma::Applet::paintInterface(QPainter*, const QStyleOptionGraphicsItem*, const QRect&)' was hidden /builddir/build/BUILD/kde-plasma-streamplayer-0.3.0/stream_player.h:65: warning: by 'void stream_player::paintInterface()' /builddir/build/BUILD/kde-plasma-streamplayer-0.3.0/stream_player.cpp:306: warning: unused parameter 'state' /builddir/build/BUILD/kde-plasma-streamplayer-0.3.0/stream_player.cpp:306: warning: unused parameter 'old_state' /builddir/build/BUILD/kde-plasma-streamplayer-0.3.0/advancediconwidget.cpp: In member function 'void Plasma::IconAction::show()': /builddir/build/BUILD/kde-plasma-streamplayer-0.3.0/advancediconwidget.cpp:179: error: 'PixmapTransitionAnimation' is not a member of 'Plasma::Animator' make[2]: Leaving directory `/builddir/build/BUILD/kde-plasma-streamplayer-0.3.0/i686-redhat-linux-gnu' make[2]: *** [CMakeFiles/plasma_applet_stream_player.dir/advancediconwidget.o] Error 1 make[1]: *** [CMakeFiles/plasma_applet_stream_player.dir/all] Error 2 make: *** [all] Error 2

1Slarti1

I have the same version of KDE. The Problem could be in the plasma_animator_default.so and the animator.h of your KDE version. I am using Kubuntu and in my animation.h exist 'PixmapTransitionAnimation'. Here is a piece of my animator.h class PLASMA_EXPORT Animator : public QObject { Q_OBJECT Q_ENUMS(Animation) Q_ENUMS(CurveShape) Q_ENUMS(Movement) public: enum Animation { AppearAnimation = 0, /*<< Animate the appearance of an element */ DisappearAnimation, /*<< Animate the disappearance of an element */ ActivateAnimation, /*<< When something is activated or launched, such as an app icon being clicked */ FadeAnimation, /*<< Can be used for both fade in and out */ GrowAnimation, /*<< Grow animated object geometry */ PulseAnimation, /*<< Pulse animated object (opacity/geometry/scale) */ RotationAnimation, /*<< Rotate an animated object */ RotationStackedAnimation, /*<< for flipping one object with another */ SlideAnimation, /*<< Move the position of animated object */ GeometryAnimation, /*<< Geometry animation*/ ZoomAnimation, /*<<Zoom animation */ PixmapTransitionAnimation, /*<< Transition between two pixmaps*/ WaterAnimation /*<< Water animation using ripple effect */, LastAnimation = 1024 }; if the 'PixmapTransitionAnimation' exists in your animator.h, then there is a problem with the version of the library. But that isn't a solution of your Problem.

1Slarti1

I have fixed this Problem.

aray

Thanks for adding the requested features. Will it be possible to add the record feature also to this great plasmoid? I think that will be very useful.

madegirah

There is a feature request for you It Will be cool if I could choose the streams not only with the buttons, but when I press the right mouse button on the plasmoid I could see the list of stations and choose the stream I want to hear. So I suggest to make a station list in right-mouse menu to faster and easier navigate. What do you think about it? The same thing was in SimpleStream Plasmoid, so you can use it's source code

1Slarti1

I added the Feature.

madegirah

Everything working after another reboot :) Thank you very much for such an awesome plasmoid!

madegirah

I run the command cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` .. and it says the following: CMake Error at /usr/local/share/cmake-2.8/Modules/FindKDE4.cmake:98 (MESSAGE): ERROR: cmake/modules/FindKDE4Internal.cmake not found in /home/ondatr/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps Call Stack (most recent call first): CMakeLists.txt:5 (find_package) -- Configuring incomplete, errors occurred! What should I do solve this problem?

1Slarti1

If you install the kdelibs5-dev package, then it should work. sudo apt-get install kdelibs5-dev

madegirah

Thank you, it worked! The Plasmoid compiled without a problem! But when I added it to panel and tried to customize it caused a plasma segmentation fault, I rebooted, removed the plasmoid, and added it again, and it didn't cause the plasma fall anymore. So then I added 19 streams in it that woked in SimpleStream Plasmoid, that I used to use in KDE 4.4, and it is not maintained now, it doesn't play them and it doesn't turn the channel!

aray

Once I start a stream, I am finding it difficult to stop the stream. The Play button may be made into a play/stop toggle button, so that clicking on the stop button allows the user to stop the music.

1Slarti1

Normally the Play button should toggle into a Pause button, if the stream starts playing. If the Play button doesn't toggle, then phonon doesn't send the playing signal. What phonon backend are you using? I'm using the Xine backend.

Pling
0 Affiliates
Details
license
version 0.5.1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 4

Other Plasma 4 Extensions:

Icon Tasks deb build
N00bun2
last update date: 13 years ago

Score 4.3

Prayer Times Plasmoid
riyad
last update date: 12 years ago

Score 5.2

KPrayertime4 Islamic Prayer Times
ahaq
last update date: 15 years ago

Score 4.4

Hostinfo
mgraesslin
last update date: 13 years ago

Score 4.7

Monitor QuadCore Russian
kuchumovn
last update date: 16 years ago

Score 5.0

blaKjaK
werevire
last update date: 15 years ago

Score 5.0