Skip to content

fix(media): don't show the mini player for silent or muted media - #256

Open
barto95100 wants to merge 2 commits into
the-ora:mainfrom
barto95100:contrib/187-mini-player-silent-media
Open

barto95100 wants to merge 2 commits into
the-ora:mainfrom
barto95100:contrib/187-mini-player-silent-media

Conversation

@barto95100

@barto95100 barto95100 commented Oct 28, 2026 •

Copy link
Copy Markdown

Summary

Closes #187.

Muted autoplay videos (page backgrounds, previews, ads) were marked as played and brought up the mini player, and one code path computed its visibility from all media sessions instead of the played ones. Only audible media now count as played, including a muted video the user unmutes.

Ported from the branch tembo/fix-mini-player-trigger-no-media, which no longer applies after the file reorganisation.

Automatic Picture in Picture uses the same rule, so silent or muted videos no longer go to PiP either.

Type of Change

  • Bug fix

Testing

  • Pages with muted autoplay videos (backgrounds, previews): no mini player.
  • Playing a video with sound, then switching tabs: mini player shown.
  • Unmuting a muted video, then switching tabs: mini player shown.

AI Assistance Disclosure

Code written with Claude (AI) under my direction; I reviewed and tested every change on macOS.

Checklist

  • Code builds successfully
  • No new warnings or errors

Muted autoplay videos (page backgrounds, previews, ads) were marked as played and brought up the mini player, and one code path computed its visibility from all sessions instead of played ones. Only audible media count as played, including a muted video the user unmutes. Ported from the upstream branch tembo/fix-mini-player-trigger-no-media, which no longer applies after upstream's file reorganisation. Fixes the-ora#187.
@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The change affects the browser's media-player workflow.

The silent-video case should be fixed before merging.

Findings

  1. P1 Silent videos still show up ▶

Summary

The PR limits mini-player eligibility to media played while unmuted and above zero volume.

  • The mini player appears only for media that can be heard.

Reviews (1) · Last reviewed commit: "fix(media): don't show the mini player f..." · Reviewed by Greptile

…nd PiP

An unmuted video with no audio track (page backgrounds) still counted as
audible. Media now count as audible only when not muted, with volume up,
and with a sound track: audioTracks for files once their metadata is loaded
(checked again on playing); streams (blob: URLs, media streams), which may
list no tracks, are assumed to have sound. Automatic Picture in Picture
uses the same rule, so a silent or muted video no longer goes to PiP.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mini Media Player being triggered on pages with no media playing

1 participant