Page 1 of 1

Custom VideoCropGeometry

Posted: 30 Nov 2015 18:31
by paoloandrea
Hi dev,
how can I force the size of the screen?
My requirement is to customize the size of the video output.

Thanks for the answers.

Re: Custom VideoCropGeometry

Posted: 01 Dec 2015 12:04
by fkuehne
I do not fully understand your question. VLC's video output is a UIView and you can give it whatever size you want :)

Re: Custom VideoCropGeometry

Posted: 01 Dec 2015 19:28
by paoloandrea
the question is simple ...
I want to change, the proportion of video (i want to force it).
How can I do?

Re: Custom VideoCropGeometry

Posted: 02 Dec 2015 14:49
by fkuehne
Ah, misunderstood, sorry. Click the button on the top-right during playback to change aspect ratio :)

Re: Custom VideoCropGeometry

Posted: 02 Dec 2015 16:52
by paoloandrea
Hi Felix.
Thank you to respond me.

I'm a developer and i need a custom size not a standard size.


for eg. Standard size: 16:9

the code to switch resolution is

Code: Select all

if (f_ar == (float)(640./1136.)) // iPhone 5 aka 16:9.01 _mediaPlayer.videoCropGeometry = "16:9";
I need a 16:4 size

Code: Select all

_mediaPlayer.videoCropGeometry = "16:4";
How can i make it?
Please help me.

Re: Custom VideoCropGeometry

Posted: 16 Dec 2015 15:52
by paoloandrea
^ :roll:

Re: Custom VideoCropGeometry

Posted: 16 Dec 2015 19:23
by fkuehne
Ah, I see, sorry for the late response. Regrettably, you can only use the following list of predefined crop values:

Image