Support for Vertical Format Display (YouTube Shorts) #1211
marvelxx35
started this conversation in
General
Replies: 3 comments 5 replies
-
Hey, from the top of my head, two things need to be figured out:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the quick response!
Shorts default URL: https://www.youtube.com/shorts/VIDEO_ID
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Using the url won't work, since the player plays videos by id only. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋,
First off, thank you for this amazing library — it’s been incredibly helpful!
I’ve noticed that YouTube Shorts (which are vertical videos) don’t render properly in the current player setup. Shorts often appear letterboxed or cropped when displayed in the default landscape-oriented player view.
Issue:
The library currently does not provide native support or a layout configuration that optimally displays vertical videos like YouTube Shorts. Since Shorts are becoming a more popular content format, having vertical display support (9:16 aspect ratio) would be a great enhancement.
Expected Behavior:
• Shorts should display without black bars or incorrect scaling.
• Ideally, the player should auto-adjust to the video’s aspect ratio, or allow developers to configure it via layout settings.
Steps to Reproduce:
1. Load a Shorts URL (e.g., https://www.youtube.com/shorts/VIDEO_ID)
2. Observe layout in YouTubePlayerView
Possible Workaround:
Manually adjusting the YouTubePlayerView size to match a vertical ratio (e.g., height > width) helps, but this isn’t ideal and still doesn’t use the proper layout.
Feature Request:
Add built-in support or a guide/example for rendering vertical videos in a full-height layout that respects the native aspect ratio of YouTube Shorts.
Let me know if there’s a workaround or if I can help contribute a fix!
Thanks again 🙌
Beta Was this translation helpful? Give feedback.
All reactions