LibWeb+LibWebView+WebContent: Support muting an entire page

This adds an IPC for chromes to mute a tab. When muted, we trigger an
internal volume change notification and indicate that the user agent has
overriden the media volume.
This commit is contained in:
Timothy Flynn
2024-03-30 09:41:15 -04:00
committed by Andreas Kling
parent 7c31343df0
commit f61f55d397
10 changed files with 68 additions and 2 deletions

View File

@@ -98,6 +98,8 @@ public:
bool muted() const { return m_muted; }
void set_muted(bool);
void page_mute_state_changed(Badge<Page>);
double effective_media_volume() const;
JS::NonnullGCPtr<AudioTrackList> audio_tracks() const { return *m_audio_tracks; }