question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebCord calls appear as players in playerctl

See original GitHub issue

Aknowledgements

  • I have checked that there’s no other issue describing the same or similar problem that I currently have, regardless if it has been closed or open.

  • I can confirm that this is not an issue with the Discord website, but it is a problem specific to the WebCord itself. I have tested if this bug occurs on Chromium/Chrome or any other Chromium-based browser that uses unpatched/upstream Chromium engine.

  • I have tried running the build from the master branch and it does not have any fixes implemented according to my issue.

  • My issue describes one of the unstable and/or not fully implemented features.

  • I have found a workaround to mitigate or temporarily fix this issue in affected releases (please write it in Additional context section below).

Operating System / Platform

🐧️ Linux

Operating system architecture

x64 (64-bit Intel/AMD)

Electron version

v20.0.1

Application version

v3.7.1

Bug description

When I receive a Discord call on WebCord and my music is playing, I usually want to pause the music before answering the call. To do so, I press XF86AudioPlay which triggers playerctl play-pause.

The expected outcome would be that the music stops (in this case, spotify). The actual outcome is that the Discord ringtone (and call, subsequently) is paused, but the music keeps playing.

Additional context

› playerctl -l
chromium.instance2019126
spotify

The snippet above is the result of running playerctl -l while in a Discord call (or being called but not having answered yet).

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SpacingBat3commented, Aug 28, 2022

It seems like it creates its MPRIS dbus interface when playing a video in the chat but doesn’t correctly close the interface when switching to another server/chat

I don’t think I’m able to change that.

I’m pretty sure this is how all Electron apps will behave, including Element and Discord (with vanilla Electron, I’m not sure if their patched version does fix anything). It might even be a Chromium bug and could be reproduced on Chromium side.

But there’s actually a way to disable MPRIS with the Chromium flags and some apps seem to do this by the default. Maybe I enforce this as well? I am open for expected behavior suggestions.


Example patch: https://github.com/getferdi/ferdi/pull/1023/commits/cda6b3cab6e409e7f3445ef03852334b83711a6f

0reactions
SpacingBat3commented, Aug 28, 2022

It also usually uses the older version of the Electron.

Just to note, WebCord can be build and work on both Discord’s Electron and older Electron version, it was confirmed to be fully functional with Electron 13 in the past so there’s bunch of major releases to try in order to test if there was a regression.

Read more comments on GitHub >

github_iconTop Results From Across the Web

altdesktop/playerctl: mpris media player command ... - GitHub
Playerctl comes with a service called playerctld that monitors the activity of media players in the background. If playerctld is running, Playerctl will...
Read more >
playerctl(1) — Arch manual pages
The playerctl utility controls MPRIS-enabled media players. ... Playerctl also comes with a daemon called playerctld which keeps track of media player ......
Read more >
playerctl - utility to control media players via MPRIS
playerctl is a command line utility to control MPRIS-enabled media players. In addition to offering play/pause/stop control, playerctl also offers ...
Read more >
Control Every Media Player on Linux with Playerctl! - YouTube
How would you like a simple command-line tool to control all your favorite media players on Linux? Using a window manager and need...
Read more >
PlayerCTL: The Best MPRIS Media Player Control Out There!
Rather than downloading individual tools to control all your seperate video and media players, what you should do instead is make use of ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found