feat(player): add Audio-Only mode with static thumbnail overlay (#4077)#4111
Open
Monu01123 wants to merge 1 commit into
Open
feat(player): add Audio-Only mode with static thumbnail overlay (#4077)#4111Monu01123 wants to merge 1 commit into
Monu01123 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #4077
Adds an Audio-Only Mode to Improve YouTube! that hides the video stream and displays a clean static album art / thumbnail overlay while listening. This dramatically reduces CPU/GPU frame decoding overhead and saves >99% bandwidth by switching to the lowest video bitrate (
tiny/ 144p).Features Implemented
Player Controls Toggle Button (
#it-audio-only-button)Static Album Art Overlay (
#it-audio-only-overlay)🎧 Audio-Only Modebadge.pointer-events: none;so all standard YouTube player interactions (play/pause clicks, double-click for fullscreen, scrubber bar dragging) function naturally.CPU, GPU & Bandwidth Optimization
opacity: 0 !important; visibility: hidden !important;on the<video>element, signaling the browser rendering engine to skip video frame decoding and compositing during every vblank.tiny(144p / ~30 kbps) when Audio-Only mode is enabled. Restores the user's previous quality preference when disabled.Full Playlist Support
yt-navigate-finishandyt-page-data-updated).Optional Auto-Switch for Music Videos
ImprovedTube.isMusicVideo()) checkingmeta[itemprop=genre], microformat renderer schemas, and artist channel identifiers (VEVO/- Topic).Auto-switch for music category) to automatically switch to Audio-Only mode whenever a music video is played.UI Settings & Localization
audioOnlyMode,audioOnlyButton,autoSwitchForMusic) to_locales/en/messages.json.Verification & Testing
tinyquality.