moust / cordova-plugin-videoplayer

A Codova plugin to play video with the native MediaPlayer on Android devices.
MIT License
139 stars 102 forks source link

Set height #76

Closed luizzgithub closed 2 years ago

luizzgithub commented 2 years ago

my app has a bar with clock, how to set height in the video?

the video cannot be 100%

luizzgithub commented 2 years ago

I changed VideoPlayer.java, in lines 229 and 230;

lp.width = (int) 1280; lp.height = (int) 520; lp.gravity = Gravity.TOP;

It worked beautiful