FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
12.32k stars 753 forks source link

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

Open alexanderlavrenko opened 2 months ago

alexanderlavrenko commented 2 months ago

Guidelines

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

efb4f5ff-1298-471a-8973-3d47447115dc commented 2 months ago

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

alexanderlavrenko commented 2 months ago

@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 commented 2 months ago

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

alexanderlavrenko commented 2 months ago

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 commented 2 months ago

FreeTube uses Electron. Discord uses Electron.

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

alexanderlavrenko commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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

github-actions[bot] commented 1 month ago

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] commented 2 days ago

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.

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 day ago

Does this issue still occur in v0.21.0?

alexanderlavrenko commented 1 day ago

Does this issue still occur in v0.21.0?

Yes