Change Media Player Size from 16:9 to automatically detect source format of original Video

Currenty the default video player size in the feed post view is 16:9 also when the original source of the LinkedIn Video is for example 4:5. Is there a possibility for an “auto” option. So that the hight and width of the video preview is matched the LinkedIn Video Source? Thank you :smiley:

1 Like

Hi there @Luca_9099 :wave:

This code should do the trick:

[class*='MediaVideo__Player-sc'] {
  height: auto !important;
  aspect-ratio: 1;
}

Just add it to the Custom CSS field on the Appearance tab of your widget’s settings and let me know if it helped :slightly_smiling_face:

Hi @Max

amazing! Thanks for providing the CSS Code.
Worked all fine and looking good now. :smiley:

2 Likes

No problem at all :wink: