Page 1 of 1

VLC Mac os Framework set crop and aspect ratio

Posted: 03 Nov 2010 16:12
by shender
Hi guys. Use http://wiki.videolan.org/Mac_OS_X_Framework
Make test project as in wiki

Code: Select all

// Set up a videoView by hand. You can also do that in the nib file videoView = [[VLCVideoView alloc] initWithFrame:[[window contentView] bounds]]; [[window contentView] addSubview:videoView]; [videoView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable]; // Init the player object player = [[VLCMediaPlayer alloc] initWithVideoView:videoView]; [player setMedia:[VLCMedia mediaWithPath:@"/to/my/movie"]]; [player play];
All nice. but does not work setting aspect-ratio and crop geometry.

Code: Select all

[context->player setVideoAspectRatio : ratio.toUtf8().data() ] ; [context->player setVideoCropGeometry : crop.toUtf8().data() ] ;
Use C++ qt framework. thanks