nativescript-videoplayer icon indicating copy to clipboard operation
nativescript-videoplayer copied to clipboard

Background video

Open SteelManITA opened this issue 7 years ago • 2 comments

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

SteelManITA avatar Aug 28 '18 16:08 SteelManITA

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

rigor789 avatar Aug 28 '18 16:08 rigor789

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

SteelManITA avatar Aug 29 '18 12:08 SteelManITA