jsmitar / playbar2 Goto Github PK
View Code? Open in Web Editor NEWMpris2 Client for Plasma5
License: GNU General Public License v3.0
Mpris2 Client for Plasma5
License: GNU General Public License v3.0
When system use multiple media players, Playbar use only one source for control, seems from which it got last event.
So very often this is web browser, that plays some short media file, that is not good, because after playing in browser I can't control my favorite media player.
Will be good to have option for force use preferred source to control in widget settings, can you please add this feature?
by farohp on: May 28 2016 link
For me is a very important function have seek bar next to button control in KDE bar.
Like Panflute: http://3.bp.blogspot.com/_FJH0hYZmVtc/S6AbcGxo3wI/AAAAAAAAGqQ/nBHS1-pWzAs/s400/Selection_002.png
Is possibile?
In alternative move the mouse over the button control in bar and automatically appear the window that you have programmed with the seek bar.
Play action not worked with VLC after pause (on panel and widget too).
LOG plasmashell:
QDBusObjectPath: invalid path ""
Registering "org.kde.StatusNotifierItem-17871-1/StatusNotifierItem"
QDBusObjectPath: invalid path ""
QDBusObjectPath: invalid path ""
trying to show an empty dialog
QDBusObjectPath: invalid path ""
....
Step for reproduce:
KDE Neon 20170615
Plasma 5.10.1
KDE Frameworks 5.35
VLC 2.2.2
PlayBar 2.5
Nocover image have black background, but original icon is have transparent background.
Preview:
On Plasma notification icon show normaly and on Clementine too:
Original icon:
https://github.com/PapirusDevelopmentTeam/papirus-icon-theme-kde/blob/master/papirus/64x64/places/nocover.svg
I'd like to have a shortcut to move to next source. Would it be possible?
Also, I see in settings an option for "Toggle window media player", which at first I thought it was exactly this. But I don't see this shorcut does anything... Can you please clarify what is this functionality about?
Thank you!
My plasma location is /opt/kf5(/lib). It would seem however, the hard coded install path is /usr(/lib64). CMAKE_INSTALL_PREFIX seems to be ignored. Its a little annoying needing to manually move files into their correct places.
Hi,
first of all, thanks for the great widget. I would like to propose an enhancement for it: I like to see the album cover really large :-), but it does not scale with the widget. If automatic scaling is problematic an option to adjust the size in the settings would also work out for me.
I have attached two screenshots. The first one shows the widget in small. It looks nice in this setting. For the larger setting (screenshot2) however, the picture could use all the additional space. The skip and volume bar can stay vertically at the same position as before.
Maybe it's help for some users :)
Compiled for Xenial (Ubuntu 16.04)
amd64:
https://launchpad.net/~varlesh-l/+archive/ubuntu/ubuntu-tools/+files/plasma-widget-playbar2_2.5fixed_amd64.deb
i386:
https://launchpad.net/~varlesh-l/+archive/ubuntu/ubuntu-tools/+files/plasma-widget-playbar2_2.5fixed_i386.deb
At now widget button always visible, so they eats space in widget and cut text with current song info.
Will be good to implement mode for show only text info in widget, but on mouse hover - show buttons (pause, and next/prev/stop). This will extend area for displaying current song info, and allow to show more buttons on "Play/Pause and track info" mode. What do you think about this idea?
There are some dependencies missing in CMakeList.txt and/or in README:md (that are currently only fulfilled in a transient way):
The dependency on the follwing packages is not necessary:
Furthermore the qml dependencies are only runtime dependencies (all the QML stuff, qtdeclarative), its nice to add them in cmake with the help of kde/extra-cmake-modules via:
ECMQMLModules#ecm_find_qmlmodule
You can find an example here: https://phabricator.kde.org/D7273
However, they are only present in frameworks >=5.28. Thus, you would need to require a recent frameworks version.
On next days I will to liberate a new release.
Please see:
Greetings!
With new release of KF 12 the PlayBar stopped to work :(
LANG=C DEBUG=yes plasmawindowed audoban.applet.playbar
unversioned plugin detected, may result in instability
kf5.kservice.sycoca: Trying to open ksycoca from "/home/kv/.cache/ksycoca5"
Falling back to legacy separed QQmlEngine for applet "org.kde.desktopcontainment"
unversioned plugin detected, may result in instability
requesting config for "PlayBar" without a containment!
"file:///usr/share/plasma/plasmoids/audoban.applet.playbar/contents/ui/main.qml"
"Error loading QML file.
"
couldn't create slave: "Unable to create io-slave:
klauncher said: ??????????? ???????? ?plasmapackage?.
Last string is "Сообщение klauncher: Неизвестный протокол «plasmapackage»." Smth like "Unknouwn protocol "plasmapackage""
At now layout with track info contains only one play/pause button. Will be good to have mode with all buttons together with track info too!
Add a launcher for default music player when it is not opened.
Excellent widget. Great work!!
Hey Im trying to compile playbar2
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
I typed this in but it keeps saying /home/username does does appear to contain CMakeLists.txt
how do I change the source also /home/username does not exist?
"username" referring my system's name
Thanks
For KDE now default icon size 22px it's contained for status (on icon theme) and Plasma desktop theme.
Used icon media, but icons on Playbar bigger and blurred.
Please see screenshots for compare:
Original icon on Plasma theme:
Icons on panel:
Option toolbar not solve this, because icons not use 22px and very tiny (and blurred too):
Plugin:
https://github.com/Serranya/deadbeef-mpris2-plugin.
If press "pause/play" button on Playbar2 - player set Pause.
But if press again "pause/play" button - not nothing :(
LOG:
plasma.engine.mpris2: Trying to perform the action "Play"
PS: Original mediacontrol widget KDE not have this problem, play/pause working.
QObject::connect: Cannot connect (null)::settingsChanged(QString) to PlayBar::loadSettings()
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
qml: plugin name audoban.applet.playbar
it would nice to have a little smaller margins in the right side of the Play/Pause layout. Playbar can not be added yet in the systray but it is possible to add it next to it.... Like the screenshot shows the only thing that distinguish the playbar applet from the systray items is a bigger margin on the right side. If this margin was changed a bit then the playbar applet would look like as it belonged in the systray when no media is playing...
I built your app from source, and it seems to have a few issues(used Spotify for that):
-No album cover is shown
-Cannot open the configuration window
-The 'Open Spotify' option does not work
-Next multimedia source does not do anything too.
However, the media buttons work.
Hope these issues get resolved soon - your widget looks great, looking forward to use it once it starts to work on Fedora.
Contact with me please. 👍
http://itmages.ru/image/view/6173594/3799b749
This picture shows that the widget is empty. This behavior of the widget is observed in kubuntu 16.04 and mint 18. At the same time its settings open normally.
Install version from AUR.
KDE 5.4.1
LOG (plasmashell):
http://pastebin.com/mpL91TKd
Playbar is very powerful, which now applies also to online multimedia players in common browsers like chromium and firefox via plasma-browser-integration. This is great to control pause/play, for instance.
There is however sth in online players that annoys me quite a bit, and playbar could perhaps help quite a lot: it is not easy to move the player position back and forward in a controlled manner. Instead, one needs to drag and drop the dot of the current player position, which is a very coarse way to do it.
It would be awesome to have the possibility to move back and forward the position of online multimedia players via Playbar. Ideally with an option in settings to set how many seconds to jump (so a user can configure it to her preference), and with keyboard shortcuts to activate the jump in each direction.
Do you think this is something doable?
In the README.md
in the Repositories Kubuntu section:
https://github.com/audoban/playbar2/blob/8b6607522b031fc81793ace1db6d5edd3ab21671/README.md#L68-L73
the ppa:varlesh-l/plasma5-tools
was renamed. Replace the first line with the following:
sudo add-apt-repository ppa:varlesh-l/ubuntu-tools
The name of the package is the same.
Hi.
Thanks for this nice widget.
When use clementine back button and seek scroll not work
Is it not possible to have PlayBar in the systray anymore?
I really liked that feature, to replace Plasma's default media player control... Would it be possible to get it back?
I have install plasma-framework-devel and plasma5-workspace-devel packages (seems that it have other names in Ubuntu - plasma-workspace-dev and plasma-framework-dev).
But after this I see the errors on compiling Playbar2:
$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package):
Could not find a package configuration file provided by "KF5DocTools"
(requested version 5.9.0) with any of the following names:
KF5DocToolsConfig.cmake
kf5doctools-config.cmake
Add the installation prefix of "KF5DocTools" to CMAKE_PREFIX_PATH or set
"KF5DocTools_DIR" to a directory containing one of the above files. If
"KF5DocTools" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:14 (find_package)
-- Could NOT find KF5DocTools: found neither KF5DocToolsConfig.cmake nor kf5doctools-config.cmake
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package):
Could not find a package configuration file provided by "KF5Declarative"
(requested version 5.9.0) with any of the following names:
KF5DeclarativeConfig.cmake
kf5declarative-config.cmake
Add the installation prefix of "KF5Declarative" to CMAKE_PREFIX_PATH or set
"KF5Declarative_DIR" to a directory containing one of the above files. If
"KF5Declarative" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:14 (find_package)
-- Could NOT find KF5Declarative: found neither KF5DeclarativeConfig.cmake nor kf5declarative-config.cmake
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package):
Could not find a package configuration file provided by "KF5WindowSystem"
(requested version 5.9.0) with any of the following names:
KF5WindowSystemConfig.cmake
kf5windowsystem-config.cmake
Add the installation prefix of "KF5WindowSystem" to CMAKE_PREFIX_PATH or
set "KF5WindowSystem_DIR" to a directory containing one of the above files.
If "KF5WindowSystem" provides a separate development package or SDK, be
sure it has been installed.
Call Stack (most recent call first):
CMakeLists.txt:14 (find_package)
-- Could NOT find KF5WindowSystem: found neither KF5WindowSystemConfig.cmake nor kf5windowsystem-config.cmake
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package):
Could not find a package configuration file provided by "KF5ConfigWidgets"
(requested version 5.9.0) with any of the following names:
KF5ConfigWidgetsConfig.cmake
kf5configwidgets-config.cmake
Add the installation prefix of "KF5ConfigWidgets" to CMAKE_PREFIX_PATH or
set "KF5ConfigWidgets_DIR" to a directory containing one of the above
files. If "KF5ConfigWidgets" provides a separate development package or
SDK, be sure it has been installed.
Call Stack (most recent call first):
CMakeLists.txt:14 (find_package)
-- Could NOT find KF5ConfigWidgets: found neither KF5ConfigWidgetsConfig.cmake nor kf5configwidgets-config.cmake
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package):
Could not find a package configuration file provided by "KF5XmlGui"
(requested version 5.9.0) with any of the following names:
KF5XmlGuiConfig.cmake
kf5xmlgui-config.cmake
Add the installation prefix of "KF5XmlGui" to CMAKE_PREFIX_PATH or set
"KF5XmlGui_DIR" to a directory containing one of the above files. If
"KF5XmlGui" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:14 (find_package)
-- Could NOT find KF5XmlGui: found neither KF5XmlGuiConfig.cmake nor kf5xmlgui-config.cmake
CMake Warning at /usr/share/ECM/find-modules/FindKF5.cmake:77 (find_package):
Could not find a package configuration file provided by "KF5GlobalAccel"
(requested version 5.9.0) with any of the following names:
KF5GlobalAccelConfig.cmake
kf5globalaccel-config.cmake
Add the installation prefix of "KF5GlobalAccel" to CMAKE_PREFIX_PATH or set
"KF5GlobalAccel_DIR" to a directory containing one of the above files. If
"KF5GlobalAccel" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:14 (find_package)
-- Could NOT find KF5GlobalAccel: found neither KF5GlobalAccelConfig.cmake nor kf5globalaccel-config.cmake
CMake Error at /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
Could NOT find KF5 (missing: DocTools Declarative WindowSystem
ConfigWidgets XmlGui GlobalAccel) (found suitable version "5.9.0", minimum
required is "5.9.0")
Call Stack (most recent call first):
/usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
/usr/share/ECM/find-modules/FindKF5.cmake:113 (find_package_handle_standard_args)
CMakeLists.txt:14 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/murz/temp/2015-07/PlayBar2-master/build/CMakeFiles/CMakeOutput.log".
Maybe I need to install some additional packages? Which names of packages can I try to install?
Will be good to have mode for display track info in two text lines, first line is song name, second is artist and album. And make font size configurable.
Here is screenshot of https://github.com/bkueng/mediacontrollercompact widget with 2 lines:
After an update to KDE 5.17.3 most media icons have been missing due to a rename of the icon names:
in icons/media
media-playback-start
has changed to ww-hh-media-playback-start
media-playback-pause
has changed to ww-hh-media-playback-pause
media-playback-stop
has changed to ww-hh-media-playback-stop
media-skip-backward
has changed to ww-hh-media-skip-backward
media-skip-forward
has changed to ww-hh-media-skip-forward
where ww-hh-
can be one of the following:
16-16-
22-22-
32-32-
Would it be poosible to use the renamed icons if available and otherwise the ones without the ww-hh-
-prefix (for downward compatibility)?
(With inkscape
you can inspect /usr/share/plasma/desktoptheme/default/icons/media.svgz
.)
release soon
Hi,
i like your plasmoid a lot (much better than the default media widget), but did not want to pollute my system with an unmanaged installation, so i have created a small ebuild (Gentoo Package file) for PlayBar2.
If you like, you can add this to your releases, or provide it at kde-look. By simply renaming the file to the desired version number, you can adjust the ebuild to new releases.
filename: playbar-2.3.ebuild
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit cmake-utils
DESCRIPTION="Client MPRIS2, allows you to control your favorite media player"
HOMEPAGE="https://github.com/audoban/PlayBar2"
SRC_URI="https://github.com/audoban/PlayBar2/archive/v${PV}.tar.gz"
LICENSE="GPLv3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
DEPEND="kde-frameworks/kglobalaccel
kde-plasma/plasma-workspace
kde-frameworks/kdeclarative
kde-frameworks/kconfigwidgets
kde-frameworks/kxmlgui
kde-frameworks/kwindowsystem
kde-frameworks/kdoctools"
S="${WORKDIR}/PlayBar2-${PV}"
Hi,
since yesterday there is a new beta (http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.0.13.111.g6bd0deca_amd64.deb) which brings back DBUS/MPRIS2. But PlayBar2 doesn't recognize Spotify running. Could you please have a look into that?
The same applies to PlayBar.
Thanks!
This issue follows some discussion in issue #37
SMPlayer dev comment:
There's already code to raise the window in the mpris2 code (of SMPlayer), however it seems most desktops ignore it because they don't allow a window to go foreground on its own. The dragonplayer uses a specific function from the KDE libraries to do it (KWindowSystem::forceActiveWindow), but I can't use the KDE libraries, otherwise smplayer will depend on a lot of KDE packages.
Maybe the call to that function can be done by playbar2. According to
the KDE documentation that function should only be used by "pagers and
similar tools".
Thanks for considering!
Title says it all
In the README.md
in the Kubuntu section:
https://github.com/audoban/playbar2/blob/8b6607522b031fc81793ace1db6d5edd3ab21671/README.md#L45-L50
one dependency is missing. PlayBar2 also needs the gettext
package (exactly that)
In the last update I liked so much the vertical layout. I did configure my play bar widget in vertical mode, but when I turn on my pc, this layout does not persist. Then, I go to the settings of the widget: the vertical layout appears chosen. So, I have to chose horizontal layout and then go back to the vertical to apply the changes to get this mode.
Greetings!
I've build the latest version from remotes/origin/playbar-devel branch.
After start it shows these errors:
Ошибка загрузки файла QML: file:///usr/share/plasma/plasmoids/audoban.applet.playbar/contents/ui/main.qml:85:31: Type FullApplet unavailable
file:///usr/share/plasma/plasmoids/audoban.applet.playbar/contents/ui/FullApplet.qml:22:1: Type DefaultLayout unavailable
file:///usr/share/plasma/plasmoids/audoban.applet.playbar/contents/ui/DefaultLayout.qml:84:2: Type SliderSeek unavailable
file:///usr/share/plasma/plasmoids/audoban.applet.playbar/contents/ui/SliderSeek.qml:52:3: Property value set multiple times
Maybe smth wrong in install?
Thank You.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.