I have an app that posts images and videos. We can import video from SNS like facebook too. After import user can post the images and videos in our post.
Right now we have a fixed square frame where we adjust images . If image is smaller than square > we zoom the image and show, i image is bigger than the square frame > we crop the image.
I want the same for video. We can get the video play in the frame, but if it is smaller we just see its actual small size. I understand that if I zoom and try to fit a video smaller than frame , then the video will be cut. But i just want it to play in the square frame full .
It is a simple task that would require small edits in xml files or mathematical calculation.