Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
5 of 6 tasks
alexanderlavrenko opened this issue Apr 25, 2024 · 9 comments
Open
5 of 6 tasks

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

alexanderlavrenko opened this issue Apr 25, 2024 · 9 comments
Labels
B: keyboard control bug Something isn't working OS: linux issue that occurs on linux but not on other platforms
Projects

Comments

@alexanderlavrenko
Copy link

Guidelines

  • I have encountered this bug in the latest release of FreeTube.
  • I have encountered this bug in the official downloads of FreeTube.
  • I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
  • I have searched the documentation for information that matches the description of the bug I want to file, without success.
  • 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 alexanderlavrenko added the bug Something isn't working label Apr 25, 2024
@FreeTubeBot FreeTubeBot added this to To assign in Bug Reports Apr 25, 2024
@absidue absidue added the OS: linux issue that occurs on linux but not on other platforms label Apr 30, 2024
@efb4f5ff-1298-471a-8973-3d47447115dc

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

@alexanderlavrenko
Copy link
Author

@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

@efb4f5ff-1298-471a-8973-3d47447115dc

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

@alexanderlavrenko
Copy link
Author

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

@efb4f5ff-1298-471a-8973-3d47447115dc

FreeTube uses Electron. Discord uses Electron.

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

@alexanderlavrenko
Copy link
Author

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
Copy link
Author

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?

@absidue
Copy link
Member

absidue commented May 2, 2024

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).

@alexanderlavrenko
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B: keyboard control bug Something isn't working OS: linux issue that occurs on linux but not on other platforms
Projects
Bug Reports
To assign
Development

No branches or pull requests

3 participants