How to get video dimensions (HeightxWidth) from binary/DB to adjust UI conatiner size

I would like to adjust the width of my UI container based on whether a previously uploaded video is portrait or landscape, is there a way to get video dimensions (HxW) from the binary or database so I can calculate orientation to adjust container dimensions dynamically using the css?


This is great, thank you

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.