nstudio / nativescript-videoplayer

:clapper: Video Player widget for NativeScript apps
MIT License
133 stars 59 forks source link

Background video #119

Open SteelManITA opened 6 years ago

SteelManITA commented 6 years ago

Hi,

I need to insert a video as a background, so I put it inside an AbsoluteLaout before my FlexboxLayout, but if the aspect ratio of the video is not identical to the aspect ratio of the phone I see whitespace.

I would like to have a real full screen video, though it could seems cropped

rigor789 commented 6 years ago

Try setting fill

From the docs:

fill - (boolean) If true, the aspect ratio of the video will not be honored and it will fill the entire space available
SteelManITA commented 6 years ago

fill property doesn't maintain the aspect ratio, I need to "zoom" video to the center covering all the screen