I would like to adjust the width of my container based on whether the video is portrait or landscape, is there a way to know the orientation of a video it (even if just for videos shot on a phone) So I can dynamically adjust the css?
I need to know the orientation of uploaded or recorded videos, not what device orientation they are using at the moment. Basically if the width is greater than the height of the video
Thanks
Hi Fadi Zananiri,
I think just do container dimensions ( auto ) instead of px or percentage.
Then container will be automatically adjust according video.
.Container { width: auto; height: auto ; }
Thanks, but I need to know the orientation ahead of time because I need to control/fix the width of portrait videos so they do not run over the bottom of my screen. Any suggestion how?
Hello @Fadi Zananiri
Have you checked this - Forgehttps://www.outsystems.com/forge/component-overview/2836/orientation-event
Also check this thread -
https://www.outsystems.com/forums/discussion/32749/event-to-detect-device-rotation-orientation-mobile-app/https://www.outsystems.com/forums/discussion/55362/allow-video-play-in-landscape-mode-on-mobile-application/
Hope it helps
Thanks, I need to know the orientation of uploaded or recorded videos, not what device orientation they are using at the moment. Basically if the width is greater than the height of the video