Page 1 of 1

Aspect Ratio Problem

Posted: 24 Jul 2014 15:53
by ilkerulusoy
Hello,

I am changing video aspect ratio on Ipad 3. Video is 16:9. I want to watch as a 4:3. Height does not changing. Width is extending.

Code: Select all

self.moviePlayer.videoCropGeometry = NULL; self.moviePlayer.videoAspectRatio = (char *)[@"4:3" UTF8String];

Re: Aspect Ratio Problem

Posted: 29 Jul 2014 22:04
by fkuehne
"(char *)[@"4:3" UTF8String];" is a very weird way to set @"4:3" to a NSString variable.

Additionally, consider checking the source code of VLC for iOS as well as the sample code included with MobileVLCKit how to setup the wrapper view correctly.

Re: Aspect Ratio Problem

Posted: 07 Aug 2014 13:45
by ilkerulusoy
sometimes run, sometimes not run when i use this code:

Code: Select all

.... Change aspect ratio UIView *drawableView = (UIView *)self.moviePlayer.drawable; UIScreen *screen = [UIScreen mainScreen]; drawableView.frame = CGRectMake(0, 0,self.moviePlayer.videoSize.width,self.moviePlayer.videoSize.height); drawableView.frame = CGRectMake(0, 0,screen.bounds.size.height,screen.bounds.size.width);
I think, video layer updated before drawable layer is update.