ismailof / mediacontroller_plus Goto Github PK
View Code? Open in Web Editor NEWModified version of mediacontroller plasma5 widget
License: GNU General Public License v2.0
Modified version of mediacontroller plasma5 widget
License: GNU General Public License v2.0
It would be nice if I could limit the height of the media player in a latter panel. So just like there is a max width option, a max height option would also be nice.
Furthermore an option to force one of the specific layouts would also be nice, regardless of absolute size.
Hi there. I was about to ask for a feature request for either a general margin or max height. My use case is slightly different than @Davincible, I'm using the widget on a Latte dock, and it looks a little out of scale with the other icons in the panel.
I can specify a margin for items in Latte's own application widget through Latte's settings, but it has no effect on other widgets.
Thanks.
Edit: Sorry, pasted the totally wrong the screen shot initially.
Originally posted by @rubin110 in #19 (comment)
Add an option to set the width, it is too large when in pannel
I have this in my syslog with plasma 5, @ismailof :
2024-03-22T11:28:25.174595+01:00 KITT plasmashell[1792]: file:///home/mte90/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/CompactRepresentation.qml:108:9: Unable to assign [undefined] to int
2024-03-22T11:28:25.174660+01:00 KITT plasmashell[1792]: file:///home/mte90/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/AlbumArt.qml:38: TypeError: Cannot read property 'Desktop Icon Name' of undefined
2024-03-22T11:28:25.174740+01:00 KITT plasmashell[1792]: file:///home/mte90/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/TrackInfo.qml:34:5: Unable to assign [undefined] to int
2024-03-22T11:28:31.587307+01:00 KITT plasmashell[1792]: Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
2024-03-22T11:28:33.433988+01:00 KITT plasmashell[1792]: Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
2024-03-22T11:28:33.971171+01:00 KITT plasmashell[1792]: file:///usr/share/ksysguard/sensorfaces/org.kde.ksysguard.linechart/contents/ui/LineChart.qml:57:9: Unable to assign [undefined] to int
2024-03-22T11:28:33.975633+01:00 KITT plasmashell[1792]: file:///home/mte90/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/AlbumArt.qml:38: TypeError: Cannot read property 'Desktop Icon Name' of undefined
2024-03-22T11:28:33.975689+01:00 KITT plasmashell[1792]: file:///home/mte90/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/TrackInfo.qml:34:5: Unable to assign [undefined] to int
2024-03-22T11:28:33.975785+01:00 KITT plasmashell[1792]: file:///home/mte90/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/CompactRepresentation.qml:108:9: Unable to assign [undefined] to int
2024-03-22T11:28:33.976571+01:00 KITT plasmashell[1792]: file:///home/mte90/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/main.qml:68: TypeError: Cannot read property 'Rate' of undefined
2024-03-22T11:28:33.976605+01:00 KITT plasmashell[1792]: file:///home/mte90/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/main.qml:67: TypeError: Cannot read property 'Position' of undefined
2024-03-22T11:28:33.976627+01:00 KITT plasmashell[1792]: file:///home/mte90/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/main.qml:65: TypeError: Cannot read property 'CanSeek' of undefined
2024-03-22T11:28:33.976707+01:00 KITT plasmashell[1792]: file:///home/mte90/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/main.qml:68: TypeError: Cannot read property 'Rate' of undefined
2024-03-22T11:28:33.976732+01:00 KITT plasmashell[1792]: file:///home/mte90/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/main.qml:65: TypeError: Cannot read property 'CanSeek' of undefined
2024-03-22T11:28:33.976746+01:00 KITT plasmashell[1792]: file:///home/mte90/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/main.qml:67: TypeError: Cannot read property 'Position' of undefined
2024-03-22T11:28:33.976760+01:00 KITT plasmashell[1792]: file:///home/mte90/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/AlbumArt.qml:38: TypeError: Cannot read property 'Desktop Icon Name' of undefined
When playing things (tested with CMUS and firefox via plasma's integration) the progress of the media as shown in mediacontroller+ is moving at 2 seconds per second (Edit: this doesn't seem to be exactly 2 seconds per second, more like 3, could be 2.5). Poking at playerctl shows no issue with MPRIS itself.
Hey ismailof,
Since this is the best media controller addon, are there any chances of it getting ported to Plasma 6?
Thanks!
I'm using plasma version 5.24 on arch and no combination of the toggles actually affects how the widget is displayed. The options show up, unlike #22, but they just don't do anything.
When opening the widget, I am greeted by the following error message:
org.kde.plasma.mediacontroller_plus/contents/ui/main.qml:183:34: Type ExpandedRepresentation unavailable
file:///home/xyz/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/ExpandedRepresentation.qml:23:1: module "QtQuick.Controls" version 2.5 is not installed
I already use the kubuntu-backports PPA, but apparently the required version of that module isn't there.
These are the installed packages with matching names:
https://packages.ubuntu.com/bionic/qml-module-qtquick-controls
https://packages.ubuntu.com/bionic/qml-module-qtquick-controls2
With the plasmoid placed in a panel, the progress bar is drawn on top of the cover and the song info.
Could you please place in the background, instead? That would be consistent with the task manager plasmoid behavior.
Also, while this is quite acceptable when the theme has a translucent background for the progress bar, everything is covered up with opaque themes (eg. Psion)
Think you for this improved version of Media Player widget.
It would be great if the widget could filter out image files as it merely displays default image viewer app (e.g. Gwenview) icon in that case.
When playing from sources like spotify, youtube (from browser) the album image is not being loaded.
Also the icon tab bar isn't showing and isn't working at all.
About my system:
Thank you for the amazing work!
Thanks for this widget as a big enhancement of the default one.
Perhaps the feature I have in mind is beyond the scope of this widget, I don't know, but I think it would be great if we could also see album art (instead of the KDE Connect icon) when the computer is connected to a mobile phone playing music (media player, Spotify etc.).
DE: KDE 5.74.0 / Plasma 5.19.5
OS: Manjaro 20.1.1 Mikah
Kernel: x86_64 Linux 5.4.67-1-MANJARO
I get the above mentioned error every time I try to install this widget through 'Get widgets' -> 'Download new plasma widgets'.
I integrate mediacontroller_plus
to my panel, that have 32 px height, but it use space not optimal, here is screenshot:
Auto layout is good feature, but will be good to have any manual configuration of layout, at least I want to see artist and track name in two lines, like in bigger layouts, also want to see album picture.
Can you please add option for force 2-line layout of author and song name in small sizes, and force show album picture too? Thanks!
P.S. Also prev/next buttons looks too small in my height, can you increase them little bit?
very nice applet, but I miss shortcuts for play/pause, stop, seek forward and backward, next and previous track, and next source that I can use in playbar2. would you consider adding that feature?
When I try to add mediacontroller_plus to a latte dock panel nothing happens. It simply does not appear, however the counter of instances in the "Add Widget" menu increases.
Will be good in "no media playing" mode of widget to have button "Launch app", that will execute favorite music app for user, that can be configured in plasmoid settings (path to executable).
The information is shown correctly when I play music on my laptop using Spotify app, but when I redirect the audio output using Spotify Connect the track information becomes instantly unreadable. Redirecting back to the laptop makes it right again.
Using Spotify Connect means that in the Spotify app I ask to redirect the output to my phone. The app continues to show the track and its progress as before but doesn't play the audio on the laptop.
Hello @ismailof !
first, thanks for this great widget. I use it in my KDE taskbar, and it's really cool !
I have one request tho, I know that in #9, you removed the 2-line display, but I would be very happy to get it back.
Indeed, I have a 27" 2160p monitor, and though I set trhe width of the display to 468px, I cannot see half of neither the artist, nor the track title.
It'd be great if
Many thanks,
GLLM
Error:
Error loading QML file: file:///home/aditya/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/main.qml:188:34: Type ExpandedRepresentation unavailable
file:///home/aditya/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/ExpandedRepresentation.qml:116:35: Type PlasmaComponents3.ToolTip unavailable
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/components.3/ToolTip.qml: No such file or directory
OS: Debian Buster 10, KDE
How to recreate :
Right click on Desktop>Add Widget>Get New Widget>mediacontroller_plus>install > Drag widget to home screen.
What I think might be the issue:
Debian Buster 10 latest qml-module-qtquick-controls (5.11.3-2) < 5.15.2-2( Debian Bullsye and Sid)
_Side Note: _
I had another widget with the same error and changing the import to 2.0 worked for that particular widget.
Mediacontroller plus only show up for a few second before disappear, but it is working quite fine on normal panel
To make matters worse. My widget doesn't seem to respect any visibility options when placed in a vertical panel. Here's a screenshot of mine with only the 'album art' box ticked. It displays only the play button, which is unchecked, and not the album art at all. It also takes up a ton of space like described earlier.
Originally posted by @Nano-Ocelot in #19 (comment)
/home/x user/.local/share/plasma/plasmoids/org.kde.plasma.mediacontroller_plus/contents/ui/ExpandedRepresentation.qml Line X unavailable... /usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/components.3/ToolTip.qml ; no such file or something like that ( unavailable )
Add options to show/hide several UI items. First it is required to add a config UI module
I second the need for a maximum width option in panels. Also an option to disable the progress bar, it's distracting in a panel.
The controls flicker when the song changes and it's very noticeable. I think all the controls should always be visible even when they aren't necessary in the context, e.g. there's no previous song, so the buttons won't move or flicker at all on song changes.
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.