elementary / elementary/panel-sound

Playing a game in Web creates endless media controls

Open
#288 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
36
Forks
28
Avg merge
1d 12h
Merged PRs (30d)
11

Description

### What Happened?

A ton of ghost media controls

![Image](https://github.com/user-attachments/assets/aaa69057-296a-402c-893a-7acd2fb1879c)

### Steps to Reproduce

1. Play [Cookie Clicker](https://orteil.dashnet.org/cookieclicker/)
2. Over time a bunch of new media controls will be added

### Expected Behavior

- [ ] Media controls should probably not be added for sound effects. Maybe we should have like a 1s timeout before adding a media controls widget to make sure its a stream and not a sound effect
- [ ] Media controls should be cleaned up automatically somehow. I'm not sure if there's something on Web's side that is signaling that the player is done and we're not listening to that or if there's some other way we can automatically clean up players. Maybe some way the web process is identified?

### OS Version

8.x (Circe)

### Session Type

Secure Session (Wayland)

### Software Version

Latest release (I have run all updates)

### Log Output

```shell

```

### Hardware Info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.