Stream Player

Plasma 4 Widgets

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

5
Score 75.3%
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:

8 years ago

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.

praveenthivari

8 years ago

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

Report

C

1Slarti1

8 years ago

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.

Report

praveenthivari

8 years ago

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?

Report

C

1Slarti1

8 years ago

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.


Report

praveenthivari

8 years ago

Oh thanks

Report

9

roctheme

8 years ago

This is a great plasmoid!

Report

aray

8 years ago

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?

Report

C

1Slarti1

8 years ago

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.

Report

aray

8 years ago

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

Will try again later.

Report

C

1Slarti1

8 years ago

I have changed the plasmoid. Now it should work.

Report

ScapeARt

9 years ago

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.

Report

9

dkarnout

9 years ago

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.

Report

C

1Slarti1

9 years ago

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

Report

deadbabylon

9 years ago

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

Report

C

1Slarti1

9 years ago

I have fixed this Problem.

Report

C

1Slarti1

9 years ago

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.

Report

aray

9 years ago

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.

Report

9

madegirah

9 years ago

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

Report

C

1Slarti1

9 years ago

I added the Feature.

Report

9

madegirah

9 years ago

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

Report

9

madegirah

9 years ago

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?

Report

C

1Slarti1

9 years ago

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

sudo apt-get install kdelibs5-dev

Report

9

madegirah

9 years ago

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!

Report

aray

9 years ago

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.

Report

C

1Slarti1

9 years ago

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.

Report

8 years ago

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.

12345678910
110
product-maker voondo_double Jan 10 2013 9 excellent
product-maker pvt14 Jul 10 2011 9 excellent
product-maker mreloads Jun 22 2011 9 excellent
product-maker roctheme Jun 21 2011 9 excellent
product-maker momonster Jun 21 2011 9 excellent
product-maker jfest Feb 09 2011 9 excellent
product-maker dkarnout Oct 22 2010 9 excellent
product-maker LiShaohui Oct 06 2010 9 excellent
product-maker thecrazyzorro Oct 01 2010 9 excellent
product-maker vitoubien Sep 26 2010 3 bad
product-maker madegirah Sep 24 2010 9 excellent
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
lei00
Nov 27 2012
pvt14
Jul 10 2011
dkarnout
Oct 22 2010
thecrazyzorro
Sep 29 2010
madegirah
Sep 25 2010
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.5.1
updated Jul 09 2011
added Sep 13 2010
downloads 24h
0
mediaviews 24h 0
pageviews 24h 4