Craig Drummond
b6bd94c236
Update (c) year
2022-01-08 21:24:07 +00:00
Craig Drummond
b65b182629
Misc fixes - taken from https://github.com/fenuks/cantata
2021-12-27 17:05:24 +00:00
Craig Drummond
11bb7571c9
Update (c) year
2021-01-01 10:06:43 +00:00
Thomas Uhle
0df2710b9e
Fix enabling of play queue navigation actions 'next' and 'previous'
...
To enable or disable 'next' action, just rely on MPD's status value
'nextSongId'. Enable 'previous' action when there is more than one item in
the play queue or one item for which its duration is known and this is more
than 5 seconds. That is to also support the feature to go to the start of a
track if already played 5 seconds of it at least (which was introduced in
version 2.4.0). Corresponding implementation of Mpris and ThumbnailToolBar
updated accordingly.
2020-05-30 17:00:12 +02:00
Thomas Uhle
020ef1f956
Trigger MPRIS status update when connection to MPD lost
...
- Also propagate status update to MPRIS interface similar to what has been
done in commit 5dd0942066 .
The probably simplest solution is to call Mpris::updateStatus() always
when MainWindow::updateStatus() is called.
- Check for valid song ID in Mpris::CanPause() to return false if
connection to MPD has been lost.
2020-05-15 15:45:23 +02:00
Thomas Uhle
9acee0d50c
Synchronize update of current song details and status of MPRIS interface
...
- Trigger MPRIS status update if current song is updated a little too late.
- Skip MPRIS status update if current song has not yet been updated.
2020-05-15 13:00:27 +02:00
Thomas Uhle
4263744926
Avoid unknown song durations and duplicate updates of MPRIS' song details
...
- Move call to Mpris::updateCurrentSong() downwards to pick up the potential
update of current song's duration from MPD's total time value (introduced
by commit 1a38e468b7 ) and to avoid duplicate
notifications (cf. commit bba9cfd880 ).
- Update MPRIS status value CanSeek when MPD's total time changes.
- Set MPDStatusValues::timeElapsed and MPDStatusValues::timeTotal to 0
instead of -1 by default because the latter yields 65535 as these
variables are 16 bit unsigned integer.
2020-05-15 12:44:55 +02:00
Thomas Uhle
6c89271ac5
MPRIS interface: fix LoopStatus getter and setter
...
Also take into account whether MPD's single state is set or should
be updated.
2020-05-07 12:00:16 +02:00
Thomas Uhle
f0a1ae8b1c
MPRIS interface: fix CanPlay/CanPause status update
...
Re-enable status update of CanPlay/CanPause and let Mpris::CanPlay()
only return true if the play queue is non-empty and so just let
Mpris::CanPause() return true unless MPD's state equals 'stopped'.
2020-05-05 22:36:56 +02:00
Thomas Uhle
530d907240
MPRIS interface: fix if condition for CanSeek status update
...
Update status of CanSeek after switching to another item in the play
queue but not if MPD's state is changing.
2020-05-05 22:36:11 +02:00
Craig Drummond
d7b3965b9b
Update (c) year
2020-01-01 11:51:13 +00:00
Craig Drummond
cb9efe205f
Update (c) year
2019-09-15 15:56:58 +01:00
Craig Drummond
9d9089c67f
MPRIS seeks command specifies an offset from current position.
...
Closes #1417
2018-12-09 20:38:21 +00:00
Craig Drummond
eff0e66d39
Use AUTOMOC
2018-03-07 19:04:14 +00:00
Craig Drummond
96af98b5cb
Use qlonglong for Position
...
Issue #1227
2018-03-01 23:42:28 +00:00
Craig Drummond
2139d3dbb8
Update (c) year
2018-01-01 10:11:39 +00:00
Craig Drummond
33e1800f39
Fix MPRIS length field.
...
Issue #1119
2017-11-10 23:38:52 +00:00
Craig Drummond
003cc3889a
MPRIS: Fix updating of can go next/previous
2017-09-08 18:59:11 +01:00
Craig Drummond
554d41783e
Set correct mpris:trackid
...
Issue #1082
2017-09-08 18:51:54 +01:00
Craig Drummond
665b2acbcc
Don't always return true for CanSeek, CanGoNext, CanGoPrevious. There
...
was a reason for this, but I can't remember...
Issue #1034
2017-06-21 22:48:02 +01:00
Craig Drummond
05dd63f984
Show more radio stream data in MPRIS
...
Issue #1005
2017-04-20 18:07:46 +01:00
Craig Drummond
0a73215867
Update (c) year
2017-04-02 18:45:30 +01:00
Craig Drummond
eaca1f34f3
When listing albums where composer is used for artist grouping, place album artist name after album name if different from composer.
...
Issue #896
2016-10-16 22:33:41 +01:00
Craig Drummond
63a5208b6d
CanPause, Play, etc, never change - so no need to add to notification
2016-07-03 22:48:25 +01:00
Craig Drummond
0e5c172671
Always return true for MPRIS CanPlay, CanPause, etc.
2016-07-02 16:09:44 +01:00
Craig Drummond
705648420a
Update (c) year
2016-01-08 18:55:13 +00:00
Craig Drummond
9533f12881
Update (c) year
2015-08-13 21:12:34 +01:00
Craig Drummond
9215b4bdf5
Add option to disable MPRIS interface.
...
#707
2015-07-25 18:07:15 +01:00
craig.p.drummond
93b70ec240
Rename mpd source folder to mpd-interface to help build errors when libmpdclient(?) is also installed.
...
BUG: 650
2015-03-16 19:18:52 +00:00
craig.p.drummond
0e4bfcea2a
Store radio station 'name' field in extra map
2014-06-16 19:14:18 +00:00
craig.p.drummond
cfdeb0d1be
No need to include mainwindow.h
2014-05-19 18:26:46 +00:00
craig.p.drummond
64c06773ce
Alter includes to have su-folder - e.g. utils.h -> support/utils.h
2014-05-13 18:37:52 +00:00
craig.p.drummond
28526dcf06
- Remove corner cover widget.
...
- Remove collapsing of interface.
- Move position label inbetween controls.
- Use only 1 line for song details.
2014-02-19 20:39:12 +00:00
craig.p.drummond
5c4b8d1c47
Auto-scroll lyrics
...
BUG: 405
2014-02-18 19:34:37 +00:00
craig.p.drummond
4201e936b5
If file path starts with /, then its not an MPD file
2014-01-16 19:31:12 +00:00
craig.p.drummond
addfca835a
Update (c) year
2014-01-06 19:32:05 +00:00
craig.p.drummond
17d6b23a05
- Optionally support Qxt global shortcuts for Qt-only (Qt4) Linux, and Windows, builds.
...
- Move media-keys setting into shortcuts page.
2013-10-04 18:42:56 +00:00
craig.p.drummond
b6c0bcbe0a
Add year info to mpris
2013-04-08 17:11:28 +00:00
craig.p.drummond
7317604547
Fix seek via mpris
2013-04-06 07:45:57 +00:00
craig.p.drummond
995dd8e0fe
If song id changes, ensure we also update position
2013-03-24 16:38:01 +00:00
craig.p.drummond
e8eba01f39
convertTime()
2013-03-24 16:00:17 +00:00
craig.p.drummond
0886c20dd4
Fix MPRIS position reporting
2013-03-22 20:59:40 +00:00
craig.p.drummond
5fc20b65ee
Oops!!!
2013-03-21 13:05:28 +00:00
craig.p.drummond
bdc1a0be80
Fix logic
2013-03-21 13:03:54 +00:00
craig.p.drummond
5b35d19084
Update notification and mpris when song in stram changes
2013-03-20 21:28:36 +00:00
craig.p.drummond
f07f3e3a21
Improve MPRIS interface - fix CanPlay/CanPause status update, and use micro seconds for times.
2013-03-20 19:34:10 +00:00
craig.p.drummond
fbe6f03408
Update copyright year
2013-01-17 16:57:20 +00:00
craig.p.drummond
b59cae9182
Improve MPRIS data.
...
- Send AlbumArtist, if different from Artist
- Send Genre
- Artist, AlbumArtist, and Genre should be lists of strings
- Fix file/stream URLs
BUG:133
2012-11-22 21:12:27 +00:00
craig.p.drummond
e40b388f03
Fix mpris updates. Stops sound menu ccrashing, and shows cover art.
2012-10-08 20:56:36 +00:00
craig.p.drummond
56570dc7db
Add option to support GNOME media keys.
2012-10-05 21:36:50 +00:00