FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: media Play/Pause keybinding doesn't work on Ubuntu

Open alexanderlavrenko opened this issue 1 year ago • 15 comments

Guidelines

  • [X] I have encountered this bug in the latest release of FreeTube.
  • [X] I have encountered this bug in the official downloads of FreeTube.
  • [X] I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
  • [X] I have searched the documentation for information that matches the description of the bug I want to file, without success.
  • [X] This issue contains only one bug.

Describe the bug

Triggering Play/Pause media button doesn't affect FreeTube like it does with most audio players, like Audacious or Spotify.

Expected Behavior

Triggering Play/Pause media through keyboard combination or tapping on earbud should play/stop video streaming when video is streaming on FreeTube just like it plays/stops playing track on Spotify.

Issue Labels

keyboard control not working

FreeTube Version

v0.20.0

Operating System Version

Kubuntu 22.04

Installation Method

.AppImage

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

I've tried AppImage, .deb, portable version with no success.

Nightly Build

alexanderlavrenko avatar Apr 25 '24 15:04 alexanderlavrenko

@alexanderlavrenko Does the same issue happen for other Electron apps such as Discord?

@alexanderlavrenko Does the same issue happen for other Electron apps such as Discord?

What does Discord has to do with it? It's a simple feature which is supported by most audio players on Ubuntu and other OS

alexanderlavrenko avatar May 02 '24 15:05 alexanderlavrenko

Like mentioned in the message above, Discord uses Electron. This could be an issue with Electron instead of us.

Like mentioned in the message above, Discord uses Electron. This could be an issue with Electron instead of us.

What does Discord have to do with it? I don't know other audio/video player built on Electron to compare

alexanderlavrenko avatar May 02 '24 15:05 alexanderlavrenko

FreeTube uses Electron. Discord uses Electron.

If issue also occurs on Discord than its an Electron issue otherwise its an issue with FreeTube.

FreeTube uses Electron. Discord uses Electron.

If issue also occurs on Discord than its an Electron issue otherwise its an issue with FreeTube.

Discord is nothing like FreeTube or any audio/video player why would it support Play/Pause media key? But since you're continuing this, I'm going to try "Nuclear Music Player" which is built on Electron and give a feedback if it works.

alexanderlavrenko avatar May 02 '24 15:05 alexanderlavrenko

FreeTube uses Electron. Discord uses Electron. If issue also occurs on Discord than its an Electron issue otherwise its an issue with FreeTube.

Discord is nothing like FreeTube or any audio/video player why would it support Play/Pause media key? But since you're continuing this, I'm going to try "Nuclear Music Player" which is built on Electron and give a feedback if it works.

Okay, it didn't work with "Nuclear Music Player" so it could be Electron. Is there anything that can be done to make it work?

alexanderlavrenko avatar May 02 '24 15:05 alexanderlavrenko

FreeTube uses Electron. Discord uses Electron. If issue also occurs on Discord than its an Electron issue otherwise its an issue with FreeTube.

Discord is nothing like FreeTube or any audio/video player why would it support Play/Pause media key? But since you're continuing this, I'm going to try "Nuclear Music Player" which is built on Electron and give a feedback if it works.

Because it's known that Discord uses those media keys for it's video and audio players, when someone sends a video or audio file.

https://old.reddit.com/r/discordapp/comments/s4mtpm/my_media_keys_are_getting_hijacked_by_discord/

So if it doesn't work with Discord either, we know that the problem isn't with FreeTube and that there is nothing we can do from our side about it. Either means it's a bug in Electron or with something outside of Electron (usually is for Linux specific issues, because there is no standard setup).

absidue avatar May 02 '24 16:05 absidue

FreeTube uses Electron. Discord uses Electron. If issue also occurs on Discord than its an Electron issue otherwise its an issue with FreeTube.

Discord is nothing like FreeTube or any audio/video player why would it support Play/Pause media key? But since you're continuing this, I'm going to try "Nuclear Music Player" which is built on Electron and give a feedback if it works.

Because it's known that Discord uses those media keys for it's video and audio players, when someone sends a video or audio file.

https://old.reddit.com/r/discordapp/comments/s4mtpm/my_media_keys_are_getting_hijacked_by_discord/

So if it doesn't work with Discord either, we know that the problem isn't with FreeTube and that there is nothing we can do from our side about it. Either means it's a bug in Electron or with something outside of Electron (usually is for Linux specific issues, because there is no standard setup).

I'm using latest Discord 0.0.52 and no, media buttons do nothing

alexanderlavrenko avatar May 02 '24 17:05 alexanderlavrenko

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar May 31 '24 01:05 github-actions[bot]

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jun 29 '24 01:06 github-actions[bot]

Does this issue still occur in v0.21.0?

Does this issue still occur in v0.21.0?

Yes

alexanderlavrenko avatar Jun 30 '24 16:06 alexanderlavrenko

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jul 29 '24 01:07 github-actions[bot]

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Aug 28 '24 01:08 github-actions[bot]

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 26 '24 01:09 github-actions[bot]

FreeTube uses Electron. Discord uses Electron. If issue also occurs on Discord than its an Electron issue otherwise its an issue with FreeTube.

Discord is nothing like FreeTube or any audio/video player why would it support Play/Pause media key? But since you're continuing this, I'm going to try "Nuclear Music Player" which is built on Electron and give a feedback if it works.

Because it's known that Discord uses those media keys for it's video and audio players, when someone sends a video or audio file. https://old.reddit.com/r/discordapp/comments/s4mtpm/my_media_keys_are_getting_hijacked_by_discord/ So if it doesn't work with Discord either, we know that the problem isn't with FreeTube and that there is nothing we can do from our side about it. Either means it's a bug in Electron or with something outside of Electron (usually is for Linux specific issues, because there is no standard setup).

I'm using latest Discord 0.0.52 and no, media buttons do nothing

Closing as we unfortunately cant do about this