Skip to content

Media playback keys no longer detected #1546

Open
@Cre8or

Description

  • I have checked the FAQ for answers.
  • I have checked the Changelog that the issue is not already fixed.
  • I believe this issue is a bug, and not a general technical issue, question or feature requests that can be discussed on the forum.

Describe the bug
I'm vaguely paraphrasing, but it seems that a KDE update has changed how events related to media controls are dispatched, and Strawberry is not aware of this change (yet). The behaviour described in this issue over at the KDE bug tracker closely matches my issue:

  • Strawberry can be paused via media shortcuts, but not resumed
  • Strawberry no longer skips songs in the playlist via media shortcuts ("previous"/"next")

None of these problems seem to occur when I start Strawberry without any additional file arguments (think "double-clicking" the desktop shortcut), and then play music. The issue only occurs when I double-click a music file, which KDE then opens via Strawberry (thus passing the file path as argument).

My Strawberry/KDE shortcuts are set to default keybindings.

To Reproduce

  • Ensure Strawberry is not open
  • Open a media file with Strawberry (right click -> open with, or any similar method in your distro, so long as Strawberry opens the file immediately on startup)
  • Start the first song (if it isn't playing yet)
  • Use the system's "Media Play" shortcut key to pause the currently playing song
  • Use that same key again to resume the song
  • Notice that the song has not resumed
  • Manually resume the song via the Strawberry player's UI
  • Use the system's "Next track" shortcut key to jump to the next song
  • Notice that the playlist hasn't skipped to the next song, and is still playing the first song
  • Close Strawberry, and manually reopen it without any file arguments (e.g. desktop shortcut)
  • Repeat the above steps and notice the media keys now work again

Expected behavior
The listed media buttons should work irrespective of how Strawberry was opened.

Screenshots:
image

System Information:

  • Operating system: Arch Linux 6.10.9-arch1-2 / KDE Plasma 6.1.5
  • Strawberry Version: 1.1.2

Additional context
I suspect there is a problem with how Strawberry detects keypresses, as if I rebind the media shortcuts to miscellaneous keyboard buttons (e.g. J / H / K / etc.), I can use these buttons as expected. Specifically the media buttons seem to be the issue. In fact, when I attempt to rebind these keyboard buttons back to the proper media buttons, the window prompting me for a keybind does not register anything, and remains empty:
image

See https://bugs.kde.org/show_bug.cgi?id=490569

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions