
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
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!
9 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.
9 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
9 years ago
Report
1Slarti1
9 years ago
I hope it works.
Report
praveenthivari
9 years ago
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
1Slarti1
9 years ago
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
9 years ago
Report
roctheme
9 years ago
Report
aray
9 years ago
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
1Slarti1
9 years ago
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
9 years ago
Will try again later.
Report
1Slarti1
9 years ago
Report
ScapeARt
10 years ago
Report
dkarnout
10 years ago
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
1Slarti1
10 years ago
Report
deadbabylon
10 years ago
[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
1Slarti1
10 years ago
Report
1Slarti1
10 years ago
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
10 years ago
Will it be possible to add the record feature also to this great plasmoid?
I think that will be very useful.
Report
madegirah
10 years ago
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
1Slarti1
10 years ago
Report
madegirah
10 years ago
Thank you very much for such an awesome plasmoid!
Report
madegirah
10 years ago
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
1Slarti1
10 years ago
sudo apt-get install kdelibs5-dev
Report
madegirah
10 years ago
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
10 years ago
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
1Slarti1
10 years ago
Report