-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Playing video in incorrect ratio #2459
Comments
On linux (wayland), I managed to reproduce this bug reliably with these steps:
I ran these lines from the video-toggle plugin in my browser and managed to reproduce the issue in the official web version too. youtube-music/src/plugins/video-toggle/index.ts Lines 125 to 133 in 4c2cb8d
Video demo (in the music.youtube web version)youtube-music.mp4I'm not sure if this behaviour is present when using an actual premium subscription (I don't have one, so I can't test it). OBS.: as a quick workaround, triggering the window resize event seems to fix it (using the native toggle) document
.querySelector('button.video-button.ytmusic-av-toggle')
.addEventListener('click', () => window.dispatchEvent(new Event('resize'))) |
2024-10-14 UPDATE: reproducible (with premium subscription) |
I tried with official ytm in site but it didn't triggered for me so I reported. |
Here's a css workaround for this issue .html5-video-container, .html5-main-video {
width: 100% !important;
height: 100% !important;
}
.html5-main-video {
top: unset !important;
left: unset !important;
object-fit: contain !important;
} quick explanationyoutube manually calculates the video's
|
Preflight Checklist
YouTube Music (Application) Version
3.5.3
Checklists
What operating system are you using?
Windows
Operating System Version
Win 11 Pro
What CPU architecture are you using?
x64
Last Known Working YouTube Music (Application) version
N/A
Reproduction steps
Expected Behavior
Video plays at correct ratio covering the whole space
Actual Behavior
Video plays at top left in a small ratio
Enabled plugins
Smoothness transition- During 1.5s
Quality- 50 pixels
Size- 100%
Buffer- 30
Opacity- 100%
Blur amount- 100 pixels
✓ Auto reconnect
✓ Clear activity after timeout
✓ Play on YouTube Music
✓ Hide GitHub link Button
✓ Romanized Lyrics
✓ Local Arrow-keys Controls
✓ Make the lyrics perfectly synced
Line effect- Scale
Default character between lyrics- ♪
✓ Show lyrics even if inexact
Mode- Native toggle
Alignment- Left
Additional Information
It's inconsistent and sometimes works and sometimes doesn't work. Not sure why, maybe its something to do with video playback fetching or type of music video?
The text was updated successfully, but these errors were encountered: