VLC Mac os Framework set crop and aspect ratio
Posted: 03 Nov 2010 16:12
Hi guys. Use http://wiki.videolan.org/Mac_OS_X_Framework
Make test project as in wiki
All nice. but does not work setting aspect-ratio and crop geometry.
Use C++ qt framework. thanks
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];
Code: Select all
[context->player setVideoAspectRatio : ratio.toUtf8().data() ] ;
[context->player setVideoCropGeometry : crop.toUtf8().data() ] ;