Stream-embedding-portrait-video-nathan - #286
Conversation
- Updated stream/embedding.mdx Mintlify-Source: dashboard-editor
mihan
left a comment
There was a problem hiding this comment.
I agree we need to improve. I added two comments, I would rather do this in a combination with default embed markup improvements in the dashboard.
|
|
||
| ## How to embed vertical portrait (9:16) mobile video | ||
|
|
||
| Portrait (9:16) video is common for mobile-first content, short-form clips, and social-style players. By default, the Stream embed renders in landscape (16:9). This guide shows you how to adjust it for vertical video. |
There was a problem hiding this comment.
Hm I wouldn't express it like this. I would rather state that Stream player is responsive and automatically adopts to container size. Embed html generated in dash is just example and I would not go into detail this much. I would rather briefly explain that iframe can be styled as any html element to optimize sizing for video size and requirements of integrating webside.
|
|
||
| #### Basic embed | ||
|
|
||
| The standard Stream embed code wraps the iframe in a div with `padding-top: 56.25%` to maintain a 16:9 ratio: |
There was a problem hiding this comment.
I don't think it is good to talk about "the standard embed code" What dashboard produces is just an example and it should not be generally copy pasted but users should adopt it to their requirements. Also current markup is not even the best possible and it would be good to rethink it.
Mintlify
0 threads from 0 users in Mintlify