Custom VideoCropGeometry

iOS, iPad, iPhone, tvOS specific usage questions
paoloandrea
New Cone
New Cone
Posts: 6
Joined: 23 May 2015 16:58

Custom VideoCropGeometry

Postby paoloandrea » 30 Nov 2015 18:31

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.

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Custom VideoCropGeometry

Postby fkuehne » 01 Dec 2015 12:04

I do not fully understand your question. VLC's video output is a UIView and you can give it whatever size you want :)
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

paoloandrea
New Cone
New Cone
Posts: 6
Joined: 23 May 2015 16:58

Re: Custom VideoCropGeometry

Postby paoloandrea » 01 Dec 2015 19:28

the question is simple ...
I want to change, the proportion of video (i want to force it).
How can I do?

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Custom VideoCropGeometry

Postby fkuehne » 02 Dec 2015 14:49

Ah, misunderstood, sorry. Click the button on the top-right during playback to change aspect ratio :)
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

paoloandrea
New Cone
New Cone
Posts: 6
Joined: 23 May 2015 16:58

Re: Custom VideoCropGeometry

Postby paoloandrea » 02 Dec 2015 16:52

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.

paoloandrea
New Cone
New Cone
Posts: 6
Joined: 23 May 2015 16:58

Re: Custom VideoCropGeometry

Postby paoloandrea » 16 Dec 2015 15:52

^ :roll:

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Custom VideoCropGeometry

Postby fkuehne » 16 Dec 2015 19:23

Ah, I see, sorry for the late response. Regrettably, you can only use the following list of predefined crop values:

Image
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 3 guests